public AccessPolicySummary withIdentity(Identity identity) {
        setIdentity(identity);
        return this;
    }
<p>
The identity (an IAM Identity Center user, an IAM Identity Center group, or an IAM user).
</p>

@param identity
       The identity (an IAM Identity Center user, an IAM Identity Center group, or an IAM user).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotsitewise/src/main/java/com/amazonaws/services/iotsitewise/model/AccessPolicySummary.java