com.seeq.model.IntervalV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* 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;
/**
* The time range to overwrite. if not provided, it will be the inclusive of all the provided samples starts.
*/
@Schema(description = "The time range to overwrite. if not provided, it will be the inclusive of all the provided samples starts.")
public class IntervalV1 {
@JsonProperty("end")
private Object end = null;
@JsonProperty("start")
private Object start = null;
public IntervalV1 end(Object end) {
this.end = end;
return this;
}
/**
* The end of the interval, exclusive. 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 interval, exclusive. 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 IntervalV1 start(Object start) {
this.start = start;
return this;
}
/**
* The start of the interval, inclusive. 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(description = "The start of the interval, inclusive. 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;
}
IntervalV1 intervalV1 = (IntervalV1) o;
return Objects.equals(this.end, intervalV1.end) &&
Objects.equals(this.start, intervalV1.start);
}
@Override
public int hashCode() {
return Objects.hash(end, start);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IntervalV1 {\n");
sb.append(" end: ").append(toIndentedString(end)).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 ");
}
}