public CognitoMemberDefinition withUserGroup(String userGroup) {
        setUserGroup(userGroup);
        return this;
    }
<p>
An identifier for a user group.
</p>

@param userGroup
       An identifier for a user group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/CognitoMemberDefinition.java