cloud.genesys.webmessaging.sdk.model.GetConfigurationRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-messaging-sdk Show documentation
Show all versions of web-messaging-sdk Show documentation
A customer-side development kit for creating custom Genesys Cloud Web Messaging experiences
The newest version!
package cloud.genesys.webmessaging.sdk.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.io.IOException;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* GetConfigurationRequest
*/
public class GetConfigurationRequest implements Serializable {
private RequestTypeGetConfiguration action = null;
private String token = null;
private String deploymentId = null;
/**
**/
public GetConfigurationRequest action(RequestTypeGetConfiguration action) {
this.action = action;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("action")
public RequestTypeGetConfiguration getAction() {
return action;
}
public void setAction(RequestTypeGetConfiguration action) {
this.action = action;
}
/**
**/
public GetConfigurationRequest token(String token) {
this.token = token;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("token")
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
/**
**/
public GetConfigurationRequest deploymentId(String deploymentId) {
this.deploymentId = deploymentId;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("deploymentId")
public String getDeploymentId() {
return deploymentId;
}
public void setDeploymentId(String deploymentId) {
this.deploymentId = deploymentId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetConfigurationRequest getConfigurationRequest = (GetConfigurationRequest) o;
return Objects.equals(this.action, getConfigurationRequest.action) &&
Objects.equals(this.token, getConfigurationRequest.token) &&
Objects.equals(this.deploymentId, getConfigurationRequest.deploymentId);
}
@Override
public int hashCode() {
return Objects.hash(action, token, deploymentId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetConfigurationRequest {\n");
sb.append(" action: ").append(toIndentedString(action)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append(" deploymentId: ").append(toIndentedString(deploymentId)).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 ");
}
}