code: public void setRoles(java.util.Collection<PermissionInfo> roles) {
          if (roles == null) {
              this.roles = null;
              return;
          }
  
          this.roles = new java.util.ArrayList<PermissionInfo>(roles);
      }
docs: <p>
  The permission information for the resource.
  </p>
  
  @param roles
  The permission information for the resource.