cloud.genesys.webmessaging.sdk.model.NotificationTemplateParameter Maven / Gradle / Ivy
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;
/**
* Template parameters for placeholders in template.
*/
@ApiModel(description = "Template parameters for placeholders in template.")
public class NotificationTemplateParameter implements Serializable {
private String name = null;
private String text = null;
/**
* Parameter name.
**/
public NotificationTemplateParameter name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "Parameter name.")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Parameter text value.
**/
public NotificationTemplateParameter text(String text) {
this.text = text;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "Parameter text value.")
@JsonProperty("text")
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NotificationTemplateParameter notificationTemplateParameter = (NotificationTemplateParameter) o;
return Objects.equals(this.name, notificationTemplateParameter.name) &&
Objects.equals(this.text, notificationTemplateParameter.text);
}
@Override
public int hashCode() {
return Objects.hash(name, text);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NotificationTemplateParameter {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).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 ");
}
}