shiver.me.timbers.aws.cloudfront.StreamingDistributionStreamingDistributionConfig Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.cloudfront;
import java.util.ArrayList;
import java.util.List;
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;
/**
* StreamingDistributionStreamingDistributionConfig
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Logging",
"Comment",
"PriceClass",
"S3Origin",
"Enabled",
"Aliases",
"TrustedSigners"
})
public class StreamingDistributionStreamingDistributionConfig implements Property
{
/**
* StreamingDistributionLogging
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html
*
*/
@JsonProperty("Logging")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html")
private Property logging;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-comment
*
*/
@JsonProperty("Comment")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-comment")
private CharSequence comment;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-priceclass
*
*/
@JsonProperty("PriceClass")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-priceclass")
private CharSequence priceClass;
/**
* StreamingDistributionS3Origin
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html
*
*/
@JsonProperty("S3Origin")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html")
private Property s3Origin;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-enabled
*
*/
@JsonProperty("Enabled")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-enabled")
private CharSequence enabled;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-aliases
*
*/
@JsonProperty("Aliases")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-aliases")
private List aliases = new ArrayList();
/**
* StreamingDistributionTrustedSigners
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html
*
*/
@JsonProperty("TrustedSigners")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html")
private Property trustedSigners;
/**
* StreamingDistributionLogging
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html
*
*/
@JsonIgnore
public Property getLogging() {
return logging;
}
/**
* StreamingDistributionLogging
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html
*
*/
@JsonIgnore
public void setLogging(Property logging) {
this.logging = logging;
}
public StreamingDistributionStreamingDistributionConfig withLogging(Property logging) {
this.logging = logging;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-comment
*
*/
@JsonIgnore
public CharSequence getComment() {
return comment;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-comment
*
*/
@JsonIgnore
public void setComment(CharSequence comment) {
this.comment = comment;
}
public StreamingDistributionStreamingDistributionConfig withComment(CharSequence comment) {
this.comment = comment;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-priceclass
*
*/
@JsonIgnore
public CharSequence getPriceClass() {
return priceClass;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-priceclass
*
*/
@JsonIgnore
public void setPriceClass(CharSequence priceClass) {
this.priceClass = priceClass;
}
public StreamingDistributionStreamingDistributionConfig withPriceClass(CharSequence priceClass) {
this.priceClass = priceClass;
return this;
}
/**
* StreamingDistributionS3Origin
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html
*
*/
@JsonIgnore
public Property getS3Origin() {
return s3Origin;
}
/**
* StreamingDistributionS3Origin
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html
*
*/
@JsonIgnore
public void setS3Origin(Property s3Origin) {
this.s3Origin = s3Origin;
}
public StreamingDistributionStreamingDistributionConfig withS3Origin(Property s3Origin) {
this.s3Origin = s3Origin;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-enabled
*
*/
@JsonIgnore
public CharSequence getEnabled() {
return enabled;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-enabled
*
*/
@JsonIgnore
public void setEnabled(CharSequence enabled) {
this.enabled = enabled;
}
public StreamingDistributionStreamingDistributionConfig withEnabled(CharSequence enabled) {
this.enabled = enabled;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-aliases
*
*/
@JsonIgnore
public List getAliases() {
return aliases;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-aliases
*
*/
@JsonIgnore
public void setAliases(List aliases) {
this.aliases = aliases;
}
public StreamingDistributionStreamingDistributionConfig withAliases(List aliases) {
this.aliases = aliases;
return this;
}
/**
* StreamingDistributionTrustedSigners
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html
*
*/
@JsonIgnore
public Property getTrustedSigners() {
return trustedSigners;
}
/**
* StreamingDistributionTrustedSigners
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html
*
*/
@JsonIgnore
public void setTrustedSigners(Property trustedSigners) {
this.trustedSigners = trustedSigners;
}
public StreamingDistributionStreamingDistributionConfig withTrustedSigners(Property trustedSigners) {
this.trustedSigners = trustedSigners;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("logging", logging).append("comment", comment).append("priceClass", priceClass).append("s3Origin", s3Origin).append("enabled", enabled).append("aliases", aliases).append("trustedSigners", trustedSigners).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(trustedSigners).append(aliases).append(priceClass).append(logging).append(comment).append(s3Origin).append(enabled).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof StreamingDistributionStreamingDistributionConfig) == false) {
return false;
}
StreamingDistributionStreamingDistributionConfig rhs = ((StreamingDistributionStreamingDistributionConfig) other);
return new EqualsBuilder().append(trustedSigners, rhs.trustedSigners).append(aliases, rhs.aliases).append(priceClass, rhs.priceClass).append(logging, rhs.logging).append(comment, rhs.comment).append(s3Origin, rhs.s3Origin).append(enabled, rhs.enabled).isEquals();
}
}