
Model.TokenPermissions Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* 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 Model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* TokenPermissions
*/
public class TokenPermissions {
@SerializedName("create")
private Boolean create = null;
@SerializedName("read")
private Boolean read = null;
@SerializedName("update")
private Boolean update = null;
@SerializedName("delete")
private Boolean delete = null;
public TokenPermissions create(Boolean create) {
this.create = create;
return this;
}
/**
* Indicates if tokens may be created
* @return create
**/
@ApiModelProperty(value = "Indicates if tokens may be created")
public Boolean Create() {
return create;
}
public void setCreate(Boolean create) {
this.create = create;
}
public TokenPermissions read(Boolean read) {
this.read = read;
return this;
}
/**
* Indicates if tokens may be read
* @return read
**/
@ApiModelProperty(value = "Indicates if tokens may be read")
public Boolean Read() {
return read;
}
public void setRead(Boolean read) {
this.read = read;
}
public TokenPermissions update(Boolean update) {
this.update = update;
return this;
}
/**
* Indicates if tokens may be updated
* @return update
**/
@ApiModelProperty(value = "Indicates if tokens may be updated")
public Boolean Update() {
return update;
}
public void setUpdate(Boolean update) {
this.update = update;
}
public TokenPermissions delete(Boolean delete) {
this.delete = delete;
return this;
}
/**
* Indicates if tokens may be deleted
* @return delete
**/
@ApiModelProperty(value = "Indicates if tokens may be deleted")
public Boolean Delete() {
return delete;
}
public void setDelete(Boolean delete) {
this.delete = delete;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TokenPermissions tokenPermissions = (TokenPermissions) o;
return Objects.equals(this.create, tokenPermissions.create) &&
Objects.equals(this.read, tokenPermissions.read) &&
Objects.equals(this.update, tokenPermissions.update) &&
Objects.equals(this.delete, tokenPermissions.delete);
}
@Override
public int hashCode() {
return Objects.hash(create, read, update, delete);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TokenPermissions {\n");
if (create != null) sb.append(" create: ").append(toIndentedString(create)).append("\n");
if (read != null) sb.append(" read: ").append(toIndentedString(read)).append("\n");
if (update != null) sb.append(" update: ").append(toIndentedString(update)).append("\n");
if (delete != null) sb.append(" delete: ").append(toIndentedString(delete)).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