public CreateStudioSessionMappingRequest withIdentityId(String identityId) {
        setIdentityId(identityId);
        return this;
    }
<p>
The globally unique identifier (GUID) of the user or group from the IAM Identity Center Identity Store. For more
information, see <a href=
"https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId"
>UserId</a> and <a href=
"https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId"
>GroupId</a> in the <i>IAM Identity Center Identity Store API Reference</i>. Either <code>IdentityName</code> or
<code>IdentityId</code> must be specified, but not both.
</p>

@param identityId
       The globally unique identifier (GUID) of the user or group from the IAM Identity Center Identity Store.
       For more information, see <a href=
       "https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId"
       >UserId</a> and <a href=
       "https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId"
       >GroupId</a> in the <i>IAM Identity Center Identity Store API Reference</i>. Either
       <code>IdentityName</code> or <code>IdentityId</code> must be specified, but not both.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/CreateStudioSessionMappingRequest.java