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

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

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

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

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

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

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

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

  public CapsuleInputV1 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 CapsuleInputV1 start(Object start) {
    this.start = start;
    return this;
  }

   /**
   * The start of the capsule. For a time, an ISO 8601 date string (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm), or a whole number of nanoseconds since the unix epoch (if the units are nanoseconds).
   * @return start
  **/
  @Schema(required = true, description = "The start of the capsule. For a time, an ISO 8601 date string (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm), or a whole number of nanoseconds since the unix epoch (if the units are nanoseconds).")
  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;
    }
    CapsuleInputV1 capsuleInputV1 = (CapsuleInputV1) o;
    return Objects.equals(this.end, capsuleInputV1.end) &&
        Objects.equals(this.properties, capsuleInputV1.properties) &&
        Objects.equals(this.start, capsuleInputV1.start);
  }

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


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