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

com.seeq.model.CapsuleV1 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: 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 com.seeq.model.ScalarPropertyV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * The primary object of interest
 */
@Schema(description = "The primary object of interest")
public class CapsuleV1 {
  @JsonProperty("cursorKey")
  private Object cursorKey = null;

  @JsonProperty("end")
  private Object end = null;

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

  @JsonProperty("isUncertain")
  private Boolean isUncertain = null;

  @JsonProperty("properties")
  private List properties = new ArrayList();

  @JsonProperty("start")
  private Object start = null;

  public CapsuleV1 cursorKey(Object cursorKey) {
    this.cursorKey = cursorKey;
    return this;
  }

   /**
   * The point at which the capsule becomes uncertain: an ISO 8601 date string (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm), or a whole number of nanoseconds since the unix epoch.
   * @return cursorKey
  **/
  @Schema(description = "The point at which the capsule becomes uncertain: an ISO 8601 date string (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm), or a whole number of nanoseconds since the unix epoch.")
  public Object getCursorKey() {
    return cursorKey;
  }

  public void setCursorKey(Object cursorKey) {
    this.cursorKey = cursorKey;
  }

  public CapsuleV1 end(Object end) {
    this.end = end;
    return this;
  }

   /**
   * The end of the capsule: an ISO 8601 date string (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm), or a whole number of nanoseconds since the unix epoch.
   * @return end
  **/
  @Schema(description = "The end of the capsule: an ISO 8601 date string (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm), or a whole number of nanoseconds since the unix epoch.")
  public Object getEnd() {
    return end;
  }

  public void setEnd(Object end) {
    this.end = end;
  }

  public CapsuleV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The id of the capsule
   * @return id
  **/
  @Schema(required = true, description = "The id of the capsule")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public CapsuleV1 isUncertain(Boolean isUncertain) {
    this.isUncertain = isUncertain;
    return this;
  }

   /**
   * True if this capsule is fully or partially uncertain
   * @return isUncertain
  **/
  @Schema(description = "True if this capsule is fully or partially uncertain")
  public Boolean getIsUncertain() {
    return isUncertain;
  }

  public void setIsUncertain(Boolean isUncertain) {
    this.isUncertain = isUncertain;
  }

  public CapsuleV1 properties(List properties) {
    this.properties = properties;
    return this;
  }

  public CapsuleV1 addPropertiesItem(ScalarPropertyV1 propertiesItem) {
    if (this.properties == null) {
      this.properties = new ArrayList();
    }
    this.properties.add(propertiesItem);
    return this;
  }

   /**
   * A list of the capsule's properties
   * @return properties
  **/
  @Schema(description = "A list of the capsule's properties")
  public List getProperties() {
    return properties;
  }

  public void setProperties(List properties) {
    this.properties = properties;
  }

  public CapsuleV1 start(Object start) {
    this.start = start;
    return this;
  }

   /**
   * The start of the capsule: an ISO 8601 date string (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm), or a whole number of nanoseconds since the unix epoch.
   * @return start
  **/
  @Schema(required = true, description = "The start of the capsule: an ISO 8601 date string (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm), or a whole number of nanoseconds since the unix epoch.")
  public Object getStart() {
    return start;
  }

  public void setStart(Object start) {
    this.start = start;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CapsuleV1 capsuleV1 = (CapsuleV1) o;
    return Objects.equals(this.cursorKey, capsuleV1.cursorKey) &&
        Objects.equals(this.end, capsuleV1.end) &&
        Objects.equals(this.id, capsuleV1.id) &&
        Objects.equals(this.isUncertain, capsuleV1.isUncertain) &&
        Objects.equals(this.properties, capsuleV1.properties) &&
        Objects.equals(this.start, capsuleV1.start);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cursorKey, end, id, isUncertain, properties, start);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CapsuleV1 {\n");
    
    sb.append("    cursorKey: ").append(toIndentedString(cursorKey)).append("\n");
    sb.append("    end: ").append(toIndentedString(end)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    isUncertain: ").append(toIndentedString(isUncertain)).append("\n");
    sb.append("    properties: ").append(toIndentedString(properties)).append("\n");
    sb.append("    start: ").append(toIndentedString(start)).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