public FindingActor withUserIdentity(UserIdentity userIdentity) {
        setUserIdentity(userIdentity);
        return this;
    }
<p>
The type and other characteristics of the entity that performed the action on the affected resource. This value
is null if the action was performed by an anonymous (unauthenticated) entity.
</p>

@param userIdentity
       The type and other characteristics of the entity that performed the action on the affected resource. This
       value is null if the action was performed by an anonymous (unauthenticated) entity.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/FindingActor.java