public ControlScope withComplianceResourceIds(String... complianceResourceIds) {
        if (this.complianceResourceIds == null) {
            setComplianceResourceIds(new java.util.ArrayList<String>(complianceResourceIds.length));
        }
        for (String ele : complianceResourceIds) {
            this.complianceResourceIds.add(ele);
        }
        return this;
    }
<p>
The ID of the only Amazon Web Services resource that you want your control scope to contain.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setComplianceResourceIds(java.util.Collection)} or
{@link #withComplianceResourceIds(java.util.Collection)} if you want to override the existing values.
</p>

@param complianceResourceIds
       The ID of the only Amazon Web Services resource that you want your control scope to contain.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/ControlScope.java