net.leanix.mtm.api.models.PersonalAccessTokenResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-mtm-sdk-java Show documentation
Show all versions of leanix-mtm-sdk-java Show documentation
SDK for Java to access leanIX MTM REST API
package net.leanix.mtm.api.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class PersonalAccessTokenResponse {
private PersonalAccessToken data = null;
private String message = null;
private String type = null;
private Long total = null;
private List errors = new ArrayList();
public enum StatusEnum {
OK("OK"),
ERROR("ERROR");
private String value;
StatusEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return value;
}
}
private StatusEnum status = null;
/**
**/
public PersonalAccessTokenResponse data(PersonalAccessToken data) {
this.data = data;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("data")
public PersonalAccessToken getData() {
return data;
}
public void setData(PersonalAccessToken data) {
this.data = data;
}
/**
**/
public PersonalAccessTokenResponse message(String message) {
this.message = message;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("message")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
/**
**/
public PersonalAccessTokenResponse type(String type) {
this.type = type;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("type")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
**/
public PersonalAccessTokenResponse total(Long total) {
this.total = total;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("total")
public Long getTotal() {
return total;
}
public void setTotal(Long total) {
this.total = total;
}
/**
**/
public PersonalAccessTokenResponse errors(List errors) {
this.errors = errors;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("errors")
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
/**
**/
public PersonalAccessTokenResponse status(StatusEnum status) {
this.status = status;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("status")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PersonalAccessTokenResponse personalAccessTokenResponse = (PersonalAccessTokenResponse) o;
return Objects.equals(this.data, personalAccessTokenResponse.data) &&
Objects.equals(this.message, personalAccessTokenResponse.message) &&
Objects.equals(this.type, personalAccessTokenResponse.type) &&
Objects.equals(this.total, personalAccessTokenResponse.total) &&
Objects.equals(this.errors, personalAccessTokenResponse.errors) &&
Objects.equals(this.status, personalAccessTokenResponse.status);
}
@Override
public int hashCode() {
return Objects.hash(data, message, type, total, errors, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PersonalAccessTokenResponse {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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