public void setRoles(java.util.Collection<PermissionInfo> roles) {
        if (roles == null) {
            this.roles = null;
            return;
        }

        this.roles = new java.util.ArrayList<PermissionInfo>(roles);
    }
<p>
The permission information for the resource.
</p>

@param roles
       The permission information for the resource.
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/Principal.java