public class DistributionConfig extends Object implements Serializable, Cloneable
Constructor and Description |
---|
DistributionConfig()
Default constructor for 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() |
ViewerCertificate |
getViewerCertificate() |
String |
getWebACLId()
(Optional) If you're using AWS WAF to filter CloudFront requests, the Id
of the AWS WAF web ACL that is associated with the 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) |
void |
setViewerCertificate(ViewerCertificate viewerCertificate) |
void |
setWebACLId(String webACLId)
(Optional) If you're using AWS WAF to filter CloudFront requests, the Id
of the AWS WAF web ACL that is associated with the 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) |
DistributionConfig |
withViewerCertificate(ViewerCertificate viewerCertificate) |
DistributionConfig |
withWebACLId(String webACLId)
(Optional) If you're using AWS WAF to filter CloudFront requests, the Id
of the AWS WAF web ACL that is associated with the 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 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 String getCallerReference()
public DistributionConfig withCallerReference(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 void setAliases(Aliases aliases)
aliases
- A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.public Aliases getAliases()
public DistributionConfig withAliases(Aliases aliases)
aliases
- A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.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 String getDefaultRootObject()
public DistributionConfig withDefaultRootObject(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 void setOrigins(Origins origins)
origins
- A complex type that contains information about origins for this
distribution.public Origins getOrigins()
public DistributionConfig withOrigins(Origins origins)
origins
- A complex type that contains information about origins for this
distribution.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 DefaultCacheBehavior getDefaultCacheBehavior()
public DistributionConfig withDefaultCacheBehavior(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 void setCacheBehaviors(CacheBehaviors cacheBehaviors)
cacheBehaviors
- A complex type that contains zero or more CacheBehavior elements.public CacheBehaviors getCacheBehaviors()
public DistributionConfig withCacheBehaviors(CacheBehaviors cacheBehaviors)
cacheBehaviors
- A complex type that contains zero or more CacheBehavior elements.public void setCustomErrorResponses(CustomErrorResponses customErrorResponses)
customErrorResponses
- A complex type that contains zero or more CustomErrorResponse
elements.public CustomErrorResponses getCustomErrorResponses()
public DistributionConfig withCustomErrorResponses(CustomErrorResponses customErrorResponses)
customErrorResponses
- A complex type that contains zero or more CustomErrorResponse
elements.public void setComment(String comment)
comment
- Any comments you want to include about the distribution.public String getComment()
public DistributionConfig withComment(String comment)
comment
- Any comments you want to include about the distribution.public void setLogging(LoggingConfig logging)
logging
- A complex type that controls whether access logs are written for
the distribution.public LoggingConfig getLogging()
public DistributionConfig withLogging(LoggingConfig logging)
logging
- A complex type that controls whether access logs are written for
the distribution.public void setPriceClass(String priceClass)
priceClass
- A complex type that contains information about price class for
this distribution.PriceClass
public String getPriceClass()
PriceClass
public DistributionConfig withPriceClass(String priceClass)
priceClass
- A complex type that contains information about price class for
this distribution.PriceClass
public void setPriceClass(PriceClass priceClass)
priceClass
- A complex type that contains information about price class for
this distribution.PriceClass
public DistributionConfig withPriceClass(PriceClass priceClass)
priceClass
- A complex type that contains information about price class for
this distribution.PriceClass
public void setEnabled(Boolean enabled)
enabled
- Whether the distribution is enabled to accept end user requests
for content.public Boolean getEnabled()
public DistributionConfig withEnabled(Boolean enabled)
enabled
- Whether the distribution is enabled to accept end user requests
for content.public Boolean isEnabled()
public void setViewerCertificate(ViewerCertificate viewerCertificate)
viewerCertificate
- public ViewerCertificate getViewerCertificate()
public DistributionConfig withViewerCertificate(ViewerCertificate viewerCertificate)
viewerCertificate
- public void setRestrictions(Restrictions restrictions)
restrictions
- public Restrictions getRestrictions()
public DistributionConfig withRestrictions(Restrictions restrictions)
restrictions
- public void setWebACLId(String webACLId)
webACLId
- (Optional) If you're using AWS WAF to filter CloudFront requests,
the Id of the AWS WAF web ACL that is associated with the
distribution.public String getWebACLId()
public DistributionConfig withWebACLId(String webACLId)
webACLId
- (Optional) If you're using AWS WAF to filter CloudFront requests,
the Id of the AWS WAF web ACL that is associated with the
distribution.public String toString()
toString
in class Object
Object.toString()
public DistributionConfig clone()
Copyright © 2016. All rights reserved.