com.mypurecloud.sdk.model.TimeAllowed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.TimeSlot;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* TimeAllowed
*/
public class TimeAllowed implements Serializable {
private List timeSlots = new ArrayList();
private String timeZoneId = null;
private Boolean empty = null;
/**
**/
public TimeAllowed timeSlots(List timeSlots) {
this.timeSlots = timeSlots;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("timeSlots")
public List getTimeSlots() {
return timeSlots;
}
public void setTimeSlots(List timeSlots) {
this.timeSlots = timeSlots;
}
/**
**/
public TimeAllowed timeZoneId(String timeZoneId) {
this.timeZoneId = timeZoneId;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("timeZoneId")
public String getTimeZoneId() {
return timeZoneId;
}
public void setTimeZoneId(String timeZoneId) {
this.timeZoneId = timeZoneId;
}
/**
**/
public TimeAllowed empty(Boolean empty) {
this.empty = empty;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("empty")
public Boolean getEmpty() {
return empty;
}
public void setEmpty(Boolean empty) {
this.empty = empty;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TimeAllowed timeAllowed = (TimeAllowed) o;
return Objects.equals(this.timeSlots, timeAllowed.timeSlots) &&
Objects.equals(this.timeZoneId, timeAllowed.timeZoneId) &&
Objects.equals(this.empty, timeAllowed.empty);
}
@Override
public int hashCode() {
return Objects.hash(timeSlots, timeZoneId, empty);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TimeAllowed {\n");
sb.append(" timeSlots: ").append(toIndentedString(timeSlots)).append("\n");
sb.append(" timeZoneId: ").append(toIndentedString(timeZoneId)).append("\n");
sb.append(" empty: ").append(toIndentedString(empty)).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 ");
}
}