public RemoveResourcePermissionRequest withPrincipalType(PrincipalType principalType) {
        this.principalType = principalType.toString();
        return this;
    }
<p>
The principal type of the resource.
</p>

@param principalType
       The principal type of the resource.
@return Returns a reference to this object so that method calls can be chained together.
@see PrincipalType
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/RemoveResourcePermissionRequest.java