com.mypurecloud.sdk.v2.guest.model.WebChatConversation Maven / Gradle / Ivy
package com.mypurecloud.sdk.v2.guest.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import java.util.Objects;
import java.util.ArrayList;
import java.io.IOException;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.v2.guest.model.WebChatMemberInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* WebChatConversation
*/
public class WebChatConversation implements Serializable {
private String id = null;
private String name = null;
private WebChatMemberInfo member = null;
private String selfUri = null;
@ApiModelProperty(example = "null", value = "The globally unique identifier for the object.")
@JsonProperty("id")
public String getId() {
return id;
}
/**
**/
public WebChatConversation 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;
}
/**
* Chat Member
**/
public WebChatConversation member(WebChatMemberInfo member) {
this.member = member;
return this;
}
@ApiModelProperty(example = "null", value = "Chat Member")
@JsonProperty("member")
public WebChatMemberInfo getMember() {
return member;
}
public void setMember(WebChatMemberInfo member) {
this.member = member;
}
@ApiModelProperty(example = "null", value = "The URI for this object")
@JsonProperty("selfUri")
public String getSelfUri() {
return selfUri;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WebChatConversation webChatConversation = (WebChatConversation) o;
return Objects.equals(this.id, webChatConversation.id) &&
Objects.equals(this.name, webChatConversation.name) &&
Objects.equals(this.member, webChatConversation.member) &&
Objects.equals(this.selfUri, webChatConversation.selfUri);
}
@Override
public int hashCode() {
return Objects.hash(id, name, member, selfUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WebChatConversation {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" member: ").append(toIndentedString(member)).append("\n");
sb.append(" selfUri: ").append(toIndentedString(selfUri)).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 - 2024 Weber Informatics LLC | Privacy Policy