public CreateApplicationAssignmentRequest withPrincipalId(String principalId) {
        setPrincipalId(principalId);
        return this;
    }
<p>
An identifier for an object in IAM Identity Center, such as a user or group. PrincipalIds are GUIDs (For example,
f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the <a
href="/singlesignon/latest/IdentityStoreAPIReference/welcome.html">IAM Identity Center Identity Store API
Reference</a>.
</p>

@param principalId
       An identifier for an object in IAM Identity Center, such as a user or group. PrincipalIds are GUIDs (For
       example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity
       Center, see the <a href="/singlesignon/latest/IdentityStoreAPIReference/welcome.html">IAM Identity Center
       Identity Store API Reference</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssoadmin/src/main/java/com/amazonaws/services/ssoadmin/model/CreateApplicationAssignmentRequest.java