code: public GetComplianceSummaryByResourceTypeResult withComplianceSummariesByResourceType(ComplianceSummaryByResourceType... complianceSummariesByResourceType) {
          if (this.complianceSummariesByResourceType == null) {
              setComplianceSummariesByResourceType(new com.amazonaws.internal.SdkInternalList<ComplianceSummaryByResourceType>(
                      complianceSummariesByResourceType.length));
          }
          for (ComplianceSummaryByResourceType ele : complianceSummariesByResourceType) {
              this.complianceSummariesByResourceType.add(ele);
          }
          return this;
      }
docs: <p>
  The number of resources that are compliant and the number that are noncompliant. If one or more resource types
  were provided with the request, the numbers are returned for each resource type. The maximum number returned is
  100.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setComplianceSummariesByResourceType(java.util.Collection)} or
  {@link #withComplianceSummariesByResourceType(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param complianceSummariesByResourceType
  The number of resources that are compliant and the number that are noncompliant. If one or more resource
  types were provided with the request, the numbers are returned for each resource type. The maximum number
  returned is 100.
  @return Returns a reference to this object so that method calls can be chained together.