shiver.me.timbers.aws.iotevents.DetectorModelDynamoDBv2 Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
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;
/**
* DetectorModelDynamoDBv2
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-dynamodbv2.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"TableName",
"Payload"
})
public class DetectorModelDynamoDBv2 implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-dynamodbv2.html#cfn-iotevents-detectormodel-dynamodbv2-tablename
*
*/
@JsonProperty("TableName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-dynamodbv2.html#cfn-iotevents-detectormodel-dynamodbv2-tablename")
private CharSequence tableName;
/**
* 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-dynamodbv2.html#cfn-iotevents-detectormodel-dynamodbv2-tablename
*
*/
@JsonIgnore
public CharSequence getTableName() {
return tableName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-detectormodel-dynamodbv2.html#cfn-iotevents-detectormodel-dynamodbv2-tablename
*
*/
@JsonIgnore
public void setTableName(CharSequence tableName) {
this.tableName = tableName;
}
public DetectorModelDynamoDBv2 withTableName(CharSequence tableName) {
this.tableName = tableName;
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 DetectorModelDynamoDBv2 withPayload(Property payload) {
this.payload = payload;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("tableName", tableName).append("payload", payload).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(payload).append(tableName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DetectorModelDynamoDBv2) == false) {
return false;
}
DetectorModelDynamoDBv2 rhs = ((DetectorModelDynamoDBv2) other);
return new EqualsBuilder().append(payload, rhs.payload).append(tableName, rhs.tableName).isEquals();
}
}