
shiver.me.timbers.aws.pinpoint.SmsTemplate Maven / Gradle / Ivy
package shiver.me.timbers.aws.pinpoint;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* SmsTemplate
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"TemplateName",
"TemplateDescription",
"DefaultSubstitutions",
"Body",
"Tags"
})
public class SmsTemplate {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatename
*
*/
@JsonProperty("TemplateName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatename")
private CharSequence templateName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatedescription
*
*/
@JsonProperty("TemplateDescription")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatedescription")
private CharSequence templateDescription;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-defaultsubstitutions
*
*/
@JsonProperty("DefaultSubstitutions")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-defaultsubstitutions")
private CharSequence defaultSubstitutions;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-body
*
*/
@JsonProperty("Body")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-body")
private CharSequence body;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-tags
*
*/
@JsonProperty("Tags")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-tags")
private Object tags;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatename
*
*/
@JsonIgnore
public CharSequence getTemplateName() {
return templateName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatename
*
*/
@JsonIgnore
public void setTemplateName(CharSequence templateName) {
this.templateName = templateName;
}
public SmsTemplate withTemplateName(CharSequence templateName) {
this.templateName = templateName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatedescription
*
*/
@JsonIgnore
public CharSequence getTemplateDescription() {
return templateDescription;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatedescription
*
*/
@JsonIgnore
public void setTemplateDescription(CharSequence templateDescription) {
this.templateDescription = templateDescription;
}
public SmsTemplate withTemplateDescription(CharSequence templateDescription) {
this.templateDescription = templateDescription;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-defaultsubstitutions
*
*/
@JsonIgnore
public CharSequence getDefaultSubstitutions() {
return defaultSubstitutions;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-defaultsubstitutions
*
*/
@JsonIgnore
public void setDefaultSubstitutions(CharSequence defaultSubstitutions) {
this.defaultSubstitutions = defaultSubstitutions;
}
public SmsTemplate withDefaultSubstitutions(CharSequence defaultSubstitutions) {
this.defaultSubstitutions = defaultSubstitutions;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-body
*
*/
@JsonIgnore
public CharSequence getBody() {
return body;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-body
*
*/
@JsonIgnore
public void setBody(CharSequence body) {
this.body = body;
}
public SmsTemplate withBody(CharSequence body) {
this.body = body;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-tags
*
*/
@JsonIgnore
public Object getTags() {
return tags;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-tags
*
*/
@JsonIgnore
public void setTags(Object tags) {
this.tags = tags;
}
public SmsTemplate withTags(Object tags) {
this.tags = tags;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("templateName", templateName).append("templateDescription", templateDescription).append("defaultSubstitutions", defaultSubstitutions).append("body", body).append("tags", tags).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(defaultSubstitutions).append(body).append(templateName).append(templateDescription).append(tags).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof SmsTemplate) == false) {
return false;
}
SmsTemplate rhs = ((SmsTemplate) other);
return new EqualsBuilder().append(defaultSubstitutions, rhs.defaultSubstitutions).append(body, rhs.body).append(templateName, rhs.templateName).append(templateDescription, rhs.templateDescription).append(tags, rhs.tags).isEquals();
}
}