net.leanix.mtm.api.models.UserResponse Maven / Gradle / Ivy
package net.leanix.mtm.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
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.User;
public class UserResponse {
private String status = null;
private String type = null;
private String message = null;
private List errors = new ArrayList();
private Long total = null;
private User data = null;
private String workspaceInstanceUrl = null;
private String workspaceName = null;
/**
**/
public UserResponse status(String status) {
this.status = status;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("status")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
/**
**/
public UserResponse 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 UserResponse 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 UserResponse 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 UserResponse 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 UserResponse data(User data) {
this.data = data;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("data")
public User getData() {
return data;
}
public void setData(User data) {
this.data = data;
}
/**
**/
public UserResponse workspaceInstanceUrl(String workspaceInstanceUrl) {
this.workspaceInstanceUrl = workspaceInstanceUrl;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("workspaceInstanceUrl")
public String getWorkspaceInstanceUrl() {
return workspaceInstanceUrl;
}
public void setWorkspaceInstanceUrl(String workspaceInstanceUrl) {
this.workspaceInstanceUrl = workspaceInstanceUrl;
}
/**
**/
public UserResponse workspaceName(String workspaceName) {
this.workspaceName = workspaceName;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("workspaceName")
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;
}
UserResponse userResponse = (UserResponse) o;
return Objects.equals(this.status, userResponse.status) &&
Objects.equals(this.type, userResponse.type) &&
Objects.equals(this.message, userResponse.message) &&
Objects.equals(this.errors, userResponse.errors) &&
Objects.equals(this.total, userResponse.total) &&
Objects.equals(this.data, userResponse.data) &&
Objects.equals(this.workspaceInstanceUrl, userResponse.workspaceInstanceUrl) &&
Objects.equals(this.workspaceName, userResponse.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 UserResponse {\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