com.mypurecloud.sdk.model.DocumentUpdate 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.DocumentAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* DocumentUpdate
*/
public class DocumentUpdate implements Serializable {
private Integer changeNumber = null;
private String name = null;
private Boolean read = null;
private List addTags = new ArrayList();
private List removeTags = new ArrayList();
private List addTagIds = new ArrayList();
private List removeTagIds = new ArrayList();
private List updateAttributes = new ArrayList();
private List removeAttributes = new ArrayList();
/**
**/
public DocumentUpdate changeNumber(Integer changeNumber) {
this.changeNumber = changeNumber;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("changeNumber")
public Integer getChangeNumber() {
return changeNumber;
}
public void setChangeNumber(Integer changeNumber) {
this.changeNumber = changeNumber;
}
/**
* The name of the document
**/
public DocumentUpdate name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The name of the document")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public DocumentUpdate read(Boolean read) {
this.read = read;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("read")
public Boolean getRead() {
return read;
}
public void setRead(Boolean read) {
this.read = read;
}
/**
**/
public DocumentUpdate addTags(List addTags) {
this.addTags = addTags;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("addTags")
public List getAddTags() {
return addTags;
}
public void setAddTags(List addTags) {
this.addTags = addTags;
}
/**
**/
public DocumentUpdate removeTags(List removeTags) {
this.removeTags = removeTags;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("removeTags")
public List getRemoveTags() {
return removeTags;
}
public void setRemoveTags(List removeTags) {
this.removeTags = removeTags;
}
/**
**/
public DocumentUpdate addTagIds(List addTagIds) {
this.addTagIds = addTagIds;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("addTagIds")
public List getAddTagIds() {
return addTagIds;
}
public void setAddTagIds(List addTagIds) {
this.addTagIds = addTagIds;
}
/**
**/
public DocumentUpdate removeTagIds(List removeTagIds) {
this.removeTagIds = removeTagIds;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("removeTagIds")
public List getRemoveTagIds() {
return removeTagIds;
}
public void setRemoveTagIds(List removeTagIds) {
this.removeTagIds = removeTagIds;
}
/**
**/
public DocumentUpdate updateAttributes(List updateAttributes) {
this.updateAttributes = updateAttributes;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("updateAttributes")
public List getUpdateAttributes() {
return updateAttributes;
}
public void setUpdateAttributes(List updateAttributes) {
this.updateAttributes = updateAttributes;
}
/**
**/
public DocumentUpdate removeAttributes(List removeAttributes) {
this.removeAttributes = removeAttributes;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("removeAttributes")
public List getRemoveAttributes() {
return removeAttributes;
}
public void setRemoveAttributes(List removeAttributes) {
this.removeAttributes = removeAttributes;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DocumentUpdate documentUpdate = (DocumentUpdate) o;
return Objects.equals(this.changeNumber, documentUpdate.changeNumber) &&
Objects.equals(this.name, documentUpdate.name) &&
Objects.equals(this.read, documentUpdate.read) &&
Objects.equals(this.addTags, documentUpdate.addTags) &&
Objects.equals(this.removeTags, documentUpdate.removeTags) &&
Objects.equals(this.addTagIds, documentUpdate.addTagIds) &&
Objects.equals(this.removeTagIds, documentUpdate.removeTagIds) &&
Objects.equals(this.updateAttributes, documentUpdate.updateAttributes) &&
Objects.equals(this.removeAttributes, documentUpdate.removeAttributes);
}
@Override
public int hashCode() {
return Objects.hash(changeNumber, name, read, addTags, removeTags, addTagIds, removeTagIds, updateAttributes, removeAttributes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DocumentUpdate {\n");
sb.append(" changeNumber: ").append(toIndentedString(changeNumber)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" read: ").append(toIndentedString(read)).append("\n");
sb.append(" addTags: ").append(toIndentedString(addTags)).append("\n");
sb.append(" removeTags: ").append(toIndentedString(removeTags)).append("\n");
sb.append(" addTagIds: ").append(toIndentedString(addTagIds)).append("\n");
sb.append(" removeTagIds: ").append(toIndentedString(removeTagIds)).append("\n");
sb.append(" updateAttributes: ").append(toIndentedString(updateAttributes)).append("\n");
sb.append(" removeAttributes: ").append(toIndentedString(removeAttributes)).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 ");
}
}