shiver.me.timbers.aws.config.DeliveryChannel Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.config;
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;
/**
* DeliveryChannel
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ConfigSnapshotDeliveryProperties",
"Name",
"S3BucketName",
"S3KeyPrefix",
"SnsTopicARN"
})
public class DeliveryChannel {
/**
* DeliveryChannelConfigSnapshotDeliveryProperties
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html
*
*/
@JsonProperty("ConfigSnapshotDeliveryProperties")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html")
private Property configSnapshotDeliveryProperties;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-name
*
*/
@JsonProperty("Name")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-name")
private CharSequence name;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3bucketname
*
*/
@JsonProperty("S3BucketName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3bucketname")
private CharSequence s3BucketName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3keyprefix
*
*/
@JsonProperty("S3KeyPrefix")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3keyprefix")
private CharSequence s3KeyPrefix;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-snstopicarn
*
*/
@JsonProperty("SnsTopicARN")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-snstopicarn")
private CharSequence snsTopicARN;
/**
* DeliveryChannelConfigSnapshotDeliveryProperties
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html
*
*/
@JsonIgnore
public Property getConfigSnapshotDeliveryProperties() {
return configSnapshotDeliveryProperties;
}
/**
* DeliveryChannelConfigSnapshotDeliveryProperties
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html
*
*/
@JsonIgnore
public void setConfigSnapshotDeliveryProperties(Property configSnapshotDeliveryProperties) {
this.configSnapshotDeliveryProperties = configSnapshotDeliveryProperties;
}
public DeliveryChannel withConfigSnapshotDeliveryProperties(Property configSnapshotDeliveryProperties) {
this.configSnapshotDeliveryProperties = configSnapshotDeliveryProperties;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-name
*
*/
@JsonIgnore
public CharSequence getName() {
return name;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-name
*
*/
@JsonIgnore
public void setName(CharSequence name) {
this.name = name;
}
public DeliveryChannel withName(CharSequence name) {
this.name = name;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3bucketname
*
*/
@JsonIgnore
public CharSequence getS3BucketName() {
return s3BucketName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3bucketname
*
*/
@JsonIgnore
public void setS3BucketName(CharSequence s3BucketName) {
this.s3BucketName = s3BucketName;
}
public DeliveryChannel withS3BucketName(CharSequence s3BucketName) {
this.s3BucketName = s3BucketName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3keyprefix
*
*/
@JsonIgnore
public CharSequence getS3KeyPrefix() {
return s3KeyPrefix;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3keyprefix
*
*/
@JsonIgnore
public void setS3KeyPrefix(CharSequence s3KeyPrefix) {
this.s3KeyPrefix = s3KeyPrefix;
}
public DeliveryChannel withS3KeyPrefix(CharSequence s3KeyPrefix) {
this.s3KeyPrefix = s3KeyPrefix;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-snstopicarn
*
*/
@JsonIgnore
public CharSequence getSnsTopicARN() {
return snsTopicARN;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-snstopicarn
*
*/
@JsonIgnore
public void setSnsTopicARN(CharSequence snsTopicARN) {
this.snsTopicARN = snsTopicARN;
}
public DeliveryChannel withSnsTopicARN(CharSequence snsTopicARN) {
this.snsTopicARN = snsTopicARN;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("configSnapshotDeliveryProperties", configSnapshotDeliveryProperties).append("name", name).append("s3BucketName", s3BucketName).append("s3KeyPrefix", s3KeyPrefix).append("snsTopicARN", snsTopicARN).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(name).append(configSnapshotDeliveryProperties).append(s3KeyPrefix).append(snsTopicARN).append(s3BucketName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DeliveryChannel) == false) {
return false;
}
DeliveryChannel rhs = ((DeliveryChannel) other);
return new EqualsBuilder().append(name, rhs.name).append(configSnapshotDeliveryProperties, rhs.configSnapshotDeliveryProperties).append(s3KeyPrefix, rhs.s3KeyPrefix).append(snsTopicARN, rhs.snsTopicARN).append(s3BucketName, rhs.s3BucketName).isEquals();
}
}