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

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

Go to download

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

The 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.AceAccessRightDefinition;
import name.kevinlocke.appveyor.model.RoleAce;
import javax.validation.constraints.*;

/**
 * SecurityDescriptor
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-11-23T14:03:51.855-07:00")
public class SecurityDescriptor {
  @SerializedName("accessRightDefinitions")
  private List accessRightDefinitions = new ArrayList();

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

  public SecurityDescriptor accessRightDefinitions(List accessRightDefinitions) {
    this.accessRightDefinitions = accessRightDefinitions;
    return this;
  }

  public SecurityDescriptor addAccessRightDefinitionsItem(AceAccessRightDefinition accessRightDefinitionsItem) {
    this.accessRightDefinitions.add(accessRightDefinitionsItem);
    return this;
  }

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

  public void setAccessRightDefinitions(List accessRightDefinitions) {
    this.accessRightDefinitions = accessRightDefinitions;
  }

  public SecurityDescriptor roleAces(List roleAces) {
    this.roleAces = roleAces;
    return this;
  }

  public SecurityDescriptor addRoleAcesItem(RoleAce roleAcesItem) {
    this.roleAces.add(roleAcesItem);
    return this;
  }

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

  public void setRoleAces(List roleAces) {
    this.roleAces = roleAces;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SecurityDescriptor securityDescriptor = (SecurityDescriptor) o;
    return Objects.equals(this.accessRightDefinitions, securityDescriptor.accessRightDefinitions) &&
        Objects.equals(this.roleAces, securityDescriptor.roleAces);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accessRightDefinitions, roleAces);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SecurityDescriptor {\n");
    
    sb.append("    accessRightDefinitions: ").append(toIndentedString(accessRightDefinitions)).append("\n");
    sb.append("    roleAces: ").append(toIndentedString(roleAces)).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