All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.ItemUpdateOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 60.1.3-v202304250417
 * 
 *
 * 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 io.swagger.v3.oas.annotations.media.Schema;
/**
 * The list of results from item updates. The Nth output corresponds to the Nth input.
 */
@Schema(description = "The list of results from item updates. The Nth output corresponds to the Nth input.")
public class ItemUpdateOutputV1 {
  @JsonProperty("dataId")
  private String dataId = null;

  @JsonProperty("datasourceClass")
  private String datasourceClass = null;

  @JsonProperty("datasourceId")
  private String datasourceId = null;

  @JsonProperty("errorMessage")
  private String errorMessage = null;

  @JsonProperty("item")
  private ItemPreviewV1 item = null;

  public ItemUpdateOutputV1 dataId(String dataId) {
    this.dataId = dataId;
    return this;
  }

   /**
   * An ID which uniquely identifies the item within the datasource that hosts it
   * @return dataId
  **/
  @Schema(description = "An ID which uniquely identifies the item within the datasource that hosts it")
  public String getDataId() {
    return dataId;
  }

  public void setDataId(String dataId) {
    this.dataId = dataId;
  }

  public ItemUpdateOutputV1 datasourceClass(String datasourceClass) {
    this.datasourceClass = datasourceClass;
    return this;
  }

   /**
   * The class of the datasource that hosts the item
   * @return datasourceClass
  **/
  @Schema(description = "The class of the datasource that hosts the item")
  public String getDatasourceClass() {
    return datasourceClass;
  }

  public void setDatasourceClass(String datasourceClass) {
    this.datasourceClass = datasourceClass;
  }

  public ItemUpdateOutputV1 datasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
    return this;
  }

   /**
   * The ID of the datasource that hosts the item.
   * @return datasourceId
  **/
  @Schema(description = "The ID of the datasource that hosts the item.")
  public String getDatasourceId() {
    return datasourceId;
  }

  public void setDatasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
  }

  public ItemUpdateOutputV1 errorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
    return this;
  }

   /**
   * If the update failed, this field will contain an error message explaining the problem
   * @return errorMessage
  **/
  @Schema(description = "If the update failed, this field will contain an error message explaining the problem")
  public String getErrorMessage() {
    return errorMessage;
  }

  public void setErrorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
  }

  public ItemUpdateOutputV1 item(ItemPreviewV1 item) {
    this.item = item;
    return this;
  }

   /**
   * Get item
   * @return item
  **/
  @Schema(description = "")
  public ItemPreviewV1 getItem() {
    return item;
  }

  public void setItem(ItemPreviewV1 item) {
    this.item = item;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ItemUpdateOutputV1 itemUpdateOutputV1 = (ItemUpdateOutputV1) o;
    return Objects.equals(this.dataId, itemUpdateOutputV1.dataId) &&
        Objects.equals(this.datasourceClass, itemUpdateOutputV1.datasourceClass) &&
        Objects.equals(this.datasourceId, itemUpdateOutputV1.datasourceId) &&
        Objects.equals(this.errorMessage, itemUpdateOutputV1.errorMessage) &&
        Objects.equals(this.item, itemUpdateOutputV1.item);
  }

  @Override
  public int hashCode() {
    return Objects.hash(dataId, datasourceClass, datasourceId, errorMessage, item);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ItemUpdateOutputV1 {\n");
    
    sb.append("    dataId: ").append(toIndentedString(dataId)).append("\n");
    sb.append("    datasourceClass: ").append(toIndentedString(datasourceClass)).append("\n");
    sb.append("    datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
    sb.append("    errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
    sb.append("    item: ").append(toIndentedString(item)).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 - 2024 Weber Informatics LLC | Privacy Policy