public DetectProfileObjectTypeRequest withObjects(String... objects) {
        if (this.objects == null) {
            setObjects(new java.util.ArrayList<String>(objects.length));
        }
        for (String ele : objects) {
            this.objects.add(ele);
        }
        return this;
    }
<p>
A string that is serialized from a JSON object.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setObjects(java.util.Collection)} or {@link #withObjects(java.util.Collection)} if you want to override
the existing values.
</p>

@param objects
       A string that is serialized from a JSON object.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-customerprofiles/src/main/java/com/amazonaws/services/customerprofiles/model/DetectProfileObjectTypeRequest.java