public Delegation withRoleType(RoleType roleType) {
        this.roleType = roleType.toString();
        return this;
    }
<p>
The type of customer persona.
</p>
<note>
<p>
In <code>CreateAssessment</code>, <code>roleType</code> can only be <code>PROCESS_OWNER</code>.
</p>
<p>
In <code>UpdateSettings</code>, <code>roleType</code> can only be <code>PROCESS_OWNER</code>.
</p>
<p>
In <code>BatchCreateDelegationByAssessment</code>, <code>roleType</code> can only be <code>RESOURCE_OWNER</code>.
</p>
</note>

@param roleType
       The type of customer persona. </p> <note>
       <p>
       In <code>CreateAssessment</code>, <code>roleType</code> can only be <code>PROCESS_OWNER</code>.
       </p>
       <p>
       In <code>UpdateSettings</code>, <code>roleType</code> can only be <code>PROCESS_OWNER</code>.
       </p>
       <p>
       In <code>BatchCreateDelegationByAssessment</code>, <code>roleType</code> can only be
       <code>RESOURCE_OWNER</code>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see RoleType
aws-java-sdk-auditmanager/src/main/java/com/amazonaws/services/auditmanager/model/Delegation.java