
com.squareup.connect.models.TimeRange Maven / Gradle / Ivy
/*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: [email protected]
*
* 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.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents a generic time range. The start and end values are represented in RFC-3339 format. Time ranges are customized to be inclusive or exclusive based on the needs of a particular endpoint. Refer to the relevent endpoint-specific documentation to determine how time ranges are handled.
*/
@ApiModel(description = "Represents a generic time range. The start and end values are represented in RFC-3339 format. Time ranges are customized to be inclusive or exclusive based on the needs of a particular endpoint. Refer to the relevent endpoint-specific documentation to determine how time ranges are handled.")
public class TimeRange {
@JsonProperty("start_at")
private String startAt = null;
@JsonProperty("end_at")
private String endAt = null;
public TimeRange startAt(String startAt) {
this.startAt = startAt;
return this;
}
/**
* A datetime value in RFC-3339 format indicating when the time range starts.
* @return startAt
**/
@ApiModelProperty(value = "A datetime value in RFC-3339 format indicating when the time range starts.")
public String getStartAt() {
return startAt;
}
public void setStartAt(String startAt) {
this.startAt = startAt;
}
public TimeRange endAt(String endAt) {
this.endAt = endAt;
return this;
}
/**
* A datetime value in RFC-3339 format indicating when the time range ends.
* @return endAt
**/
@ApiModelProperty(value = "A datetime value in RFC-3339 format indicating when the time range ends.")
public String getEndAt() {
return endAt;
}
public void setEndAt(String endAt) {
this.endAt = endAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TimeRange timeRange = (TimeRange) o;
return Objects.equals(this.startAt, timeRange.startAt) &&
Objects.equals(this.endAt, timeRange.endAt);
}
@Override
public int hashCode() {
return Objects.hash(startAt, endAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TimeRange {\n");
sb.append(" startAt: ").append(toIndentedString(startAt)).append("\n");
sb.append(" endAt: ").append(toIndentedString(endAt)).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 - 2025 Weber Informatics LLC | Privacy Policy