shiver.me.timbers.aws.ses.ReceiptRuleStopAction Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.ses;
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;
/**
* ReceiptRuleStopAction
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Scope",
"TopicArn"
})
public class ReceiptRuleStopAction implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-scope
*
*/
@JsonProperty("Scope")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-scope")
private CharSequence scope;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-topicarn
*
*/
@JsonProperty("TopicArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-topicarn")
private CharSequence topicArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-scope
*
*/
@JsonIgnore
public CharSequence getScope() {
return scope;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-scope
*
*/
@JsonIgnore
public void setScope(CharSequence scope) {
this.scope = scope;
}
public ReceiptRuleStopAction withScope(CharSequence scope) {
this.scope = scope;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-topicarn
*
*/
@JsonIgnore
public CharSequence getTopicArn() {
return topicArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-receiptrule-stopaction.html#cfn-ses-receiptrule-stopaction-topicarn
*
*/
@JsonIgnore
public void setTopicArn(CharSequence topicArn) {
this.topicArn = topicArn;
}
public ReceiptRuleStopAction withTopicArn(CharSequence topicArn) {
this.topicArn = topicArn;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("scope", scope).append("topicArn", topicArn).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(topicArn).append(scope).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ReceiptRuleStopAction) == false) {
return false;
}
ReceiptRuleStopAction rhs = ((ReceiptRuleStopAction) other);
return new EqualsBuilder().append(topicArn, rhs.topicArn).append(scope, rhs.scope).isEquals();
}
}