public EndpointRequest withAttributes(java.util.Map<String, java.util.List<String>> attributes) {
        setAttributes(attributes);
        return this;
    }
<p>
One or more custom attributes that describe the endpoint by associating a name with an array of values. For
example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use
these attributes as filter criteria when you create segments. Attribute names are case sensitive.
</p>
<p>
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you
define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question
mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain
these characters. This restriction doesn't apply to attribute values.
</p>

@param attributes
       One or more custom attributes that describe the endpoint by associating a name with an array of values.
       For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You
       can use these attributes as filter criteria when you create segments. Attribute names are case
       sensitive.</p>
       <p>
       An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters.
       When you define the name of a custom attribute, avoid using the following characters: number sign (#),
       colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display
       attribute names that contain these characters. This restriction doesn't apply to attribute values.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EndpointRequest.java