name.kevinlocke.appveyor.model.Role 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.
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 name.kevinlocke.appveyor.model.Timestamped;
import org.joda.time.DateTime;
import javax.validation.constraints.*;
/**
* Technically `roleId` has default value 0 and is not required, but since role 0 never exists it would always cause a 404 response.
*/
@ApiModel(description = "Technically `roleId` has default value 0 and is not required, but since role 0 never exists it would always cause a 404 response. ")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-11-23T14:03:51.855-07:00")
public class Role {
@SerializedName("created")
private DateTime created = null;
@SerializedName("updated")
private DateTime updated = null;
@SerializedName("roleId")
private Integer roleId = null;
@SerializedName("name")
private String name = null;
@SerializedName("isSystem")
private Boolean isSystem = null;
/**
* Get created
* @return created
**/
@ApiModelProperty(example = "null", value = "")
public DateTime getCreated() {
return created;
}
/**
* Get updated
* @return updated
**/
@ApiModelProperty(example = "null", value = "")
public DateTime getUpdated() {
return updated;
}
public Role roleId(Integer roleId) {
this.roleId = roleId;
return this;
}
/**
* Get roleId
* minimum: 0
* @return roleId
**/
@NotNull
@Min(0)
@ApiModelProperty(example = "null", required = true, value = "")
public Integer getRoleId() {
return roleId;
}
public void setRoleId(Integer roleId) {
this.roleId = roleId;
}
public Role name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@NotNull
@Size(min=1)
@ApiModelProperty(example = "null", required = true, value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Get isSystem
* @return isSystem
**/
@ApiModelProperty(example = "null", value = "")
public Boolean getIsSystem() {
return isSystem;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Role role = (Role) o;
return Objects.equals(this.created, role.created) &&
Objects.equals(this.updated, role.updated) &&
Objects.equals(this.roleId, role.roleId) &&
Objects.equals(this.name, role.name) &&
Objects.equals(this.isSystem, role.isSystem);
}
@Override
public int hashCode() {
return Objects.hash(created, updated, roleId, name, isSystem);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Role {\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" updated: ").append(toIndentedString(updated)).append("\n");
sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" isSystem: ").append(toIndentedString(isSystem)).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