code: public ListEmailIdentitiesResult withEmailIdentities(IdentityInfo... emailIdentities) {
          if (this.emailIdentities == null) {
              setEmailIdentities(new java.util.ArrayList<IdentityInfo>(emailIdentities.length));
          }
          for (IdentityInfo ele : emailIdentities) {
              this.emailIdentities.add(ele);
          }
          return this;
      }
docs: <p>
  An array that includes all of the identities associated with your Amazon Pinpoint account.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEmailIdentities(java.util.Collection)} or {@link #withEmailIdentities(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param emailIdentities
  An array that includes all of the identities associated with your Amazon Pinpoint account.
  @return Returns a reference to this object so that method calls can be chained together.