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

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

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 65.1.3-v202408082312
 * 
 *
 * 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 io.swagger.v3.oas.annotations.media.Schema;
/**
 * ContextOpaqueInputV1
 */
public class ContextOpaqueInputV1 {
  @JsonProperty("data")
  private String data = null;

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

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

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

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

  public ContextOpaqueInputV1 data(String data) {
    this.data = data;
    return this;
  }

   /**
   * The data for this piece of context. If the data is binary it must first be base64 encoded
   * @return data
  **/
  @Schema(description = "The data for this piece of context. If the data is binary it must first be base64 encoded")
  public String getData() {
    return data;
  }

  public void setData(String data) {
    this.data = data;
  }

  public ContextOpaqueInputV1 datumId(String datumId) {
    this.datumId = datumId;
    return this;
  }

   /**
   * If provided, the ID of a more specific aspect of the Item to associate with the opaque context, such as the ID of a capsule
   * @return datumId
  **/
  @Schema(description = "If provided, the ID of a more specific aspect of the Item to associate with the opaque context, such as the ID of a capsule")
  public String getDatumId() {
    return datumId;
  }

  public void setDatumId(String datumId) {
    this.datumId = datumId;
  }

  public ContextOpaqueInputV1 endTime(String endTime) {
    this.endTime = endTime;
    return this;
  }

   /**
   * The end time of the opaque context in the form of an ISO8601 timestamp. If provided, start time must also be provided.
   * @return endTime
  **/
  @Schema(description = "The end time of the opaque context in the form of an ISO8601 timestamp. If provided, start time must also be provided.")
  public String getEndTime() {
    return endTime;
  }

  public void setEndTime(String endTime) {
    this.endTime = endTime;
  }

  public ContextOpaqueInputV1 key(String key) {
    this.key = key;
    return this;
  }

   /**
   * The identifier of the data. This will uniquely identify this piece of opaque context for a specific Item or datum
   * @return key
  **/
  @Schema(description = "The identifier of the data. This will uniquely identify this piece of opaque context for a specific Item or datum")
  public String getKey() {
    return key;
  }

  public void setKey(String key) {
    this.key = key;
  }

  public ContextOpaqueInputV1 startTime(String startTime) {
    this.startTime = startTime;
    return this;
  }

   /**
   * The start time of the opaque context in the form of an ISO8601 timestamp. If provided, end time must also be provided.
   * @return startTime
  **/
  @Schema(description = "The start time of the opaque context in the form of an ISO8601 timestamp. If provided, end time must also be provided.")
  public String getStartTime() {
    return startTime;
  }

  public void setStartTime(String startTime) {
    this.startTime = startTime;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ContextOpaqueInputV1 contextOpaqueInputV1 = (ContextOpaqueInputV1) o;
    return Objects.equals(this.data, contextOpaqueInputV1.data) &&
        Objects.equals(this.datumId, contextOpaqueInputV1.datumId) &&
        Objects.equals(this.endTime, contextOpaqueInputV1.endTime) &&
        Objects.equals(this.key, contextOpaqueInputV1.key) &&
        Objects.equals(this.startTime, contextOpaqueInputV1.startTime);
  }

  @Override
  public int hashCode() {
    return Objects.hash(data, datumId, endTime, key, startTime);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ContextOpaqueInputV1 {\n");
    
    sb.append("    data: ").append(toIndentedString(data)).append("\n");
    sb.append("    datumId: ").append(toIndentedString(datumId)).append("\n");
    sb.append("    endTime: ").append(toIndentedString(endTime)).append("\n");
    sb.append("    key: ").append(toIndentedString(key)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).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