com.mypurecloud.sdk.model.CampaignInteractions 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.CampaignInteraction;
import com.mypurecloud.sdk.model.UriReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* CampaignInteractions
*/
public class CampaignInteractions implements Serializable {
private UriReference campaign = null;
private List pendingInteractions = new ArrayList();
private List proceedingInteractions = new ArrayList();
private List previewingInteractions = new ArrayList();
private List interactingInteractions = new ArrayList();
private List scheduledInteractions = new ArrayList();
/**
**/
public CampaignInteractions campaign(UriReference campaign) {
this.campaign = campaign;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("campaign")
public UriReference getCampaign() {
return campaign;
}
public void setCampaign(UriReference campaign) {
this.campaign = campaign;
}
/**
**/
public CampaignInteractions pendingInteractions(List pendingInteractions) {
this.pendingInteractions = pendingInteractions;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("pendingInteractions")
public List getPendingInteractions() {
return pendingInteractions;
}
public void setPendingInteractions(List pendingInteractions) {
this.pendingInteractions = pendingInteractions;
}
/**
**/
public CampaignInteractions proceedingInteractions(List proceedingInteractions) {
this.proceedingInteractions = proceedingInteractions;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("proceedingInteractions")
public List getProceedingInteractions() {
return proceedingInteractions;
}
public void setProceedingInteractions(List proceedingInteractions) {
this.proceedingInteractions = proceedingInteractions;
}
/**
**/
public CampaignInteractions previewingInteractions(List previewingInteractions) {
this.previewingInteractions = previewingInteractions;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("previewingInteractions")
public List getPreviewingInteractions() {
return previewingInteractions;
}
public void setPreviewingInteractions(List previewingInteractions) {
this.previewingInteractions = previewingInteractions;
}
/**
**/
public CampaignInteractions interactingInteractions(List interactingInteractions) {
this.interactingInteractions = interactingInteractions;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("interactingInteractions")
public List getInteractingInteractions() {
return interactingInteractions;
}
public void setInteractingInteractions(List interactingInteractions) {
this.interactingInteractions = interactingInteractions;
}
/**
**/
public CampaignInteractions scheduledInteractions(List scheduledInteractions) {
this.scheduledInteractions = scheduledInteractions;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("scheduledInteractions")
public List getScheduledInteractions() {
return scheduledInteractions;
}
public void setScheduledInteractions(List scheduledInteractions) {
this.scheduledInteractions = scheduledInteractions;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignInteractions campaignInteractions = (CampaignInteractions) o;
return Objects.equals(this.campaign, campaignInteractions.campaign) &&
Objects.equals(this.pendingInteractions, campaignInteractions.pendingInteractions) &&
Objects.equals(this.proceedingInteractions, campaignInteractions.proceedingInteractions) &&
Objects.equals(this.previewingInteractions, campaignInteractions.previewingInteractions) &&
Objects.equals(this.interactingInteractions, campaignInteractions.interactingInteractions) &&
Objects.equals(this.scheduledInteractions, campaignInteractions.scheduledInteractions);
}
@Override
public int hashCode() {
return Objects.hash(campaign, pendingInteractions, proceedingInteractions, previewingInteractions, interactingInteractions, scheduledInteractions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignInteractions {\n");
sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n");
sb.append(" pendingInteractions: ").append(toIndentedString(pendingInteractions)).append("\n");
sb.append(" proceedingInteractions: ").append(toIndentedString(proceedingInteractions)).append("\n");
sb.append(" previewingInteractions: ").append(toIndentedString(previewingInteractions)).append("\n");
sb.append(" interactingInteractions: ").append(toIndentedString(interactingInteractions)).append("\n");
sb.append(" scheduledInteractions: ").append(toIndentedString(scheduledInteractions)).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 ");
}
}