com.mypurecloud.sdk.model.ResponseSetNotificationReaction 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.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* ResponseSetNotificationReaction
*/
public class ResponseSetNotificationReaction implements Serializable {
private String data = null;
private String name = null;
/**
* Gets or Sets reactionType
*/
public enum ReactionTypeEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
HANGUP("HANGUP"),
TRANSFER("TRANSFER"),
TRANSFER_FLOW("TRANSFER_FLOW"),
PLAY_FILE("PLAY_FILE");
private String value;
ReactionTypeEnum(String value) {
this.value = value;
}
@JsonCreator
public static ReactionTypeEnum fromString(String key) {
if (key == null) return null;
for (ReactionTypeEnum value : ReactionTypeEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return ReactionTypeEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private ReactionTypeEnum reactionType = null;
private Object additionalProperties = null;
/**
**/
public ResponseSetNotificationReaction data(String data) {
this.data = data;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("data")
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
/**
**/
public ResponseSetNotificationReaction name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public ResponseSetNotificationReaction reactionType(ReactionTypeEnum reactionType) {
this.reactionType = reactionType;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("reactionType")
public ReactionTypeEnum getReactionType() {
return reactionType;
}
public void setReactionType(ReactionTypeEnum reactionType) {
this.reactionType = reactionType;
}
/**
**/
public ResponseSetNotificationReaction additionalProperties(Object additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("additionalProperties")
public Object getAdditionalProperties() {
return additionalProperties;
}
public void setAdditionalProperties(Object additionalProperties) {
this.additionalProperties = additionalProperties;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ResponseSetNotificationReaction responseSetNotificationReaction = (ResponseSetNotificationReaction) o;
return Objects.equals(this.data, responseSetNotificationReaction.data) &&
Objects.equals(this.name, responseSetNotificationReaction.name) &&
Objects.equals(this.reactionType, responseSetNotificationReaction.reactionType) &&
Objects.equals(this.additionalProperties, responseSetNotificationReaction.additionalProperties);
}
@Override
public int hashCode() {
return Objects.hash(data, name, reactionType, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ResponseSetNotificationReaction {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" reactionType: ").append(toIndentedString(reactionType)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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 ");
}
}