com.mypurecloud.sdk.model.EmailConversationNotification 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.EmailConversationNotificationParticipants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* EmailConversationNotification
*/
public class EmailConversationNotification implements Serializable {
private String id = null;
private String name = null;
private List participants = new ArrayList();
private List otherMediaUris = new ArrayList();
/**
**/
public EmailConversationNotification 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 EmailConversationNotification 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 EmailConversationNotification 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 EmailConversationNotification 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmailConversationNotification emailConversationNotification = (EmailConversationNotification) o;
return Objects.equals(this.id, emailConversationNotification.id) &&
Objects.equals(this.name, emailConversationNotification.name) &&
Objects.equals(this.participants, emailConversationNotification.participants) &&
Objects.equals(this.otherMediaUris, emailConversationNotification.otherMediaUris);
}
@Override
public int hashCode() {
return Objects.hash(id, name, participants, otherMediaUris);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmailConversationNotification {\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("}");
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 ");
}
}