code: public DescribeComplianceByResourceRequest 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;
      }
docs: <p>
  Filters the results by compliance.
  </p>
  <p>
  The allowed values are <code>COMPLIANT</code>, <code>NON_COMPLIANT</code>, and <code>INSUFFICIENT_DATA</code>.
  </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.</p>
  <p>
  The allowed values are <code>COMPLIANT</code>, <code>NON_COMPLIANT</code>, and
  <code>INSUFFICIENT_DATA</code>.
  @return Returns a reference to this object so that method calls can be chained together.
  @see ComplianceType