com.seeq.model.ContextOpaqueInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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("key")
private String key = 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 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;
}
@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.key, contextOpaqueInputV1.key);
}
@Override
public int hashCode() {
return Objects.hash(data, datumId, key);
}
@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(" key: ").append(toIndentedString(key)).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 ");
}
}