public UpdatePrimaryEmailAddressRequest withEntityId(String entityId) {
        setEntityId(entityId);
        return this;
    }
<p>
The user, group, or resource to update.
</p>
<p>
The identifier can accept <i>UseriD, ResourceId, or GroupId</i>, <i>Username, Resourcename, or Groupname</i>, or
<i>email</i>. The following identity formats are available:
</p>
<ul>
<li>
<p>
Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or
S-1-1-12-1234567890-123456789-123456789-1234
</p>
</li>
<li>
<p>
Email address: entity@domain.tld
</p>
</li>
<li>
<p>
Entity name: entity
</p>
</li>
</ul>

@param entityId
       The user, group, or resource to update.</p>
       <p>
       The identifier can accept <i>UseriD, ResourceId, or GroupId</i>, <i>Username, Resourcename, or
       Groupname</i>, or <i>email</i>. The following identity formats are available:
       </p>
       <ul>
       <li>
       <p>
       Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or
       S-1-1-12-1234567890-123456789-123456789-1234
       </p>
       </li>
       <li>
       <p>
       Email address: entity@domain.tld
       </p>
       </li>
       <li>
       <p>
       Entity name: entity
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/UpdatePrimaryEmailAddressRequest.java