com.mypurecloud.sdk.v2.model.Page 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.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.Serializable;
/**
* Page
*/
public class Page implements Serializable {
private String id = null;
private String name = null;
private String versionId = null;
private Date createdDate = null;
private Date modifiedDate = null;
private Map rootContainer = null;
private Map properties = null;
private String selfUri = null;
@ApiModelProperty(example = "null", value = "The globally unique identifier for the object.")
@JsonProperty("id")
public String getId() {
return id;
}
/**
**/
public Page name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public Page versionId(String versionId) {
this.versionId = versionId;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("versionId")
public String getVersionId() {
return versionId;
}
public void setVersionId(String versionId) {
this.versionId = versionId;
}
/**
* Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
**/
public Page createdDate(Date createdDate) {
this.createdDate = createdDate;
return this;
}
@ApiModelProperty(example = "null", value = "Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z")
@JsonProperty("createdDate")
public Date getCreatedDate() {
return createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
/**
* Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
**/
public Page modifiedDate(Date modifiedDate) {
this.modifiedDate = modifiedDate;
return this;
}
@ApiModelProperty(example = "null", value = "Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z")
@JsonProperty("modifiedDate")
public Date getModifiedDate() {
return modifiedDate;
}
public void setModifiedDate(Date modifiedDate) {
this.modifiedDate = modifiedDate;
}
/**
**/
public Page rootContainer(Map rootContainer) {
this.rootContainer = rootContainer;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("rootContainer")
public Map getRootContainer() {
return rootContainer;
}
public void setRootContainer(Map rootContainer) {
this.rootContainer = rootContainer;
}
/**
**/
public Page properties(Map properties) {
this.properties = properties;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("properties")
public Map getProperties() {
return properties;
}
public void setProperties(Map properties) {
this.properties = properties;
}
@ApiModelProperty(example = "null", value = "The URI for this object")
@JsonProperty("selfUri")
public String getSelfUri() {
return selfUri;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Page page = (Page) o;
return Objects.equals(this.id, page.id) &&
Objects.equals(this.name, page.name) &&
Objects.equals(this.versionId, page.versionId) &&
Objects.equals(this.createdDate, page.createdDate) &&
Objects.equals(this.modifiedDate, page.modifiedDate) &&
Objects.equals(this.rootContainer, page.rootContainer) &&
Objects.equals(this.properties, page.properties) &&
Objects.equals(this.selfUri, page.selfUri);
}
@Override
public int hashCode() {
return Objects.hash(id, name, versionId, createdDate, modifiedDate, rootContainer, properties, selfUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Page {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n");
sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n");
sb.append(" modifiedDate: ").append(toIndentedString(modifiedDate)).append("\n");
sb.append(" rootContainer: ").append(toIndentedString(rootContainer)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" selfUri: ").append(toIndentedString(selfUri)).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 ");
}
}