All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmetadata.schema.email.EmailTemplatePlaceholder Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version

package org.openmetadata.schema.email;

import javax.annotation.processing.Generated;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * Email Template Placeholder
 * 

* Schema defining placeholders used in email templates. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "name", "description" }) @Generated("jsonschema2pojo") public class EmailTemplatePlaceholder { /** * Name of the placeholder. * (Required) * */ @JsonProperty("name") @JsonPropertyDescription("Name of the placeholder.") @NotNull private String name; /** * Description of what this placeholder represents. * (Required) * */ @JsonProperty("description") @JsonPropertyDescription("Description of what this placeholder represents.") @NotNull private String description; /** * Name of the placeholder. * (Required) * */ @JsonProperty("name") public String getName() { return name; } /** * Name of the placeholder. * (Required) * */ @JsonProperty("name") public void setName(String name) { this.name = name; } public EmailTemplatePlaceholder withName(String name) { this.name = name; return this; } /** * Description of what this placeholder represents. * (Required) * */ @JsonProperty("description") public String getDescription() { return description; } /** * Description of what this placeholder represents. * (Required) * */ @JsonProperty("description") public void setDescription(String description) { this.description = description; } public EmailTemplatePlaceholder withDescription(String description) { this.description = description; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(EmailTemplatePlaceholder.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("name"); sb.append('='); sb.append(((this.name == null)?"":this.name)); sb.append(','); sb.append("description"); sb.append('='); sb.append(((this.description == null)?"":this.description)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode())); result = ((result* 31)+((this.description == null)? 0 :this.description.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof EmailTemplatePlaceholder) == false) { return false; } EmailTemplatePlaceholder rhs = ((EmailTemplatePlaceholder) other); return (((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name)))&&((this.description == rhs.description)||((this.description!= null)&&this.description.equals(rhs.description)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy