com.amazonaws.services.cloudfront.model

## クラス DistributionConfig

- java.lang.Object
- - com.amazonaws.services.cloudfront.model.DistributionConfig

- すべての実装されたインタフェース:
    java.io.Serializable

      public class DistributionConfig
      extends java.lang.Object
      implements java.io.Serializable

  A distribution Configuration.

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `DistributionConfig()` Default constructor for a new DistributionConfig object.
    `DistributionConfig(java.lang.String callerReference, java.lang.Boolean enabled)` Constructs a new DistributionConfig object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.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.
    `java.lang.String` | `getCallerReference()` A unique number that ensures the request can't be replayed.
    `java.lang.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.
    `java.lang.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).
    `java.lang.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.
    `java.lang.String` | `getPriceClass()` A complex type that contains information about price class for this distribution.
    `ViewerCertificate` | `getViewerCertificate()` A complex type that contains information about viewer certificates for this distribution.
    `int` | `hashCode()`
    `java.lang.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(java.lang.String callerReference)` A unique number that ensures the request can't be replayed.
    `void` | `setComment(java.lang.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(java.lang.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(java.lang.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(java.lang.String priceClass)` A complex type that contains information about price class for this distribution.
    `void` | `setViewerCertificate(ViewerCertificate viewerCertificate)` A complex type that contains information about viewer certificates for this distribution.
    `java.lang.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(java.lang.String callerReference)` A unique number that ensures the request can't be replayed.
    `DistributionConfig` | `withComment(java.lang.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(java.lang.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(java.lang.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(java.lang.String priceClass)` A complex type that contains information about price class for this distribution.
    `DistributionConfig` | `withViewerCertificate(ViewerCertificate viewerCertificate)` A complex type that contains information about viewer certificates for this distribution.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### 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(java.lang.String callerReference,
                            java.lang.Boolean enabled)

      Constructs a new DistributionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `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.

  - ### メソッドの詳細

    - #### getCallerReference

          public java.lang.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.
      戻り値:
        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(java.lang.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.
      パラメータ:
        `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(java.lang.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.

      パラメータ:
        `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.

    - #### getAliases

          public Aliases getAliases()

      A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
      戻り値:
        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.
      パラメータ:
        `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.

      パラメータ:
        `aliases` - A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.

    - #### getDefaultRootObject

          public java.lang.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.
      戻り値:
        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(java.lang.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.
      パラメータ:
        `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(java.lang.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.

      パラメータ:
        `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.

    - #### getOrigins

          public Origins getOrigins()

      A complex type that contains information about origins for this distribution.
      戻り値:
        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.
      パラメータ:
        `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.

      パラメータ:
        `origins` - A complex type that contains information about origins for this distribution.

    - #### 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.
      戻り値:
        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.
      パラメータ:
        `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.

      パラメータ:
        `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.

    - #### getCacheBehaviors

          public CacheBehaviors getCacheBehaviors()

      A complex type that contains zero or more CacheBehavior elements.
      戻り値:
        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.
      パラメータ:
        `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.

      パラメータ:
        `cacheBehaviors` - A complex type that contains zero or more CacheBehavior elements.

    - #### getComment

          public java.lang.String getComment()

      Any comments you want to include about the distribution.
      戻り値:
        Any comments you want to include about the distribution.

    - #### setComment

          public void setComment(java.lang.String comment)

      Any comments you want to include about the distribution.
      パラメータ:
        `comment` - Any comments you want to include about the distribution.

    - #### withComment

          public DistributionConfig withComment(java.lang.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.

      パラメータ:
        `comment` - Any comments you want to include about the distribution.

    - #### getLogging

          public LoggingConfig getLogging()

      A complex type that controls whether access logs are written for the distribution.
      戻り値:
        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.
      パラメータ:
        `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.

      パラメータ:
        `logging` - A complex type that controls whether access logs are written for the distribution.

    - #### getPriceClass

          public java.lang.String getPriceClass()

      A complex type that contains information about price class for this distribution.

      Constraints:
      Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All

      戻り値:
        A complex type that contains information about price class for this distribution.
      関連項目:
        `PriceClass`

    - #### setPriceClass

          public void setPriceClass(java.lang.String priceClass)

      A complex type that contains information about price class for this distribution.

      Constraints:
      Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All

      パラメータ:
        `priceClass` - A complex type that contains information about price class for this distribution.
      関連項目:
        `PriceClass`

    - #### withPriceClass

          public DistributionConfig withPriceClass(java.lang.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

      パラメータ:
        `priceClass` - A complex type that contains information about price class for this distribution.
      関連項目:
        `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

      パラメータ:
        `priceClass` - A complex type that contains information about price class for this distribution.
      関連項目:
        `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

      パラメータ:
        `priceClass` - A complex type that contains information about price class for this distribution.
      関連項目:
        `PriceClass`

    - #### isEnabled

          public java.lang.Boolean isEnabled()

      Whether the distribution is enabled to accept end user requests for content.
      戻り値:
        Whether the distribution is enabled to accept end user requests for content.

    - #### setEnabled

          public void setEnabled(java.lang.Boolean enabled)

      Whether the distribution is enabled to accept end user requests for content.
      パラメータ:
        `enabled` - Whether the distribution is enabled to accept end user requests for content.

    - #### withEnabled

          public DistributionConfig withEnabled(java.lang.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.

      パラメータ:
        `enabled` - Whether the distribution is enabled to accept end user requests for content.

    - #### getEnabled

          public java.lang.Boolean getEnabled()

      Whether the distribution is enabled to accept end user requests for content.
      戻り値:
        Whether the distribution is enabled to accept end user requests for content.

    - #### getViewerCertificate

          public ViewerCertificate getViewerCertificate()

      A complex type that contains information about viewer certificates for this distribution.
      戻り値:
        A complex type that contains information about viewer certificates for this distribution.

    - #### setViewerCertificate

          public void setViewerCertificate(ViewerCertificate viewerCertificate)

      A complex type that contains information about viewer certificates for this distribution.
      パラメータ:
        `viewerCertificate` - A complex type that contains information about viewer certificates for this distribution.

    - #### withViewerCertificate

          public DistributionConfig withViewerCertificate(ViewerCertificate viewerCertificate)

      A complex type that contains information about viewer certificates for this distribution.

      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.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`