public DescribeComplianceByConfigRuleRequest withComplianceTypes(String... complianceTypes) {
        if (this.complianceTypes == null) {
            setComplianceTypes(new com.amazonaws.internal.SdkInternalList<String>(complianceTypes.length));
        }
        for (String ele : complianceTypes) {
            this.complianceTypes.add(ele);
        }
        return this;
    }
<p>
Filters the results by compliance.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setComplianceTypes(java.util.Collection)} or {@link #withComplianceTypes(java.util.Collection)} if you
want to override the existing values.
</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