public DescribeComplianceByConfigRuleRequest 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>

@param complianceTypes
       Filters the results by compliance.
@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/DescribeComplianceByConfigRuleRequest.java