|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.cloudfront.model.DistributionConfig
public class DistributionConfig
A distribution Configuration.
Constructor Summary | |
---|---|
DistributionConfig()
Default constructor for a new DistributionConfig object. |
|
DistributionConfig(String callerReference,
Boolean enabled)
Constructs a new DistributionConfig object. |
Method Summary | |
---|---|
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. |
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. |
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 |
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. |
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 |
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 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
PriceClass
public 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.PriceClass
public 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.
PriceClass
public 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.PriceClass
public 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.
PriceClass
public 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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |