public GetComplianceDetailsByResourceRequest withComplianceTypes(java.util.Collection<String> complianceTypes) {
        setComplianceTypes(complianceTypes);
        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