shiver.me.timbers.aws.pinpoint.CampaignCampaignEmailMessage 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;
import shiver.me.timbers.aws.Property;
/**
* CampaignCampaignEmailMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"FromAddress",
"HtmlBody",
"Title",
"Body"
})
public class CampaignCampaignEmailMessage implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-fromaddress
*
*/
@JsonProperty("FromAddress")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-fromaddress")
private CharSequence fromAddress;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-htmlbody
*
*/
@JsonProperty("HtmlBody")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-htmlbody")
private CharSequence htmlBody;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-title
*
*/
@JsonProperty("Title")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-title")
private CharSequence title;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-body
*
*/
@JsonProperty("Body")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-body")
private CharSequence body;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-fromaddress
*
*/
@JsonIgnore
public CharSequence getFromAddress() {
return fromAddress;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-fromaddress
*
*/
@JsonIgnore
public void setFromAddress(CharSequence fromAddress) {
this.fromAddress = fromAddress;
}
public CampaignCampaignEmailMessage withFromAddress(CharSequence fromAddress) {
this.fromAddress = fromAddress;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-htmlbody
*
*/
@JsonIgnore
public CharSequence getHtmlBody() {
return htmlBody;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-htmlbody
*
*/
@JsonIgnore
public void setHtmlBody(CharSequence htmlBody) {
this.htmlBody = htmlBody;
}
public CampaignCampaignEmailMessage withHtmlBody(CharSequence htmlBody) {
this.htmlBody = htmlBody;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-title
*
*/
@JsonIgnore
public CharSequence getTitle() {
return title;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-title
*
*/
@JsonIgnore
public void setTitle(CharSequence title) {
this.title = title;
}
public CampaignCampaignEmailMessage withTitle(CharSequence title) {
this.title = title;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-body
*
*/
@JsonIgnore
public CharSequence getBody() {
return body;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html#cfn-pinpoint-campaign-campaignemailmessage-body
*
*/
@JsonIgnore
public void setBody(CharSequence body) {
this.body = body;
}
public CampaignCampaignEmailMessage withBody(CharSequence body) {
this.body = body;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("fromAddress", fromAddress).append("htmlBody", htmlBody).append("title", title).append("body", body).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(fromAddress).append(htmlBody).append(title).append(body).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof CampaignCampaignEmailMessage) == false) {
return false;
}
CampaignCampaignEmailMessage rhs = ((CampaignCampaignEmailMessage) other);
return new EqualsBuilder().append(fromAddress, rhs.fromAddress).append(htmlBody, rhs.htmlBody).append(title, rhs.title).append(body, rhs.body).isEquals();
}
}