com.mypurecloud.sdk.v2.model.DateRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client-v2 Show documentation
Show all versions of platform-client-v2 Show documentation
A Java package to interface with the PureCloud Platform API
The newest version!
package com.mypurecloud.sdk.v2.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import java.util.Objects;
import java.util.ArrayList;
import java.io.IOException;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* DateRange
*/
public class DateRange implements Serializable {
private String startDate = null;
private String endDate = null;
/**
* The inclusive start of a date range in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone.
**/
public DateRange startDate(String startDate) {
this.startDate = startDate;
return this;
}
@ApiModelProperty(example = "null", value = "The inclusive start of a date range in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone.")
@JsonProperty("startDate")
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
/**
* The inclusive end of a date range in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone.
**/
public DateRange endDate(String endDate) {
this.endDate = endDate;
return this;
}
@ApiModelProperty(example = "null", value = "The inclusive end of a date range in yyyy-MM-dd format. Should be interpreted in the management unit's configured time zone.")
@JsonProperty("endDate")
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DateRange dateRange = (DateRange) o;
return Objects.equals(this.startDate, dateRange.startDate) &&
Objects.equals(this.endDate, dateRange.endDate);
}
@Override
public int hashCode() {
return Objects.hash(startDate, endDate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DateRange {\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).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 ");
}
}