public ObjectTypeKey withFieldNames(java.util.Collection<String> fieldNames) {
        setFieldNames(fieldNames);
        return this;
    }
<p>
The reference for the key name of the fields map.
</p>

@param fieldNames
       The reference for the key name of the fields map.
@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/ObjectTypeKey.java