All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shiver.me.timbers.aws.cloudfront.DistributionCacheBehavior Maven / Gradle / Ivy

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

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;


/**
 * DistributionCacheBehavior
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Compress", "LambdaFunctionAssociations", "TargetOriginId", "ViewerProtocolPolicy", "TrustedSigners", "DefaultTTL", "FieldLevelEncryptionId", "AllowedMethods", "PathPattern", "CachedMethods", "SmoothStreaming", "ForwardedValues", "MinTTL", "MaxTTL" }) public class DistributionCacheBehavior implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-compress * */ @JsonProperty("Compress") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-compress") private CharSequence compress; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-lambdafunctionassociations * */ @JsonProperty("LambdaFunctionAssociations") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-lambdafunctionassociations") private List> lambdaFunctionAssociations = new ArrayList>(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-targetoriginid * */ @JsonProperty("TargetOriginId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-targetoriginid") private CharSequence targetOriginId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy * */ @JsonProperty("ViewerProtocolPolicy") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy") private CharSequence viewerProtocolPolicy; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedsigners * */ @JsonProperty("TrustedSigners") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedsigners") private List trustedSigners = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-defaultttl * */ @JsonProperty("DefaultTTL") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-defaultttl") private Number defaultTTL; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-fieldlevelencryptionid * */ @JsonProperty("FieldLevelEncryptionId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-fieldlevelencryptionid") private CharSequence fieldLevelEncryptionId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-allowedmethods * */ @JsonProperty("AllowedMethods") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-allowedmethods") private List allowedMethods = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-pathpattern * */ @JsonProperty("PathPattern") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-pathpattern") private CharSequence pathPattern; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachedmethods * */ @JsonProperty("CachedMethods") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachedmethods") private List cachedMethods = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-smoothstreaming * */ @JsonProperty("SmoothStreaming") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-smoothstreaming") private CharSequence smoothStreaming; /** * DistributionForwardedValues *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html * */ @JsonProperty("ForwardedValues") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html") private Property forwardedValues; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-minttl * */ @JsonProperty("MinTTL") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-minttl") private Number minTTL; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-maxttl * */ @JsonProperty("MaxTTL") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-maxttl") private Number maxTTL; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-compress * */ @JsonIgnore public CharSequence getCompress() { return compress; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-compress * */ @JsonIgnore public void setCompress(CharSequence compress) { this.compress = compress; } public DistributionCacheBehavior withCompress(CharSequence compress) { this.compress = compress; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-lambdafunctionassociations * */ @JsonIgnore public List> getLambdaFunctionAssociations() { return lambdaFunctionAssociations; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-lambdafunctionassociations * */ @JsonIgnore public void setLambdaFunctionAssociations(List> lambdaFunctionAssociations) { this.lambdaFunctionAssociations = lambdaFunctionAssociations; } public DistributionCacheBehavior withLambdaFunctionAssociations(List> lambdaFunctionAssociations) { this.lambdaFunctionAssociations = lambdaFunctionAssociations; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-targetoriginid * */ @JsonIgnore public CharSequence getTargetOriginId() { return targetOriginId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-targetoriginid * */ @JsonIgnore public void setTargetOriginId(CharSequence targetOriginId) { this.targetOriginId = targetOriginId; } public DistributionCacheBehavior withTargetOriginId(CharSequence targetOriginId) { this.targetOriginId = targetOriginId; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy * */ @JsonIgnore public CharSequence getViewerProtocolPolicy() { return viewerProtocolPolicy; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy * */ @JsonIgnore public void setViewerProtocolPolicy(CharSequence viewerProtocolPolicy) { this.viewerProtocolPolicy = viewerProtocolPolicy; } public DistributionCacheBehavior withViewerProtocolPolicy(CharSequence viewerProtocolPolicy) { this.viewerProtocolPolicy = viewerProtocolPolicy; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedsigners * */ @JsonIgnore public List getTrustedSigners() { return trustedSigners; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedsigners * */ @JsonIgnore public void setTrustedSigners(List trustedSigners) { this.trustedSigners = trustedSigners; } public DistributionCacheBehavior withTrustedSigners(List trustedSigners) { this.trustedSigners = trustedSigners; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-defaultttl * */ @JsonIgnore public Number getDefaultTTL() { return defaultTTL; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-defaultttl * */ @JsonIgnore public void setDefaultTTL(Number defaultTTL) { this.defaultTTL = defaultTTL; } public DistributionCacheBehavior withDefaultTTL(Number defaultTTL) { this.defaultTTL = defaultTTL; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-fieldlevelencryptionid * */ @JsonIgnore public CharSequence getFieldLevelEncryptionId() { return fieldLevelEncryptionId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-fieldlevelencryptionid * */ @JsonIgnore public void setFieldLevelEncryptionId(CharSequence fieldLevelEncryptionId) { this.fieldLevelEncryptionId = fieldLevelEncryptionId; } public DistributionCacheBehavior withFieldLevelEncryptionId(CharSequence fieldLevelEncryptionId) { this.fieldLevelEncryptionId = fieldLevelEncryptionId; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-allowedmethods * */ @JsonIgnore public List getAllowedMethods() { return allowedMethods; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-allowedmethods * */ @JsonIgnore public void setAllowedMethods(List allowedMethods) { this.allowedMethods = allowedMethods; } public DistributionCacheBehavior withAllowedMethods(List allowedMethods) { this.allowedMethods = allowedMethods; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-pathpattern * */ @JsonIgnore public CharSequence getPathPattern() { return pathPattern; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-pathpattern * */ @JsonIgnore public void setPathPattern(CharSequence pathPattern) { this.pathPattern = pathPattern; } public DistributionCacheBehavior withPathPattern(CharSequence pathPattern) { this.pathPattern = pathPattern; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachedmethods * */ @JsonIgnore public List getCachedMethods() { return cachedMethods; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachedmethods * */ @JsonIgnore public void setCachedMethods(List cachedMethods) { this.cachedMethods = cachedMethods; } public DistributionCacheBehavior withCachedMethods(List cachedMethods) { this.cachedMethods = cachedMethods; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-smoothstreaming * */ @JsonIgnore public CharSequence getSmoothStreaming() { return smoothStreaming; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-smoothstreaming * */ @JsonIgnore public void setSmoothStreaming(CharSequence smoothStreaming) { this.smoothStreaming = smoothStreaming; } public DistributionCacheBehavior withSmoothStreaming(CharSequence smoothStreaming) { this.smoothStreaming = smoothStreaming; return this; } /** * DistributionForwardedValues *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html * */ @JsonIgnore public Property getForwardedValues() { return forwardedValues; } /** * DistributionForwardedValues *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html * */ @JsonIgnore public void setForwardedValues(Property forwardedValues) { this.forwardedValues = forwardedValues; } public DistributionCacheBehavior withForwardedValues(Property forwardedValues) { this.forwardedValues = forwardedValues; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-minttl * */ @JsonIgnore public Number getMinTTL() { return minTTL; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-minttl * */ @JsonIgnore public void setMinTTL(Number minTTL) { this.minTTL = minTTL; } public DistributionCacheBehavior withMinTTL(Number minTTL) { this.minTTL = minTTL; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-maxttl * */ @JsonIgnore public Number getMaxTTL() { return maxTTL; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-maxttl * */ @JsonIgnore public void setMaxTTL(Number maxTTL) { this.maxTTL = maxTTL; } public DistributionCacheBehavior withMaxTTL(Number maxTTL) { this.maxTTL = maxTTL; return this; } @Override public String toString() { return new ToStringBuilder(this).append("compress", compress).append("lambdaFunctionAssociations", lambdaFunctionAssociations).append("targetOriginId", targetOriginId).append("viewerProtocolPolicy", viewerProtocolPolicy).append("trustedSigners", trustedSigners).append("defaultTTL", defaultTTL).append("fieldLevelEncryptionId", fieldLevelEncryptionId).append("allowedMethods", allowedMethods).append("pathPattern", pathPattern).append("cachedMethods", cachedMethods).append("smoothStreaming", smoothStreaming).append("forwardedValues", forwardedValues).append("minTTL", minTTL).append("maxTTL", maxTTL).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(trustedSigners).append(minTTL).append(compress).append(maxTTL).append(viewerProtocolPolicy).append(forwardedValues).append(lambdaFunctionAssociations).append(cachedMethods).append(fieldLevelEncryptionId).append(defaultTTL).append(allowedMethods).append(pathPattern).append(smoothStreaming).append(targetOriginId).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof DistributionCacheBehavior) == false) { return false; } DistributionCacheBehavior rhs = ((DistributionCacheBehavior) other); return new EqualsBuilder().append(trustedSigners, rhs.trustedSigners).append(minTTL, rhs.minTTL).append(compress, rhs.compress).append(maxTTL, rhs.maxTTL).append(viewerProtocolPolicy, rhs.viewerProtocolPolicy).append(forwardedValues, rhs.forwardedValues).append(lambdaFunctionAssociations, rhs.lambdaFunctionAssociations).append(cachedMethods, rhs.cachedMethods).append(fieldLevelEncryptionId, rhs.fieldLevelEncryptionId).append(defaultTTL, rhs.defaultTTL).append(allowedMethods, rhs.allowedMethods).append(pathPattern, rhs.pathPattern).append(smoothStreaming, rhs.smoothStreaming).append(targetOriginId, rhs.targetOriginId).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy