com.genesys.internal.workspace.model.MediachatinteractionsidupdatenicknameData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workspace Show documentation
Show all versions of workspace Show documentation
A Java library to interface to Genesys Workspace public API
/*
* Workspace API
* Agent API
*
* OpenAPI spec version: v9.0.000.20.2204
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.genesys.internal.workspace.model;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* MediachatinteractionsidupdatenicknameData
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T13:01:20.719Z")
public class MediachatinteractionsidupdatenicknameData {
@SerializedName("nickname")
private String nickname = null;
/**
* Defines which participants in the chat can see the message.
*/
@JsonAdapter(VisibilityEnum.Adapter.class)
public enum VisibilityEnum {
ALL("All"),
AGENT("Agent"),
SUPERVISOR("Supervisor");
private String value;
VisibilityEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static VisibilityEnum fromValue(String text) {
for (VisibilityEnum b : VisibilityEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final VisibilityEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public VisibilityEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return VisibilityEnum.fromValue(String.valueOf(value));
}
}
}
@SerializedName("visibility")
private VisibilityEnum visibility = null;
public MediachatinteractionsidupdatenicknameData nickname(String nickname) {
this.nickname = nickname;
return this;
}
/**
* The new nickname.
* @return nickname
**/
@ApiModelProperty(required = true, value = "The new nickname.")
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public MediachatinteractionsidupdatenicknameData visibility(VisibilityEnum visibility) {
this.visibility = visibility;
return this;
}
/**
* Defines which participants in the chat can see the message.
* @return visibility
**/
@ApiModelProperty(value = "Defines which participants in the chat can see the message.")
public VisibilityEnum getVisibility() {
return visibility;
}
public void setVisibility(VisibilityEnum visibility) {
this.visibility = visibility;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MediachatinteractionsidupdatenicknameData mediachatinteractionsidupdatenicknameData = (MediachatinteractionsidupdatenicknameData) o;
return Objects.equals(this.nickname, mediachatinteractionsidupdatenicknameData.nickname) &&
Objects.equals(this.visibility, mediachatinteractionsidupdatenicknameData.visibility);
}
@Override
public int hashCode() {
return Objects.hash(nickname, visibility);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MediachatinteractionsidupdatenicknameData {\n");
sb.append(" nickname: ").append(toIndentedString(nickname)).append("\n");
sb.append(" visibility: ").append(toIndentedString(visibility)).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 - 2025 Weber Informatics LLC | Privacy Policy