Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class DistributionConfig

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.DistributionConfig
All Implemented Interfaces:
Serializable

public class DistributionConfig
extends Object
implements Serializable

A distribution Configuration.

See Also:
Serialized Form

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

DistributionConfig

public DistributionConfig()
Default constructor for a new DistributionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DistributionConfig

public DistributionConfig(String callerReference,
                          Boolean enabled)
Constructs a new DistributionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
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

getCallerReference

public String getCallerReference()
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.

Returns:
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.

setCallerReference

public void setCallerReference(String 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.

Parameters:
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.

withCallerReference

public DistributionConfig withCallerReference(String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getAliases

public Aliases getAliases()
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

Returns:
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

setAliases

public void setAliases(Aliases aliases)
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

Parameters:
aliases - A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

withAliases

public DistributionConfig withAliases(Aliases aliases)
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

Returns a reference to this object so that method calls can be chained together.

Parameters:
aliases - A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultRootObject

public 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). 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.

Returns:
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.

setDefaultRootObject

public 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). 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.

Parameters:
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.

withDefaultRootObject

public 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). 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getOrigins

public Origins getOrigins()
A complex type that contains information about origins for this distribution.

Returns:
A complex type that contains information about origins for this distribution.

setOrigins

public void setOrigins(Origins origins)
A complex type that contains information about origins for this distribution.

Parameters:
origins - A complex type that contains information about origins for this distribution.

withOrigins

public DistributionConfig withOrigins(Origins origins)
A complex type that contains information about origins for this distribution.

Returns a reference to this object so that method calls can be chained together.

Parameters:
origins - A complex type that contains information about origins for this distribution.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultCacheBehavior

public 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.

Returns:
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.

setDefaultCacheBehavior

public 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.

Parameters:
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.

withDefaultCacheBehavior

public 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getCacheBehaviors

public CacheBehaviors getCacheBehaviors()
A complex type that contains zero or more CacheBehavior elements.

Returns:
A complex type that contains zero or more CacheBehavior elements.

setCacheBehaviors

public void setCacheBehaviors(CacheBehaviors cacheBehaviors)
A complex type that contains zero or more CacheBehavior elements.

Parameters:
cacheBehaviors - A complex type that contains zero or more CacheBehavior elements.

withCacheBehaviors

public DistributionConfig withCacheBehaviors(CacheBehaviors cacheBehaviors)
A complex type that contains zero or more CacheBehavior elements.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cacheBehaviors - A complex type that contains zero or more CacheBehavior elements.
Returns:
A reference to this updated object so that method calls can be chained together.

getComment

public String getComment()
Any comments you want to include about the distribution.

Returns:
Any comments you want to include about the distribution.

setComment

public void setComment(String comment)
Any comments you want to include about the distribution.

Parameters:
comment - Any comments you want to include about the distribution.

withComment

public DistributionConfig withComment(String comment)
Any comments you want to include about the distribution.

Returns a reference to this object so that method calls can be chained together.

Parameters:
comment - Any comments you want to include about the distribution.
Returns:
A reference to this updated object so that method calls can be chained together.

getLogging

public LoggingConfig getLogging()
A complex type that controls whether access logs are written for the distribution.

Returns:
A complex type that controls whether access logs are written for the distribution.

setLogging

public void setLogging(LoggingConfig logging)
A complex type that controls whether access logs are written for the distribution.

Parameters:
logging - A complex type that controls whether access logs are written for the distribution.

withLogging

public DistributionConfig withLogging(LoggingConfig logging)
A complex type that controls whether access logs are written for the distribution.

Returns a reference to this object so that method calls can be chained together.

Parameters:
logging - A complex type that controls whether access logs are written for the distribution.
Returns:
A reference to this updated object so that method calls can be chained together.

getPriceClass

public String getPriceClass()
A complex type that contains information about price class for this distribution.

Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All

Returns:
A complex type that contains information about price class for this distribution.
See Also:
PriceClass

setPriceClass

public void setPriceClass(String priceClass)
A complex type that contains information about price class for this distribution.

Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All

Parameters:
priceClass - A complex type that contains information about price class for this distribution.
See Also:
PriceClass

withPriceClass

public DistributionConfig withPriceClass(String priceClass)
A complex type that contains information about price class for this distribution.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All

Parameters:
priceClass - A complex type that contains information about price class for this distribution.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PriceClass

setPriceClass

public void setPriceClass(PriceClass priceClass)
A complex type that contains information about price class for this distribution.

Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All

Parameters:
priceClass - A complex type that contains information about price class for this distribution.
See Also:
PriceClass

withPriceClass

public DistributionConfig withPriceClass(PriceClass priceClass)
A complex type that contains information about price class for this distribution.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All

Parameters:
priceClass - A complex type that contains information about price class for this distribution.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PriceClass

isEnabled

public Boolean isEnabled()
Whether the distribution is enabled to accept end user requests for content.

Returns:
Whether the distribution is enabled to accept end user requests for content.

setEnabled

public void setEnabled(Boolean enabled)
Whether the distribution is enabled to accept end user requests for content.

Parameters:
enabled - Whether the distribution is enabled to accept end user requests for content.

withEnabled

public DistributionConfig withEnabled(Boolean enabled)
Whether the distribution is enabled to accept end user requests for content.

Returns a reference to this object so that method calls can be chained together.

Parameters:
enabled - Whether the distribution is enabled to accept end user requests for content.
Returns:
A reference to this updated object so that method calls can be chained together.

getEnabled

public Boolean getEnabled()
Whether the distribution is enabled to accept end user requests for content.

Returns:
Whether the distribution is enabled to accept end user requests for content.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.