
shiver.me.timbers.aws.iotevents.DetectorModelSns Maven / Gradle / Ivy
package shiver.me.timbers.aws.iotevents;
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;
/**
* DetectorModelSns
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-sns.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"TargetArn",
"Payload"
})
public class DetectorModelSns implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-sns.html#cfn-iotevents-detectormodel-sns-targetarn
*
*/
@JsonProperty("TargetArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-sns.html#cfn-iotevents-detectormodel-sns-targetarn")
private CharSequence targetArn;
/**
* DetectorModelPayload
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-payload.html
*
*/
@JsonProperty("Payload")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-payload.html")
private Property payload;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-sns.html#cfn-iotevents-detectormodel-sns-targetarn
*
*/
@JsonIgnore
public CharSequence getTargetArn() {
return targetArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-sns.html#cfn-iotevents-detectormodel-sns-targetarn
*
*/
@JsonIgnore
public void setTargetArn(CharSequence targetArn) {
this.targetArn = targetArn;
}
public DetectorModelSns withTargetArn(CharSequence targetArn) {
this.targetArn = targetArn;
return this;
}
/**
* DetectorModelPayload
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-payload.html
*
*/
@JsonIgnore
public Property getPayload() {
return payload;
}
/**
* DetectorModelPayload
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-payload.html
*
*/
@JsonIgnore
public void setPayload(Property payload) {
this.payload = payload;
}
public DetectorModelSns withPayload(Property payload) {
this.payload = payload;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("targetArn", targetArn).append("payload", payload).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(payload).append(targetArn).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DetectorModelSns) == false) {
return false;
}
DetectorModelSns rhs = ((DetectorModelSns) other);
return new EqualsBuilder().append(payload, rhs.payload).append(targetArn, rhs.targetArn).isEquals();
}
}