public class DistributionConfig extends Object implements Serializable, Cloneable
A distribution Configuration.
| Constructor and Description | 
|---|
| DistributionConfig()Default constructor for a new DistributionConfig object. | 
| DistributionConfig(String callerReference,
                  Boolean enabled)Constructs a new DistributionConfig object. | 
| Modifier and Type | Method and Description | 
|---|---|
| DistributionConfig | clone() | 
| boolean | equals(Object obj) | 
| Aliases | getAliases()A complex type that contains information about CNAMEs (alternate
 domain names), if any, for this distribution. | 
| CacheBehaviors | getCacheBehaviors()A complex type that contains zero or more CacheBehavior elements. | 
| String | getCallerReference()A unique number that ensures the request can't be replayed. | 
| String | getComment()Any comments you want to include about the distribution. | 
| CustomErrorResponses | getCustomErrorResponses()A complex type that contains zero or more CustomErrorResponse
 elements. | 
| DefaultCacheBehavior | getDefaultCacheBehavior()A complex type that describes the default cache behavior if you do not
 specify a CacheBehavior element or if files don't match any of the
 values of PathPattern in CacheBehavior elements.You must create
 exactly one default cache behavior. | 
| String | getDefaultRootObject()The object that you want CloudFront to return (for example,
 index.html) when an end user requests the root URL for your
 distribution (http://www.example.com) instead of an object in your
 distribution (http://www.example.com/index.html). | 
| Boolean | getEnabled()Whether the distribution is enabled to accept end user requests for
 content. | 
| LoggingConfig | getLogging()A complex type that controls whether access logs are written for the
 distribution. | 
| Origins | getOrigins()A complex type that contains information about origins for this
 distribution. | 
| String | getPriceClass()A complex type that contains information about price class for this
 distribution. | 
| Restrictions | getRestrictions()A complex type that identifies ways in which you want to restrict
 distribution of your content. | 
| ViewerCertificate | getViewerCertificate()A complex type that contains information about viewer certificates for
 this distribution. | 
| int | hashCode() | 
| Boolean | isEnabled()Whether the distribution is enabled to accept end user requests for
 content. | 
| void | setAliases(Aliases aliases)A complex type that contains information about CNAMEs (alternate
 domain names), if any, for this distribution. | 
| void | setCacheBehaviors(CacheBehaviors cacheBehaviors)A complex type that contains zero or more CacheBehavior elements. | 
| void | setCallerReference(String callerReference)A unique number that ensures the request can't be replayed. | 
| void | setComment(String comment)Any comments you want to include about the distribution. | 
| void | setCustomErrorResponses(CustomErrorResponses customErrorResponses)A complex type that contains zero or more CustomErrorResponse
 elements. | 
| void | setDefaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior)A complex type that describes the default cache behavior if you do not
 specify a CacheBehavior element or if files don't match any of the
 values of PathPattern in CacheBehavior elements.You must create
 exactly one default cache behavior. | 
| void | setDefaultRootObject(String defaultRootObject)The object that you want CloudFront to return (for example,
 index.html) when an end user requests the root URL for your
 distribution (http://www.example.com) instead of an object in your
 distribution (http://www.example.com/index.html). | 
| void | setEnabled(Boolean enabled)Whether the distribution is enabled to accept end user requests for
 content. | 
| void | setLogging(LoggingConfig logging)A complex type that controls whether access logs are written for the
 distribution. | 
| void | setOrigins(Origins origins)A complex type that contains information about origins for this
 distribution. | 
| void | setPriceClass(PriceClass priceClass)A complex type that contains information about price class for this
 distribution. | 
| void | setPriceClass(String priceClass)A complex type that contains information about price class for this
 distribution. | 
| void | setRestrictions(Restrictions restrictions)A complex type that identifies ways in which you want to restrict
 distribution of your content. | 
| void | setViewerCertificate(ViewerCertificate viewerCertificate)A complex type that contains information about viewer certificates for
 this distribution. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| DistributionConfig | withAliases(Aliases aliases)A complex type that contains information about CNAMEs (alternate
 domain names), if any, for this distribution. | 
| DistributionConfig | withCacheBehaviors(CacheBehaviors cacheBehaviors)A complex type that contains zero or more CacheBehavior elements. | 
| DistributionConfig | withCallerReference(String callerReference)A unique number that ensures the request can't be replayed. | 
| DistributionConfig | withComment(String comment)Any comments you want to include about the distribution. | 
| DistributionConfig | withCustomErrorResponses(CustomErrorResponses customErrorResponses)A complex type that contains zero or more CustomErrorResponse
 elements. | 
| DistributionConfig | withDefaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior)A complex type that describes the default cache behavior if you do not
 specify a CacheBehavior element or if files don't match any of the
 values of PathPattern in CacheBehavior elements.You must create
 exactly one default cache behavior. | 
| DistributionConfig | withDefaultRootObject(String defaultRootObject)The object that you want CloudFront to return (for example,
 index.html) when an end user requests the root URL for your
 distribution (http://www.example.com) instead of an object in your
 distribution (http://www.example.com/index.html). | 
| DistributionConfig | withEnabled(Boolean enabled)Whether the distribution is enabled to accept end user requests for
 content. | 
| DistributionConfig | withLogging(LoggingConfig logging)A complex type that controls whether access logs are written for the
 distribution. | 
| DistributionConfig | withOrigins(Origins origins)A complex type that contains information about origins for this
 distribution. | 
| DistributionConfig | withPriceClass(PriceClass priceClass)A complex type that contains information about price class for this
 distribution. | 
| DistributionConfig | withPriceClass(String priceClass)A complex type that contains information about price class for this
 distribution. | 
| DistributionConfig | withRestrictions(Restrictions restrictions)A complex type that identifies ways in which you want to restrict
 distribution of your content. | 
| DistributionConfig | withViewerCertificate(ViewerCertificate viewerCertificate)A complex type that contains information about viewer certificates for
 this distribution. | 
public DistributionConfig()
public DistributionConfig(String callerReference, Boolean enabled)
callerReference - A unique number that ensures the request can't
 be replayed. If the CallerReference is new (no matter the content of
 the DistributionConfig object), a new distribution is created. If the
 CallerReference is a value you already sent in a previous request to
 create a distribution, and the content of the DistributionConfig is
 identical to the original request (ignoring white space), the response
 includes the same information returned to the original request. If the
 CallerReference is a value you already sent in a previous request to
 create a distribution but the content of the DistributionConfig is
 different from the original request, CloudFront returns a
 DistributionAlreadyExists error.enabled - Whether the distribution is enabled to accept end user
 requests for content.public String getCallerReference()
public void setCallerReference(String callerReference)
callerReference - A unique number that ensures the request can't be replayed. If the
         CallerReference is new (no matter the content of the
         DistributionConfig object), a new distribution is created. If the
         CallerReference is a value you already sent in a previous request to
         create a distribution, and the content of the DistributionConfig is
         identical to the original request (ignoring white space), the response
         includes the same information returned to the original request. If the
         CallerReference is a value you already sent in a previous request to
         create a distribution but the content of the DistributionConfig is
         different from the original request, CloudFront returns a
         DistributionAlreadyExists error.public DistributionConfig withCallerReference(String callerReference)
Returns a reference to this object so that method calls can be chained together.
callerReference - A unique number that ensures the request can't be replayed. If the
         CallerReference is new (no matter the content of the
         DistributionConfig object), a new distribution is created. If the
         CallerReference is a value you already sent in a previous request to
         create a distribution, and the content of the DistributionConfig is
         identical to the original request (ignoring white space), the response
         includes the same information returned to the original request. If the
         CallerReference is a value you already sent in a previous request to
         create a distribution but the content of the DistributionConfig is
         different from the original request, CloudFront returns a
         DistributionAlreadyExists error.public Aliases getAliases()
public void setAliases(Aliases aliases)
aliases - A complex type that contains information about CNAMEs (alternate
         domain names), if any, for this distribution.public DistributionConfig withAliases(Aliases aliases)
Returns a reference to this object so that method calls can be chained together.
aliases - A complex type that contains information about CNAMEs (alternate
         domain names), if any, for this distribution.public String getDefaultRootObject()
public void setDefaultRootObject(String defaultRootObject)
defaultRootObject - The object that you want CloudFront to return (for example,
         index.html) when an end user requests the root URL for your
         distribution (http://www.example.com) instead of an object in your
         distribution (http://www.example.com/index.html). Specifying a default
         root object avoids exposing the contents of your distribution. If you
         don't want to specify a default root object when you create a
         distribution, include an empty DefaultRootObject element. To delete
         the default root object from an existing distribution, update the
         distribution configuration and include an empty DefaultRootObject
         element. To replace the default root object, update the distribution
         configuration and specify the new object.public DistributionConfig withDefaultRootObject(String defaultRootObject)
Returns a reference to this object so that method calls can be chained together.
defaultRootObject - The object that you want CloudFront to return (for example,
         index.html) when an end user requests the root URL for your
         distribution (http://www.example.com) instead of an object in your
         distribution (http://www.example.com/index.html). Specifying a default
         root object avoids exposing the contents of your distribution. If you
         don't want to specify a default root object when you create a
         distribution, include an empty DefaultRootObject element. To delete
         the default root object from an existing distribution, update the
         distribution configuration and include an empty DefaultRootObject
         element. To replace the default root object, update the distribution
         configuration and specify the new object.public Origins getOrigins()
public void setOrigins(Origins origins)
origins - A complex type that contains information about origins for this
         distribution.public DistributionConfig withOrigins(Origins origins)
Returns a reference to this object so that method calls can be chained together.
origins - A complex type that contains information about origins for this
         distribution.public DefaultCacheBehavior getDefaultCacheBehavior()
public void setDefaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior)
defaultCacheBehavior - A complex type that describes the default cache behavior if you do not
         specify a CacheBehavior element or if files don't match any of the
         values of PathPattern in CacheBehavior elements.You must create
         exactly one default cache behavior.public DistributionConfig withDefaultCacheBehavior(DefaultCacheBehavior defaultCacheBehavior)
Returns a reference to this object so that method calls can be chained together.
defaultCacheBehavior - A complex type that describes the default cache behavior if you do not
         specify a CacheBehavior element or if files don't match any of the
         values of PathPattern in CacheBehavior elements.You must create
         exactly one default cache behavior.public CacheBehaviors getCacheBehaviors()
public void setCacheBehaviors(CacheBehaviors cacheBehaviors)
cacheBehaviors - A complex type that contains zero or more CacheBehavior elements.public DistributionConfig withCacheBehaviors(CacheBehaviors cacheBehaviors)
Returns a reference to this object so that method calls can be chained together.
cacheBehaviors - A complex type that contains zero or more CacheBehavior elements.public CustomErrorResponses getCustomErrorResponses()
public void setCustomErrorResponses(CustomErrorResponses customErrorResponses)
customErrorResponses - A complex type that contains zero or more CustomErrorResponse
         elements.public DistributionConfig withCustomErrorResponses(CustomErrorResponses customErrorResponses)
Returns a reference to this object so that method calls can be chained together.
customErrorResponses - A complex type that contains zero or more CustomErrorResponse
         elements.public String getComment()
public void setComment(String comment)
comment - Any comments you want to include about the distribution.public DistributionConfig withComment(String comment)
Returns a reference to this object so that method calls can be chained together.
comment - Any comments you want to include about the distribution.public LoggingConfig getLogging()
public void setLogging(LoggingConfig logging)
logging - A complex type that controls whether access logs are written for the
         distribution.public DistributionConfig withLogging(LoggingConfig logging)
Returns a reference to this object so that method calls can be chained together.
logging - A complex type that controls whether access logs are written for the
         distribution.public String getPriceClass()
 Constraints:
 Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
PriceClasspublic void setPriceClass(String priceClass)
 Constraints:
 Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
priceClass - A complex type that contains information about price class for this
         distribution.PriceClasspublic DistributionConfig withPriceClass(String priceClass)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
priceClass - A complex type that contains information about price class for this
         distribution.PriceClasspublic void setPriceClass(PriceClass priceClass)
 Constraints:
 Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
priceClass - A complex type that contains information about price class for this
         distribution.PriceClasspublic DistributionConfig withPriceClass(PriceClass priceClass)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
priceClass - A complex type that contains information about price class for this
         distribution.PriceClasspublic Boolean isEnabled()
public void setEnabled(Boolean enabled)
enabled - Whether the distribution is enabled to accept end user requests for
         content.public DistributionConfig withEnabled(Boolean enabled)
Returns a reference to this object so that method calls can be chained together.
enabled - Whether the distribution is enabled to accept end user requests for
         content.public Boolean getEnabled()
public ViewerCertificate getViewerCertificate()
public void setViewerCertificate(ViewerCertificate viewerCertificate)
viewerCertificate - A complex type that contains information about viewer certificates for
         this distribution.public DistributionConfig withViewerCertificate(ViewerCertificate viewerCertificate)
Returns a reference to this object so that method calls can be chained together.
viewerCertificate - A complex type that contains information about viewer certificates for
         this distribution.public Restrictions getRestrictions()
public void setRestrictions(Restrictions restrictions)
restrictions - A complex type that identifies ways in which you want to restrict
         distribution of your content.public DistributionConfig withRestrictions(Restrictions restrictions)
Returns a reference to this object so that method calls can be chained together.
restrictions - A complex type that identifies ways in which you want to restrict
         distribution of your content.public String toString()
toString in class ObjectObject.toString()public DistributionConfig clone()
Copyright © 2015. All rights reserved.