public SearchPrincipalType withRoles(java.util.Collection<String> roles) {
        setRoles(roles);
        return this;
    }
<p>
The Role of a User or Group.
</p>

@param roles
       The Role of a User or Group.
@return Returns a reference to this object so that method calls can be chained together.
@see PrincipalRoleType
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/SearchPrincipalType.java