com.mypurecloud.sdk.model.CallConversationNotification 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.CallConversationNotificationParticipants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* CallConversationNotification
*/
public class CallConversationNotification implements Serializable {
private String id = null;
private String name = null;
private List participants = new ArrayList();
private List otherMediaUris = new ArrayList();
/**
* Gets or Sets recordingState
*/
public enum RecordingStateEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
NONE("none"),
ACTIVE("active"),
PAUSED("paused");
private String value;
RecordingStateEnum(String value) {
this.value = value;
}
@JsonCreator
public static RecordingStateEnum fromString(String key) {
if (key == null) return null;
for (RecordingStateEnum value : RecordingStateEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return RecordingStateEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private RecordingStateEnum recordingState = null;
/**
**/
public CallConversationNotification 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 CallConversationNotification 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 CallConversationNotification participants(List participants) {
this.participants = participants;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("participants")
public List getParticipants() {
return participants;
}
public void setParticipants(List participants) {
this.participants = participants;
}
/**
**/
public CallConversationNotification otherMediaUris(List otherMediaUris) {
this.otherMediaUris = otherMediaUris;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("otherMediaUris")
public List getOtherMediaUris() {
return otherMediaUris;
}
public void setOtherMediaUris(List otherMediaUris) {
this.otherMediaUris = otherMediaUris;
}
/**
**/
public CallConversationNotification recordingState(RecordingStateEnum recordingState) {
this.recordingState = recordingState;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("recordingState")
public RecordingStateEnum getRecordingState() {
return recordingState;
}
public void setRecordingState(RecordingStateEnum recordingState) {
this.recordingState = recordingState;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallConversationNotification callConversationNotification = (CallConversationNotification) o;
return Objects.equals(this.id, callConversationNotification.id) &&
Objects.equals(this.name, callConversationNotification.name) &&
Objects.equals(this.participants, callConversationNotification.participants) &&
Objects.equals(this.otherMediaUris, callConversationNotification.otherMediaUris) &&
Objects.equals(this.recordingState, callConversationNotification.recordingState);
}
@Override
public int hashCode() {
return Objects.hash(id, name, participants, otherMediaUris, recordingState);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CallConversationNotification {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" participants: ").append(toIndentedString(participants)).append("\n");
sb.append(" otherMediaUris: ").append(toIndentedString(otherMediaUris)).append("\n");
sb.append(" recordingState: ").append(toIndentedString(recordingState)).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 ");
}
}