com.genesys._internal.workspace.model.VoicenotreadyData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workspace Show documentation
Show all versions of workspace Show documentation
A Java library to interface to Genesys Workspace public API
/*
* Workspace API
* Application API used by Workspace Web Edition
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.genesys._internal.workspace.model;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import com.genesys.workspace.models.KeyValueCollection;
/**
* VoicenotreadyData
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-08-22T16:18:36.606Z")
public class VoicenotreadyData {
/**
* the agent workmode.
*/
@JsonAdapter(AgentWorkModeEnum.Adapter.class)
public enum AgentWorkModeEnum {
AFTERCALLWORK("AfterCallWork"),
AUXWORK("AuxWork"),
LEGALGUARD("LegalGuard"),
NOCALLDISCONNECT("NoCallDisconnect"),
WALKAWAY("WalkAway");
private String value;
AgentWorkModeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static AgentWorkModeEnum fromValue(String text) {
for (AgentWorkModeEnum b : AgentWorkModeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final AgentWorkModeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public AgentWorkModeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return AgentWorkModeEnum.fromValue(String.valueOf(value));
}
}
}
@SerializedName("agentWorkMode")
private AgentWorkModeEnum agentWorkMode = null;
@SerializedName("reasonCode")
private String reasonCode = null;
@SerializedName("extensions")
private KeyValueCollection extensions = null;
@SerializedName("reasons")
private KeyValueCollection reasons = null;
public VoicenotreadyData agentWorkMode(AgentWorkModeEnum agentWorkMode) {
this.agentWorkMode = agentWorkMode;
return this;
}
/**
* the agent workmode.
* @return agentWorkMode
**/
@ApiModelProperty(value = "the agent workmode.")
public AgentWorkModeEnum getAgentWorkMode() {
return agentWorkMode;
}
public void setAgentWorkMode(AgentWorkModeEnum agentWorkMode) {
this.agentWorkMode = agentWorkMode;
}
public VoicenotreadyData reasonCode(String reasonCode) {
this.reasonCode = reasonCode;
return this;
}
/**
* the reason code
* @return reasonCode
**/
@ApiModelProperty(value = "the reason code")
public String getReasonCode() {
return reasonCode;
}
public void setReasonCode(String reasonCode) {
this.reasonCode = reasonCode;
}
public VoicenotreadyData extensions(KeyValueCollection extensions) {
this.extensions = extensions;
return this;
}
/**
* A key/value pairs list of additional data.
* @return extensions
**/
@ApiModelProperty(value = "A key/value pairs list of additional data.")
public KeyValueCollection getExtensions() {
return extensions;
}
public void setExtensions(KeyValueCollection extensions) {
this.extensions = extensions;
}
public VoicenotreadyData reasons(KeyValueCollection reasons) {
this.reasons = reasons;
return this;
}
/**
* A key/value pairs list of a data structure that provides additional information associated with this action.
* @return reasons
**/
@ApiModelProperty(value = "A key/value pairs list of a data structure that provides additional information associated with this action.")
public KeyValueCollection getReasons() {
return reasons;
}
public void setReasons(KeyValueCollection reasons) {
this.reasons = reasons;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VoicenotreadyData voicenotreadyData = (VoicenotreadyData) o;
return Objects.equals(this.agentWorkMode, voicenotreadyData.agentWorkMode) &&
Objects.equals(this.reasonCode, voicenotreadyData.reasonCode) &&
Objects.equals(this.extensions, voicenotreadyData.extensions) &&
Objects.equals(this.reasons, voicenotreadyData.reasons);
}
@Override
public int hashCode() {
return Objects.hash(agentWorkMode, reasonCode, extensions, reasons);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VoicenotreadyData {\n");
sb.append(" agentWorkMode: ").append(toIndentedString(agentWorkMode)).append("\n");
sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n");
sb.append(" extensions: ").append(toIndentedString(extensions)).append("\n");
sb.append(" reasons: ").append(toIndentedString(reasons)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy