code: public EndpointResponse withAttributes(java.util.Map<String, java.util.List<String>> attributes) {
          setAttributes(attributes);
          return this;
      }
docs: Custom attributes that describe the endpoint by associating a name with an array of values. For example, an
  attribute named "interests" might have the following values: ["science", "politics", "travel"]. You can use these
  attributes as selection criteria when you create segments.
  
  The Amazon Pinpoint console can't display attribute names that include the following characters: hash/pound sign
  (#), colon (:), question mark (?), backslash (\), and forward slash (/). For this reason, you should avoid using
  these characters in the names of custom attributes.
  
  @param attributes
  Custom attributes that describe the endpoint by associating a name with an array of values. For example,
  an attribute named "interests" might have the following values: ["science", "politics", "travel"]. You can
  use these attributes as selection criteria when you create segments.
  
  The Amazon Pinpoint console can't display attribute names that include the following characters:
  hash/pound sign (#), colon (:), question mark (?), backslash (\), and forward slash (/). For this reason,
  you should avoid using these characters in the names of custom attributes.
  @return Returns a reference to this object so that method calls can be chained together.