com.mypurecloud.sdk.model.CampaignStats 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.ConnectRate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* CampaignStats
*/
public class CampaignStats implements Serializable {
private ConnectRate contactRate = null;
private Integer idleAgents = null;
private Double effectiveIdleAgents = null;
private Double adjustedCallsPerAgent = null;
private Integer outstandingCalls = null;
private Integer scheduledCalls = null;
/**
* Information regarding the campaign's connect rate
**/
public CampaignStats contactRate(ConnectRate contactRate) {
this.contactRate = contactRate;
return this;
}
@ApiModelProperty(example = "null", value = "Information regarding the campaign's connect rate")
@JsonProperty("contactRate")
public ConnectRate getContactRate() {
return contactRate;
}
public void setContactRate(ConnectRate contactRate) {
this.contactRate = contactRate;
}
@ApiModelProperty(example = "null", value = "Number of available agents not currently being utilized")
@JsonProperty("idleAgents")
public Integer getIdleAgents() {
return idleAgents;
}
@ApiModelProperty(example = "null", value = "Number of effective available agents not currently being utilized")
@JsonProperty("effectiveIdleAgents")
public Double getEffectiveIdleAgents() {
return effectiveIdleAgents;
}
@ApiModelProperty(example = "null", value = "Calls per agent adjusted by pace")
@JsonProperty("adjustedCallsPerAgent")
public Double getAdjustedCallsPerAgent() {
return adjustedCallsPerAgent;
}
@ApiModelProperty(example = "null", value = "Number of campaign calls currently ongoing")
@JsonProperty("outstandingCalls")
public Integer getOutstandingCalls() {
return outstandingCalls;
}
@ApiModelProperty(example = "null", value = "Number of campaign calls currently scheduled")
@JsonProperty("scheduledCalls")
public Integer getScheduledCalls() {
return scheduledCalls;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignStats campaignStats = (CampaignStats) o;
return Objects.equals(this.contactRate, campaignStats.contactRate) &&
Objects.equals(this.idleAgents, campaignStats.idleAgents) &&
Objects.equals(this.effectiveIdleAgents, campaignStats.effectiveIdleAgents) &&
Objects.equals(this.adjustedCallsPerAgent, campaignStats.adjustedCallsPerAgent) &&
Objects.equals(this.outstandingCalls, campaignStats.outstandingCalls) &&
Objects.equals(this.scheduledCalls, campaignStats.scheduledCalls);
}
@Override
public int hashCode() {
return Objects.hash(contactRate, idleAgents, effectiveIdleAgents, adjustedCallsPerAgent, outstandingCalls, scheduledCalls);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignStats {\n");
sb.append(" contactRate: ").append(toIndentedString(contactRate)).append("\n");
sb.append(" idleAgents: ").append(toIndentedString(idleAgents)).append("\n");
sb.append(" effectiveIdleAgents: ").append(toIndentedString(effectiveIdleAgents)).append("\n");
sb.append(" adjustedCallsPerAgent: ").append(toIndentedString(adjustedCallsPerAgent)).append("\n");
sb.append(" outstandingCalls: ").append(toIndentedString(outstandingCalls)).append("\n");
sb.append(" scheduledCalls: ").append(toIndentedString(scheduledCalls)).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 ");
}
}