com.seeq.model.ItemSwapResultOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* 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 com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.ItemPreviewV1;
import com.seeq.model.ItemPreviewWithAssetsV1;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* The list of results from new tree items that Seeq attempted to create.
*/
@Schema(description = "The list of results from new tree items that Seeq attempted to create.")
public class ItemSwapResultOutputV1 {
@JsonProperty("errorMessage")
private String errorMessage = null;
@JsonProperty("item")
private ItemPreviewWithAssetsV1 item = null;
@JsonProperty("parent")
private ItemPreviewV1 parent = null;
public ItemSwapResultOutputV1 errorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
/**
* If the item could not be created, this field will contain an error message explaining the problem
* @return errorMessage
**/
@Schema(description = "If the item could not be created, this field will contain an error message explaining the problem")
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public ItemSwapResultOutputV1 item(ItemPreviewWithAssetsV1 item) {
this.item = item;
return this;
}
/**
* Get item
* @return item
**/
@Schema(description = "")
public ItemPreviewWithAssetsV1 getItem() {
return item;
}
public void setItem(ItemPreviewWithAssetsV1 item) {
this.item = item;
}
public ItemSwapResultOutputV1 parent(ItemPreviewV1 parent) {
this.parent = parent;
return this;
}
/**
* Get parent
* @return parent
**/
@Schema(description = "")
public ItemPreviewV1 getParent() {
return parent;
}
public void setParent(ItemPreviewV1 parent) {
this.parent = parent;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ItemSwapResultOutputV1 itemSwapResultOutputV1 = (ItemSwapResultOutputV1) o;
return Objects.equals(this.errorMessage, itemSwapResultOutputV1.errorMessage) &&
Objects.equals(this.item, itemSwapResultOutputV1.item) &&
Objects.equals(this.parent, itemSwapResultOutputV1.parent);
}
@Override
public int hashCode() {
return Objects.hash(errorMessage, item, parent);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ItemSwapResultOutputV1 {\n");
sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
sb.append(" item: ").append(toIndentedString(item)).append("\n");
sb.append(" parent: ").append(toIndentedString(parent)).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 ");
}
}