net.leanix.mtm.api.models.TechnicalUserResponse 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
/*
* LeanIX MTM REST API
* Multi-tenancy-manager for LeanIX. Manages accounts, contracts, users, workspaces, permissions, and more.
*
* OpenAPI spec version: 1.6.348
*
*
* 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 net.leanix.mtm.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import net.leanix.mtm.api.models.ApiError;
import net.leanix.mtm.api.models.TechnicalUserData;
/**
* TechnicalUserResponse
*/
public class TechnicalUserResponse {
@JsonProperty("status")
private String status = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("message")
private String message = null;
@JsonProperty("errors")
private List errors = null;
@JsonProperty("total")
private Long total = null;
@JsonProperty("data")
private TechnicalUserData data = null;
@JsonProperty("workspaceInstanceUrl")
private String workspaceInstanceUrl = null;
@JsonProperty("workspaceName")
private String workspaceName = null;
public TechnicalUserResponse status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public TechnicalUserResponse type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public TechnicalUserResponse message(String message) {
this.message = message;
return this;
}
/**
* Get message
* @return message
**/
@ApiModelProperty(value = "")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public TechnicalUserResponse errors(List errors) {
this.errors = errors;
return this;
}
public TechnicalUserResponse addErrorsItem(ApiError errorsItem) {
if (this.errors == null) {
this.errors = new ArrayList();
}
this.errors.add(errorsItem);
return this;
}
/**
* Get errors
* @return errors
**/
@ApiModelProperty(value = "")
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
public TechnicalUserResponse total(Long total) {
this.total = total;
return this;
}
/**
* Get total
* @return total
**/
@ApiModelProperty(value = "")
public Long getTotal() {
return total;
}
public void setTotal(Long total) {
this.total = total;
}
public TechnicalUserResponse data(TechnicalUserData data) {
this.data = data;
return this;
}
/**
* Get data
* @return data
**/
@ApiModelProperty(value = "")
public TechnicalUserData getData() {
return data;
}
public void setData(TechnicalUserData data) {
this.data = data;
}
public TechnicalUserResponse workspaceInstanceUrl(String workspaceInstanceUrl) {
this.workspaceInstanceUrl = workspaceInstanceUrl;
return this;
}
/**
* Get workspaceInstanceUrl
* @return workspaceInstanceUrl
**/
@ApiModelProperty(value = "")
public String getWorkspaceInstanceUrl() {
return workspaceInstanceUrl;
}
public void setWorkspaceInstanceUrl(String workspaceInstanceUrl) {
this.workspaceInstanceUrl = workspaceInstanceUrl;
}
public TechnicalUserResponse workspaceName(String workspaceName) {
this.workspaceName = workspaceName;
return this;
}
/**
* Get workspaceName
* @return workspaceName
**/
@ApiModelProperty(value = "")
public String getWorkspaceName() {
return workspaceName;
}
public void setWorkspaceName(String workspaceName) {
this.workspaceName = workspaceName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TechnicalUserResponse technicalUserResponse = (TechnicalUserResponse) o;
return Objects.equals(this.status, technicalUserResponse.status) &&
Objects.equals(this.type, technicalUserResponse.type) &&
Objects.equals(this.message, technicalUserResponse.message) &&
Objects.equals(this.errors, technicalUserResponse.errors) &&
Objects.equals(this.total, technicalUserResponse.total) &&
Objects.equals(this.data, technicalUserResponse.data) &&
Objects.equals(this.workspaceInstanceUrl, technicalUserResponse.workspaceInstanceUrl) &&
Objects.equals(this.workspaceName, technicalUserResponse.workspaceName);
}
@Override
public int hashCode() {
return Objects.hash(status, type, message, errors, total, data, workspaceInstanceUrl, workspaceName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TechnicalUserResponse {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" workspaceInstanceUrl: ").append(toIndentedString(workspaceInstanceUrl)).append("\n");
sb.append(" workspaceName: ").append(toIndentedString(workspaceName)).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