All Downloads are FREE. Search and download functionalities are using the official Maven repository.

name.kevinlocke.appveyor.model.RoleAce Maven / Gradle / Ivy

Go to download

AppVeyor REST API Client generated from the unofficial Swagger API definition in Java.

There is a newer version: 0.2.10
Show newest version
/*
 * AppVeyor REST API
 * AppVeyor is a hosted continuous integration service which runs on Microsoft Windows.  The AppVeyor REST API provides a RESTful way to interact with the AppVeyor service.  This includes managing projects, builds, deployments, and the teams that build them.  Additional help and discussion of the AppVeyor REST API is available at http://help.appveyor.com/discussions  This Swagger definition is an **unofficial** description of the AppVeyor REST API maintained at https://github.com/kevinoid/appveyor-swagger Please report any issues or suggestions for this Swagger definition at https://github.com/kevinoid/appveyor-swagger/issues/new  #### API Conventions  Fields which are missing from update operations (`PUT` requests) are typically reset to their default values.  So although most fields are not technically required, they should usually be specified in practice. 
 *
 * OpenAPI spec version: 0.20170106.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package name.kevinlocke.appveyor.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import name.kevinlocke.appveyor.model.AceAccessRight;
import javax.validation.constraints.*;

/**
 * RoleAce
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-23T09:34:32.026-06:00")
public class RoleAce {
  @SerializedName("roleId")
  private Integer roleId = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("isAdmin")
  private Boolean isAdmin = null;

  @SerializedName("accessRights")
  private List accessRights = new ArrayList();

  public RoleAce roleId(Integer roleId) {
    this.roleId = roleId;
    return this;
  }

   /**
   * Get roleId
   * minimum: 0
   * @return roleId
  **/
  @Min(0)
  @ApiModelProperty(example = "null", value = "")
  public Integer getRoleId() {
    return roleId;
  }

  public void setRoleId(Integer roleId) {
    this.roleId = roleId;
  }

  public RoleAce name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public RoleAce isAdmin(Boolean isAdmin) {
    this.isAdmin = isAdmin;
    return this;
  }

   /**
   * Get isAdmin
   * @return isAdmin
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getIsAdmin() {
    return isAdmin;
  }

  public void setIsAdmin(Boolean isAdmin) {
    this.isAdmin = isAdmin;
  }

  public RoleAce accessRights(List accessRights) {
    this.accessRights = accessRights;
    return this;
  }

  public RoleAce addAccessRightsItem(AceAccessRight accessRightsItem) {
    this.accessRights.add(accessRightsItem);
    return this;
  }

   /**
   * Get accessRights
   * @return accessRights
  **/
  @ApiModelProperty(example = "null", value = "")
  public List getAccessRights() {
    return accessRights;
  }

  public void setAccessRights(List accessRights) {
    this.accessRights = accessRights;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RoleAce roleAce = (RoleAce) o;
    return Objects.equals(this.roleId, roleAce.roleId) &&
        Objects.equals(this.name, roleAce.name) &&
        Objects.equals(this.isAdmin, roleAce.isAdmin) &&
        Objects.equals(this.accessRights, roleAce.accessRights);
  }

  @Override
  public int hashCode() {
    return Objects.hash(roleId, name, isAdmin, accessRights);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RoleAce {\n");
    
    sb.append("    roleId: ").append(toIndentedString(roleId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    isAdmin: ").append(toIndentedString(isAdmin)).append("\n");
    sb.append("    accessRights: ").append(toIndentedString(accessRights)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy