public GetComplianceDetailsByResourceRequest withComplianceTypes(ComplianceType... complianceTypes) {
        com.amazonaws.internal.SdkInternalList<String> complianceTypesCopy = new com.amazonaws.internal.SdkInternalList<String>(complianceTypes.length);
        for (ComplianceType value : complianceTypes) {
            complianceTypesCopy.add(value.toString());
        }
        if (getComplianceTypes() == null) {
            setComplianceTypes(complianceTypesCopy);
        } else {
            getComplianceTypes().addAll(complianceTypesCopy);
        }
        return this;
    }
<p>
Filters the results by compliance.
</p>
<p>
<code>INSUFFICIENT_DATA</code> is a valid <code>ComplianceType</code> that is returned when an Config rule cannot
be evaluated. However, <code>INSUFFICIENT_DATA</code> cannot be used as a <code>ComplianceType</code> for
filtering results.
</p>

@param complianceTypes
       Filters the results by compliance.</p>
       <p>
       <code>INSUFFICIENT_DATA</code> is a valid <code>ComplianceType</code> that is returned when an Config rule
       cannot be evaluated. However, <code>INSUFFICIENT_DATA</code> cannot be used as a
       <code>ComplianceType</code> for filtering results.
@return Returns a reference to this object so that method calls can be chained together.
@see ComplianceType
aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/GetComplianceDetailsByResourceRequest.java