com.mypurecloud.sdk.model.ConversationNotificationScreenshares 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 com.mypurecloud.sdk.model.ConversationNotificationAddress;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.io.Serializable;
/**
* ConversationNotificationScreenshares
*/
public class ConversationNotificationScreenshares implements Serializable {
/**
* Gets or Sets state
*/
public enum StateEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
ALERTING("ALERTING"),
DIALING("DIALING"),
CONTACTING("CONTACTING"),
OFFERING("OFFERING"),
CONNECTED("CONNECTED"),
DISCONNECTED("DISCONNECTED"),
TERMINATED("TERMINATED"),
NONE("NONE");
private String value;
StateEnum(String value) {
this.value = value;
}
@JsonCreator
public static StateEnum fromString(String key) {
if (key == null) return null;
for (StateEnum value : StateEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return StateEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private StateEnum state = null;
private ConversationNotificationAddress self = null;
private String id = null;
private String context = null;
private Boolean sharing = null;
private String provider = null;
/**
* Gets or Sets disconnectType
*/
public enum DisconnectTypeEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
ENDPOINT("ENDPOINT"),
CLIENT("CLIENT"),
SYSTEM("SYSTEM"),
TIMEOUT("TIMEOUT"),
TRANSFER("TRANSFER"),
TRANSFER_CONFERENCE("TRANSFER_CONFERENCE"),
TRANSFER_CONSULT("TRANSFER_CONSULT"),
TRANSFER_FORWARD("TRANSFER_FORWARD"),
TRANSFER_NOANSWER("TRANSFER_NOANSWER"),
TRANSFER_NOTAVAILABLE("TRANSFER_NOTAVAILABLE"),
TRANSPORT_FAILURE("TRANSPORT_FAILURE"),
ERROR("ERROR"),
PEER("PEER"),
OTHER("OTHER"),
SPAM("SPAM"),
UNCALLABLE("UNCALLABLE");
private String value;
DisconnectTypeEnum(String value) {
this.value = value;
}
@JsonCreator
public static DisconnectTypeEnum fromString(String key) {
if (key == null) return null;
for (DisconnectTypeEnum value : DisconnectTypeEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return DisconnectTypeEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private DisconnectTypeEnum disconnectType = null;
private Date connectedTime = null;
private Date disconnectedTime = null;
private Object additionalProperties = null;
/**
**/
public ConversationNotificationScreenshares state(StateEnum state) {
this.state = state;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("state")
public StateEnum getState() {
return state;
}
public void setState(StateEnum state) {
this.state = state;
}
/**
**/
public ConversationNotificationScreenshares self(ConversationNotificationAddress self) {
this.self = self;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("self")
public ConversationNotificationAddress getSelf() {
return self;
}
public void setSelf(ConversationNotificationAddress self) {
this.self = self;
}
/**
**/
public ConversationNotificationScreenshares id(String id) {
this.id = id;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
**/
public ConversationNotificationScreenshares context(String context) {
this.context = context;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("context")
public String getContext() {
return context;
}
public void setContext(String context) {
this.context = context;
}
/**
**/
public ConversationNotificationScreenshares sharing(Boolean sharing) {
this.sharing = sharing;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("sharing")
public Boolean getSharing() {
return sharing;
}
public void setSharing(Boolean sharing) {
this.sharing = sharing;
}
/**
**/
public ConversationNotificationScreenshares provider(String provider) {
this.provider = provider;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("provider")
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
/**
**/
public ConversationNotificationScreenshares disconnectType(DisconnectTypeEnum disconnectType) {
this.disconnectType = disconnectType;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("disconnectType")
public DisconnectTypeEnum getDisconnectType() {
return disconnectType;
}
public void setDisconnectType(DisconnectTypeEnum disconnectType) {
this.disconnectType = disconnectType;
}
/**
**/
public ConversationNotificationScreenshares connectedTime(Date connectedTime) {
this.connectedTime = connectedTime;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("connectedTime")
public Date getConnectedTime() {
return connectedTime;
}
public void setConnectedTime(Date connectedTime) {
this.connectedTime = connectedTime;
}
/**
**/
public ConversationNotificationScreenshares disconnectedTime(Date disconnectedTime) {
this.disconnectedTime = disconnectedTime;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("disconnectedTime")
public Date getDisconnectedTime() {
return disconnectedTime;
}
public void setDisconnectedTime(Date disconnectedTime) {
this.disconnectedTime = disconnectedTime;
}
/**
**/
public ConversationNotificationScreenshares 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;
}
ConversationNotificationScreenshares conversationNotificationScreenshares = (ConversationNotificationScreenshares) o;
return Objects.equals(this.state, conversationNotificationScreenshares.state) &&
Objects.equals(this.self, conversationNotificationScreenshares.self) &&
Objects.equals(this.id, conversationNotificationScreenshares.id) &&
Objects.equals(this.context, conversationNotificationScreenshares.context) &&
Objects.equals(this.sharing, conversationNotificationScreenshares.sharing) &&
Objects.equals(this.provider, conversationNotificationScreenshares.provider) &&
Objects.equals(this.disconnectType, conversationNotificationScreenshares.disconnectType) &&
Objects.equals(this.connectedTime, conversationNotificationScreenshares.connectedTime) &&
Objects.equals(this.disconnectedTime, conversationNotificationScreenshares.disconnectedTime) &&
Objects.equals(this.additionalProperties, conversationNotificationScreenshares.additionalProperties);
}
@Override
public int hashCode() {
return Objects.hash(state, self, id, context, sharing, provider, disconnectType, connectedTime, disconnectedTime, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConversationNotificationScreenshares {\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" self: ").append(toIndentedString(self)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" context: ").append(toIndentedString(context)).append("\n");
sb.append(" sharing: ").append(toIndentedString(sharing)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
sb.append(" disconnectType: ").append(toIndentedString(disconnectType)).append("\n");
sb.append(" connectedTime: ").append(toIndentedString(connectedTime)).append("\n");
sb.append(" disconnectedTime: ").append(toIndentedString(disconnectedTime)).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 ");
}
}