name.kevinlocke.appveyor.model.PermissionState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appveyor-swagger Show documentation
Show all versions of appveyor-swagger Show documentation
AppVeyor REST API Client generated from the unofficial Swagger API
definition in Java.
/*
* 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 name.kevinlocke.appveyor.model.PermissionName;
import javax.validation.constraints.*;
/**
* PermissionState
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-05-19T00:16:45.908-06:00")
public class PermissionState {
@SerializedName("name")
private PermissionName name = null;
@SerializedName("description")
private String description = null;
@SerializedName("allowed")
private Boolean allowed = null;
public PermissionState name(PermissionName name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@NotNull
@ApiModelProperty(example = "null", required = true, value = "")
public PermissionName getName() {
return name;
}
public void setName(PermissionName name) {
this.name = name;
}
public PermissionState description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(example = "null", value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public PermissionState allowed(Boolean allowed) {
this.allowed = allowed;
return this;
}
/**
* State of the named permission. `true` to allow, `false` to deny, missing to inherit.
* @return allowed
**/
@ApiModelProperty(example = "null", value = "State of the named permission. `true` to allow, `false` to deny, missing to inherit. ")
public Boolean getAllowed() {
return allowed;
}
public void setAllowed(Boolean allowed) {
this.allowed = allowed;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PermissionState permissionState = (PermissionState) o;
return Objects.equals(this.name, permissionState.name) &&
Objects.equals(this.description, permissionState.description) &&
Objects.equals(this.allowed, permissionState.allowed);
}
@Override
public int hashCode() {
return Objects.hash(name, description, allowed);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PermissionState {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" allowed: ").append(toIndentedString(allowed)).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