public Principal withRoles(java.util.Collection<PermissionInfo> roles) {
        setRoles(roles);
        return this;
    }
<p>
The permission information for the resource.
</p>

@param roles
       The permission information for the resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/Principal.java