com.mypurecloud.sdk.model.PolicyActions 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.CalibrationAssignment;
import com.mypurecloud.sdk.model.EvaluationAssignment;
import com.mypurecloud.sdk.model.InitiateScreenRecording;
import com.mypurecloud.sdk.model.MeteredEvaluationAssignment;
import com.mypurecloud.sdk.model.RetentionDuration;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* PolicyActions
*/
public class PolicyActions implements Serializable {
private Boolean retainRecording = null;
private Boolean deleteRecording = null;
private Boolean alwaysDelete = null;
private List assignEvaluations = new ArrayList();
private List assignMeteredEvaluations = new ArrayList();
private List assignCalibrations = new ArrayList();
private RetentionDuration retentionDuration = null;
private InitiateScreenRecording initiateScreenRecording = null;
/**
* true to retain the recording associated with the conversation. Default = true
**/
public PolicyActions retainRecording(Boolean retainRecording) {
this.retainRecording = retainRecording;
return this;
}
@ApiModelProperty(example = "null", value = "true to retain the recording associated with the conversation. Default = true")
@JsonProperty("retainRecording")
public Boolean getRetainRecording() {
return retainRecording;
}
public void setRetainRecording(Boolean retainRecording) {
this.retainRecording = retainRecording;
}
/**
* true to delete the recording associated with the conversation. If retainRecording = true, this will be ignored. Default = false
**/
public PolicyActions deleteRecording(Boolean deleteRecording) {
this.deleteRecording = deleteRecording;
return this;
}
@ApiModelProperty(example = "null", value = "true to delete the recording associated with the conversation. If retainRecording = true, this will be ignored. Default = false")
@JsonProperty("deleteRecording")
public Boolean getDeleteRecording() {
return deleteRecording;
}
public void setDeleteRecording(Boolean deleteRecording) {
this.deleteRecording = deleteRecording;
}
/**
* true to delete the recording associated with the conversation regardless of the values of retainRecording or deleteRecording. Default = false
**/
public PolicyActions alwaysDelete(Boolean alwaysDelete) {
this.alwaysDelete = alwaysDelete;
return this;
}
@ApiModelProperty(example = "null", value = "true to delete the recording associated with the conversation regardless of the values of retainRecording or deleteRecording. Default = false")
@JsonProperty("alwaysDelete")
public Boolean getAlwaysDelete() {
return alwaysDelete;
}
public void setAlwaysDelete(Boolean alwaysDelete) {
this.alwaysDelete = alwaysDelete;
}
/**
**/
public PolicyActions assignEvaluations(List assignEvaluations) {
this.assignEvaluations = assignEvaluations;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("assignEvaluations")
public List getAssignEvaluations() {
return assignEvaluations;
}
public void setAssignEvaluations(List assignEvaluations) {
this.assignEvaluations = assignEvaluations;
}
/**
**/
public PolicyActions assignMeteredEvaluations(List assignMeteredEvaluations) {
this.assignMeteredEvaluations = assignMeteredEvaluations;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("assignMeteredEvaluations")
public List getAssignMeteredEvaluations() {
return assignMeteredEvaluations;
}
public void setAssignMeteredEvaluations(List assignMeteredEvaluations) {
this.assignMeteredEvaluations = assignMeteredEvaluations;
}
/**
**/
public PolicyActions assignCalibrations(List assignCalibrations) {
this.assignCalibrations = assignCalibrations;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("assignCalibrations")
public List getAssignCalibrations() {
return assignCalibrations;
}
public void setAssignCalibrations(List assignCalibrations) {
this.assignCalibrations = assignCalibrations;
}
/**
**/
public PolicyActions retentionDuration(RetentionDuration retentionDuration) {
this.retentionDuration = retentionDuration;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("retentionDuration")
public RetentionDuration getRetentionDuration() {
return retentionDuration;
}
public void setRetentionDuration(RetentionDuration retentionDuration) {
this.retentionDuration = retentionDuration;
}
/**
**/
public PolicyActions initiateScreenRecording(InitiateScreenRecording initiateScreenRecording) {
this.initiateScreenRecording = initiateScreenRecording;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("initiateScreenRecording")
public InitiateScreenRecording getInitiateScreenRecording() {
return initiateScreenRecording;
}
public void setInitiateScreenRecording(InitiateScreenRecording initiateScreenRecording) {
this.initiateScreenRecording = initiateScreenRecording;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PolicyActions policyActions = (PolicyActions) o;
return Objects.equals(this.retainRecording, policyActions.retainRecording) &&
Objects.equals(this.deleteRecording, policyActions.deleteRecording) &&
Objects.equals(this.alwaysDelete, policyActions.alwaysDelete) &&
Objects.equals(this.assignEvaluations, policyActions.assignEvaluations) &&
Objects.equals(this.assignMeteredEvaluations, policyActions.assignMeteredEvaluations) &&
Objects.equals(this.assignCalibrations, policyActions.assignCalibrations) &&
Objects.equals(this.retentionDuration, policyActions.retentionDuration) &&
Objects.equals(this.initiateScreenRecording, policyActions.initiateScreenRecording);
}
@Override
public int hashCode() {
return Objects.hash(retainRecording, deleteRecording, alwaysDelete, assignEvaluations, assignMeteredEvaluations, assignCalibrations, retentionDuration, initiateScreenRecording);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PolicyActions {\n");
sb.append(" retainRecording: ").append(toIndentedString(retainRecording)).append("\n");
sb.append(" deleteRecording: ").append(toIndentedString(deleteRecording)).append("\n");
sb.append(" alwaysDelete: ").append(toIndentedString(alwaysDelete)).append("\n");
sb.append(" assignEvaluations: ").append(toIndentedString(assignEvaluations)).append("\n");
sb.append(" assignMeteredEvaluations: ").append(toIndentedString(assignMeteredEvaluations)).append("\n");
sb.append(" assignCalibrations: ").append(toIndentedString(assignCalibrations)).append("\n");
sb.append(" retentionDuration: ").append(toIndentedString(retentionDuration)).append("\n");
sb.append(" initiateScreenRecording: ").append(toIndentedString(initiateScreenRecording)).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 ");
}
}