shiver.me.timbers.aws.pinpoint.CampaignMessageConfiguration Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
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;
/**
* CampaignMessageConfiguration
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-messageconfiguration.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"APNSMessage",
"BaiduMessage",
"DefaultMessage",
"EmailMessage",
"GCMMessage",
"SMSMessage",
"ADMMessage"
})
public class CampaignMessageConfiguration implements Property
{
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonProperty("APNSMessage")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html")
private Property aPNSMessage;
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonProperty("BaiduMessage")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html")
private Property baiduMessage;
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonProperty("DefaultMessage")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html")
private Property defaultMessage;
/**
* CampaignCampaignEmailMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html
*
*/
@JsonProperty("EmailMessage")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html")
private Property emailMessage;
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonProperty("GCMMessage")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html")
private Property gCMMessage;
/**
* CampaignCampaignSmsMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignsmsmessage.html
*
*/
@JsonProperty("SMSMessage")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignsmsmessage.html")
private Property sMSMessage;
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonProperty("ADMMessage")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html")
private Property aDMMessage;
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public Property getAPNSMessage() {
return aPNSMessage;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public void setAPNSMessage(Property aPNSMessage) {
this.aPNSMessage = aPNSMessage;
}
public CampaignMessageConfiguration withAPNSMessage(Property aPNSMessage) {
this.aPNSMessage = aPNSMessage;
return this;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public Property getBaiduMessage() {
return baiduMessage;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public void setBaiduMessage(Property baiduMessage) {
this.baiduMessage = baiduMessage;
}
public CampaignMessageConfiguration withBaiduMessage(Property baiduMessage) {
this.baiduMessage = baiduMessage;
return this;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public Property getDefaultMessage() {
return defaultMessage;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public void setDefaultMessage(Property defaultMessage) {
this.defaultMessage = defaultMessage;
}
public CampaignMessageConfiguration withDefaultMessage(Property defaultMessage) {
this.defaultMessage = defaultMessage;
return this;
}
/**
* CampaignCampaignEmailMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html
*
*/
@JsonIgnore
public Property getEmailMessage() {
return emailMessage;
}
/**
* CampaignCampaignEmailMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignemailmessage.html
*
*/
@JsonIgnore
public void setEmailMessage(Property emailMessage) {
this.emailMessage = emailMessage;
}
public CampaignMessageConfiguration withEmailMessage(Property emailMessage) {
this.emailMessage = emailMessage;
return this;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public Property getGCMMessage() {
return gCMMessage;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public void setGCMMessage(Property gCMMessage) {
this.gCMMessage = gCMMessage;
}
public CampaignMessageConfiguration withGCMMessage(Property gCMMessage) {
this.gCMMessage = gCMMessage;
return this;
}
/**
* CampaignCampaignSmsMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignsmsmessage.html
*
*/
@JsonIgnore
public Property getSMSMessage() {
return sMSMessage;
}
/**
* CampaignCampaignSmsMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-campaignsmsmessage.html
*
*/
@JsonIgnore
public void setSMSMessage(Property sMSMessage) {
this.sMSMessage = sMSMessage;
}
public CampaignMessageConfiguration withSMSMessage(Property sMSMessage) {
this.sMSMessage = sMSMessage;
return this;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public Property getADMMessage() {
return aDMMessage;
}
/**
* CampaignMessage
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-campaign-message.html
*
*/
@JsonIgnore
public void setADMMessage(Property aDMMessage) {
this.aDMMessage = aDMMessage;
}
public CampaignMessageConfiguration withADMMessage(Property aDMMessage) {
this.aDMMessage = aDMMessage;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("aPNSMessage", aPNSMessage).append("baiduMessage", baiduMessage).append("defaultMessage", defaultMessage).append("emailMessage", emailMessage).append("gCMMessage", gCMMessage).append("sMSMessage", sMSMessage).append("aDMMessage", aDMMessage).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(aDMMessage).append(emailMessage).append(gCMMessage).append(sMSMessage).append(aPNSMessage).append(defaultMessage).append(baiduMessage).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof CampaignMessageConfiguration) == false) {
return false;
}
CampaignMessageConfiguration rhs = ((CampaignMessageConfiguration) other);
return new EqualsBuilder().append(aDMMessage, rhs.aDMMessage).append(emailMessage, rhs.emailMessage).append(gCMMessage, rhs.gCMMessage).append(sMSMessage, rhs.sMSMessage).append(aPNSMessage, rhs.aPNSMessage).append(defaultMessage, rhs.defaultMessage).append(baiduMessage, rhs.baiduMessage).isEquals();
}
}