com.mypurecloud.sdk.model.OutboundRouteBaseEntityListing 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.IPagedResource;
import com.mypurecloud.sdk.model.OutboundRouteBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* OutboundRouteBaseEntityListing
*/
public class OutboundRouteBaseEntityListing implements Serializable, IPagedResource {
private List entities = new ArrayList();
private Integer pageSize = null;
private Integer pageNumber = null;
private Long total = null;
private String firstUri = null;
private String selfUri = null;
private String nextUri = null;
private String previousUri = null;
private String lastUri = null;
private Integer pageCount = null;
/**
**/
public OutboundRouteBaseEntityListing entities(List entities) {
this.entities = entities;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("entities")
public List getEntities() {
return entities;
}
public void setEntities(List entities) {
this.entities = entities;
}
/**
**/
public OutboundRouteBaseEntityListing pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("pageSize")
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
/**
**/
public OutboundRouteBaseEntityListing pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("pageNumber")
public Integer getPageNumber() {
return pageNumber;
}
public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
}
/**
**/
public OutboundRouteBaseEntityListing total(Long total) {
this.total = total;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("total")
public Long getTotal() {
return total;
}
public void setTotal(Long total) {
this.total = total;
}
/**
**/
public OutboundRouteBaseEntityListing firstUri(String firstUri) {
this.firstUri = firstUri;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("firstUri")
public String getFirstUri() {
return firstUri;
}
public void setFirstUri(String firstUri) {
this.firstUri = firstUri;
}
/**
**/
public OutboundRouteBaseEntityListing selfUri(String selfUri) {
this.selfUri = selfUri;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("selfUri")
public String getSelfUri() {
return selfUri;
}
public void setSelfUri(String selfUri) {
this.selfUri = selfUri;
}
/**
**/
public OutboundRouteBaseEntityListing nextUri(String nextUri) {
this.nextUri = nextUri;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("nextUri")
public String getNextUri() {
return nextUri;
}
public void setNextUri(String nextUri) {
this.nextUri = nextUri;
}
/**
**/
public OutboundRouteBaseEntityListing previousUri(String previousUri) {
this.previousUri = previousUri;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("previousUri")
public String getPreviousUri() {
return previousUri;
}
public void setPreviousUri(String previousUri) {
this.previousUri = previousUri;
}
/**
**/
public OutboundRouteBaseEntityListing lastUri(String lastUri) {
this.lastUri = lastUri;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("lastUri")
public String getLastUri() {
return lastUri;
}
public void setLastUri(String lastUri) {
this.lastUri = lastUri;
}
/**
**/
public OutboundRouteBaseEntityListing pageCount(Integer pageCount) {
this.pageCount = pageCount;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("pageCount")
public Integer getPageCount() {
return pageCount;
}
public void setPageCount(Integer pageCount) {
this.pageCount = pageCount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OutboundRouteBaseEntityListing outboundRouteBaseEntityListing = (OutboundRouteBaseEntityListing) o;
return Objects.equals(this.entities, outboundRouteBaseEntityListing.entities) &&
Objects.equals(this.pageSize, outboundRouteBaseEntityListing.pageSize) &&
Objects.equals(this.pageNumber, outboundRouteBaseEntityListing.pageNumber) &&
Objects.equals(this.total, outboundRouteBaseEntityListing.total) &&
Objects.equals(this.firstUri, outboundRouteBaseEntityListing.firstUri) &&
Objects.equals(this.selfUri, outboundRouteBaseEntityListing.selfUri) &&
Objects.equals(this.nextUri, outboundRouteBaseEntityListing.nextUri) &&
Objects.equals(this.previousUri, outboundRouteBaseEntityListing.previousUri) &&
Objects.equals(this.lastUri, outboundRouteBaseEntityListing.lastUri) &&
Objects.equals(this.pageCount, outboundRouteBaseEntityListing.pageCount);
}
@Override
public int hashCode() {
return Objects.hash(entities, pageSize, pageNumber, total, firstUri, selfUri, nextUri, previousUri, lastUri, pageCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OutboundRouteBaseEntityListing {\n");
sb.append(" entities: ").append(toIndentedString(entities)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" firstUri: ").append(toIndentedString(firstUri)).append("\n");
sb.append(" selfUri: ").append(toIndentedString(selfUri)).append("\n");
sb.append(" nextUri: ").append(toIndentedString(nextUri)).append("\n");
sb.append(" previousUri: ").append(toIndentedString(previousUri)).append("\n");
sb.append(" lastUri: ").append(toIndentedString(lastUri)).append("\n");
sb.append(" pageCount: ").append(toIndentedString(pageCount)).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 ");
}
}