com.mypurecloud.sdk.model.ChatMessageUser 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.UserImage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
/**
* ChatMessageUser
*/
public class ChatMessageUser implements Serializable {
private String id = null;
private String name = null;
private String displayName = null;
private String username = null;
private List images = new ArrayList();
/**
**/
public ChatMessageUser 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 ChatMessageUser 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 ChatMessageUser displayName(String displayName) {
this.displayName = displayName;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("displayName")
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
**/
public ChatMessageUser username(String username) {
this.username = username;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("username")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
/**
**/
public ChatMessageUser images(List images) {
this.images = images;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("images")
public List getImages() {
return images;
}
public void setImages(List images) {
this.images = images;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ChatMessageUser chatMessageUser = (ChatMessageUser) o;
return Objects.equals(this.id, chatMessageUser.id) &&
Objects.equals(this.name, chatMessageUser.name) &&
Objects.equals(this.displayName, chatMessageUser.displayName) &&
Objects.equals(this.username, chatMessageUser.username) &&
Objects.equals(this.images, chatMessageUser.images);
}
@Override
public int hashCode() {
return Objects.hash(id, name, displayName, username, images);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ChatMessageUser {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" images: ").append(toIndentedString(images)).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 ");
}
}