code: public Principal withRoles(PermissionInfo... roles) {
          if (this.roles == null) {
              setRoles(new java.util.ArrayList<PermissionInfo>(roles.length));
          }
          for (PermissionInfo ele : roles) {
              this.roles.add(ele);
          }
          return this;
      }
docs: <p>
  The permission information for the resource.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setRoles(java.util.Collection)} or {@link #withRoles(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param roles
  The permission information for the resource.
  @return Returns a reference to this object so that method calls can be chained together.