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

shiver.me.timbers.aws.iot.TopicRuleSnsAction Maven / Gradle / Ivy


package shiver.me.timbers.aws.iot;

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;


/**
 * TopicRuleSnsAction
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "MessageFormat", "RoleArn", "TargetArn" }) public class TopicRuleSnsAction implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-messageformat * */ @JsonProperty("MessageFormat") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-messageformat") private CharSequence messageFormat; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-rolearn * */ @JsonProperty("RoleArn") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-rolearn") private CharSequence roleArn; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-targetarn * */ @JsonProperty("TargetArn") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-targetarn") private CharSequence targetArn; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-messageformat * */ @JsonIgnore public CharSequence getMessageFormat() { return messageFormat; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-messageformat * */ @JsonIgnore public void setMessageFormat(CharSequence messageFormat) { this.messageFormat = messageFormat; } public TopicRuleSnsAction withMessageFormat(CharSequence messageFormat) { this.messageFormat = messageFormat; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-rolearn * */ @JsonIgnore public CharSequence getRoleArn() { return roleArn; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-rolearn * */ @JsonIgnore public void setRoleArn(CharSequence roleArn) { this.roleArn = roleArn; } public TopicRuleSnsAction withRoleArn(CharSequence roleArn) { this.roleArn = roleArn; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-targetarn * */ @JsonIgnore public CharSequence getTargetArn() { return targetArn; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-snsaction.html#cfn-iot-topicrule-snsaction-targetarn * */ @JsonIgnore public void setTargetArn(CharSequence targetArn) { this.targetArn = targetArn; } public TopicRuleSnsAction withTargetArn(CharSequence targetArn) { this.targetArn = targetArn; return this; } @Override public String toString() { return new ToStringBuilder(this).append("messageFormat", messageFormat).append("roleArn", roleArn).append("targetArn", targetArn).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(messageFormat).append(roleArn).append(targetArn).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof TopicRuleSnsAction) == false) { return false; } TopicRuleSnsAction rhs = ((TopicRuleSnsAction) other); return new EqualsBuilder().append(messageFormat, rhs.messageFormat).append(roleArn, rhs.roleArn).append(targetArn, rhs.targetArn).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy