shiver.me.timbers.aws.cloudfront.DistributionDistributionConfig Maven / Gradle / Ivy
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;
/**
* DistributionDistributionConfig
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Logging",
"Comment",
"DefaultRootObject",
"Origins",
"ViewerCertificate",
"PriceClass",
"DefaultCacheBehavior",
"CustomErrorResponses",
"Enabled",
"Aliases",
"IPV6Enabled",
"WebACLId",
"HttpVersion",
"Restrictions",
"CacheBehaviors"
})
public class DistributionDistributionConfig implements Property
{
/**
* DistributionLogging
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html
*
*/
@JsonProperty("Logging")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html")
private Property logging;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-comment
*
*/
@JsonProperty("Comment")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-comment")
private CharSequence comment;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultrootobject
*
*/
@JsonProperty("DefaultRootObject")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultrootobject")
private CharSequence defaultRootObject;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins
*
*/
@JsonProperty("Origins")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins")
private List> origins = new ArrayList>();
/**
* DistributionViewerCertificate
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html
*
*/
@JsonProperty("ViewerCertificate")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html")
private Property viewerCertificate;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass
*
*/
@JsonProperty("PriceClass")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass")
private CharSequence priceClass;
/**
* DistributionDefaultCacheBehavior
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html
*
*/
@JsonProperty("DefaultCacheBehavior")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html")
private Property defaultCacheBehavior;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customerrorresponses
*
*/
@JsonProperty("CustomErrorResponses")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customerrorresponses")
private List> customErrorResponses = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-enabled
*
*/
@JsonProperty("Enabled")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-enabled")
private CharSequence enabled;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases
*
*/
@JsonProperty("Aliases")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases")
private List aliases = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-ipv6enabled
*
*/
@JsonProperty("IPV6Enabled")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-ipv6enabled")
private CharSequence iPV6Enabled;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid
*
*/
@JsonProperty("WebACLId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid")
private CharSequence webACLId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-httpversion
*
*/
@JsonProperty("HttpVersion")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-httpversion")
private CharSequence httpVersion;
/**
* DistributionRestrictions
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html
*
*/
@JsonProperty("Restrictions")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html")
private Property restrictions;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cachebehaviors
*
*/
@JsonProperty("CacheBehaviors")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cachebehaviors")
private List> cacheBehaviors = new ArrayList>();
/**
* DistributionLogging
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html
*
*/
@JsonIgnore
public Property getLogging() {
return logging;
}
/**
* DistributionLogging
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html
*
*/
@JsonIgnore
public void setLogging(Property logging) {
this.logging = logging;
}
public DistributionDistributionConfig withLogging(Property logging) {
this.logging = logging;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-comment
*
*/
@JsonIgnore
public CharSequence getComment() {
return comment;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-comment
*
*/
@JsonIgnore
public void setComment(CharSequence comment) {
this.comment = comment;
}
public DistributionDistributionConfig withComment(CharSequence comment) {
this.comment = comment;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultrootobject
*
*/
@JsonIgnore
public CharSequence getDefaultRootObject() {
return defaultRootObject;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultrootobject
*
*/
@JsonIgnore
public void setDefaultRootObject(CharSequence defaultRootObject) {
this.defaultRootObject = defaultRootObject;
}
public DistributionDistributionConfig withDefaultRootObject(CharSequence defaultRootObject) {
this.defaultRootObject = defaultRootObject;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins
*
*/
@JsonIgnore
public List> getOrigins() {
return origins;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins
*
*/
@JsonIgnore
public void setOrigins(List> origins) {
this.origins = origins;
}
public DistributionDistributionConfig withOrigins(List> origins) {
this.origins = origins;
return this;
}
/**
* DistributionViewerCertificate
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html
*
*/
@JsonIgnore
public Property getViewerCertificate() {
return viewerCertificate;
}
/**
* DistributionViewerCertificate
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html
*
*/
@JsonIgnore
public void setViewerCertificate(Property viewerCertificate) {
this.viewerCertificate = viewerCertificate;
}
public DistributionDistributionConfig withViewerCertificate(Property viewerCertificate) {
this.viewerCertificate = viewerCertificate;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass
*
*/
@JsonIgnore
public CharSequence getPriceClass() {
return priceClass;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass
*
*/
@JsonIgnore
public void setPriceClass(CharSequence priceClass) {
this.priceClass = priceClass;
}
public DistributionDistributionConfig withPriceClass(CharSequence priceClass) {
this.priceClass = priceClass;
return this;
}
/**
* DistributionDefaultCacheBehavior
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html
*
*/
@JsonIgnore
public Property getDefaultCacheBehavior() {
return defaultCacheBehavior;
}
/**
* DistributionDefaultCacheBehavior
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html
*
*/
@JsonIgnore
public void setDefaultCacheBehavior(Property defaultCacheBehavior) {
this.defaultCacheBehavior = defaultCacheBehavior;
}
public DistributionDistributionConfig withDefaultCacheBehavior(Property defaultCacheBehavior) {
this.defaultCacheBehavior = defaultCacheBehavior;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customerrorresponses
*
*/
@JsonIgnore
public List> getCustomErrorResponses() {
return customErrorResponses;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customerrorresponses
*
*/
@JsonIgnore
public void setCustomErrorResponses(List> customErrorResponses) {
this.customErrorResponses = customErrorResponses;
}
public DistributionDistributionConfig withCustomErrorResponses(List> customErrorResponses) {
this.customErrorResponses = customErrorResponses;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-enabled
*
*/
@JsonIgnore
public CharSequence getEnabled() {
return enabled;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-enabled
*
*/
@JsonIgnore
public void setEnabled(CharSequence enabled) {
this.enabled = enabled;
}
public DistributionDistributionConfig withEnabled(CharSequence enabled) {
this.enabled = enabled;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases
*
*/
@JsonIgnore
public List getAliases() {
return aliases;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases
*
*/
@JsonIgnore
public void setAliases(List aliases) {
this.aliases = aliases;
}
public DistributionDistributionConfig withAliases(List aliases) {
this.aliases = aliases;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-ipv6enabled
*
*/
@JsonIgnore
public CharSequence getIPV6Enabled() {
return iPV6Enabled;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-ipv6enabled
*
*/
@JsonIgnore
public void setIPV6Enabled(CharSequence iPV6Enabled) {
this.iPV6Enabled = iPV6Enabled;
}
public DistributionDistributionConfig withIPV6Enabled(CharSequence iPV6Enabled) {
this.iPV6Enabled = iPV6Enabled;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid
*
*/
@JsonIgnore
public CharSequence getWebACLId() {
return webACLId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid
*
*/
@JsonIgnore
public void setWebACLId(CharSequence webACLId) {
this.webACLId = webACLId;
}
public DistributionDistributionConfig withWebACLId(CharSequence webACLId) {
this.webACLId = webACLId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-httpversion
*
*/
@JsonIgnore
public CharSequence getHttpVersion() {
return httpVersion;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-httpversion
*
*/
@JsonIgnore
public void setHttpVersion(CharSequence httpVersion) {
this.httpVersion = httpVersion;
}
public DistributionDistributionConfig withHttpVersion(CharSequence httpVersion) {
this.httpVersion = httpVersion;
return this;
}
/**
* DistributionRestrictions
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html
*
*/
@JsonIgnore
public Property getRestrictions() {
return restrictions;
}
/**
* DistributionRestrictions
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html
*
*/
@JsonIgnore
public void setRestrictions(Property restrictions) {
this.restrictions = restrictions;
}
public DistributionDistributionConfig withRestrictions(Property restrictions) {
this.restrictions = restrictions;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cachebehaviors
*
*/
@JsonIgnore
public List> getCacheBehaviors() {
return cacheBehaviors;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cachebehaviors
*
*/
@JsonIgnore
public void setCacheBehaviors(List> cacheBehaviors) {
this.cacheBehaviors = cacheBehaviors;
}
public DistributionDistributionConfig withCacheBehaviors(List> cacheBehaviors) {
this.cacheBehaviors = cacheBehaviors;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("logging", logging).append("comment", comment).append("defaultRootObject", defaultRootObject).append("origins", origins).append("viewerCertificate", viewerCertificate).append("priceClass", priceClass).append("defaultCacheBehavior", defaultCacheBehavior).append("customErrorResponses", customErrorResponses).append("enabled", enabled).append("aliases", aliases).append("iPV6Enabled", iPV6Enabled).append("webACLId", webACLId).append("httpVersion", httpVersion).append("restrictions", restrictions).append("cacheBehaviors", cacheBehaviors).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(defaultCacheBehavior).append(customErrorResponses).append(aliases).append(viewerCertificate).append(cacheBehaviors).append(restrictions).append(enabled).append(httpVersion).append(priceClass).append(logging).append(origins).append(comment).append(defaultRootObject).append(webACLId).append(iPV6Enabled).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DistributionDistributionConfig) == false) {
return false;
}
DistributionDistributionConfig rhs = ((DistributionDistributionConfig) other);
return new EqualsBuilder().append(defaultCacheBehavior, rhs.defaultCacheBehavior).append(customErrorResponses, rhs.customErrorResponses).append(aliases, rhs.aliases).append(viewerCertificate, rhs.viewerCertificate).append(cacheBehaviors, rhs.cacheBehaviors).append(restrictions, rhs.restrictions).append(enabled, rhs.enabled).append(httpVersion, rhs.httpVersion).append(priceClass, rhs.priceClass).append(logging, rhs.logging).append(origins, rhs.origins).append(comment, rhs.comment).append(defaultRootObject, rhs.defaultRootObject).append(webACLId, rhs.webACLId).append(iPV6Enabled, rhs.iPV6Enabled).isEquals();
}
}