code: public DescribeComplianceByResourceRequest 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;
      }
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>
  
  @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