com.mypurecloud.sdk.model.AuditChange 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.AuditEntityReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* AuditChange
*/
public class AuditChange implements Serializable {
private String property = null;
private AuditEntityReference entity = null;
private List oldValues = new ArrayList();
private List newValues = new ArrayList();
/**
**/
public AuditChange property(String property) {
this.property = property;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("property")
public String getProperty() {
return property;
}
public void setProperty(String property) {
this.property = property;
}
/**
**/
public AuditChange entity(AuditEntityReference entity) {
this.entity = entity;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("entity")
public AuditEntityReference getEntity() {
return entity;
}
public void setEntity(AuditEntityReference entity) {
this.entity = entity;
}
/**
**/
public AuditChange oldValues(List oldValues) {
this.oldValues = oldValues;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("oldValues")
public List getOldValues() {
return oldValues;
}
public void setOldValues(List oldValues) {
this.oldValues = oldValues;
}
/**
**/
public AuditChange newValues(List newValues) {
this.newValues = newValues;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("newValues")
public List getNewValues() {
return newValues;
}
public void setNewValues(List newValues) {
this.newValues = newValues;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuditChange auditChange = (AuditChange) o;
return Objects.equals(this.property, auditChange.property) &&
Objects.equals(this.entity, auditChange.entity) &&
Objects.equals(this.oldValues, auditChange.oldValues) &&
Objects.equals(this.newValues, auditChange.newValues);
}
@Override
public int hashCode() {
return Objects.hash(property, entity, oldValues, newValues);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AuditChange {\n");
sb.append(" property: ").append(toIndentedString(property)).append("\n");
sb.append(" entity: ").append(toIndentedString(entity)).append("\n");
sb.append(" oldValues: ").append(toIndentedString(oldValues)).append("\n");
sb.append(" newValues: ").append(toIndentedString(newValues)).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 ");
}
}