com.amazonaws.services.cloudfront_2012_03_15.model

## クラス DistributionConfig

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

-     public class DistributionConfig
      extends java.lang.Object

  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)`
    `CachingBehavior` | `getCachingBehavior()` Determines the minimum TTL for objects in the CloudFront cache.
    `java.lang.String` | `getCallerReference()` A unique number that ensures the request can't be replayed.
    `java.util.List<java.lang.String>` | `getCNAME()` A CNAME alias you want to associate with this distribution.
    `java.lang.String` | `getComment()` Any comments you want to include about the distribution.
    `CustomOrigin` | `getCustomOrigin()` Origin information to associate with the distribution.
    `java.lang.String` | `getDefaultRootObject()` Designates a default root object.
    `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.
    `RequiredProtocols` | `getRequiredProtocols()` Defines the protocols required for your distribution.
    `S3Origin` | `getS3Origin()` Origin information to associate with the distribution.
    `TrustedSigners` | `getTrustedSigners()` A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isEnabled()` Whether the distribution is enabled to accept end user requests for content.
    `void` | `setCachingBehavior(CachingBehavior cachingBehavior)` Determines the minimum TTL for objects in the CloudFront cache.
    `void` | `setCallerReference(java.lang.String callerReference)` A unique number that ensures the request can't be replayed.
    `void` | `setCNAME(java.util.Collection<java.lang.String> cNAME)` A CNAME alias you want to associate with this distribution.
    `void` | `setComment(java.lang.String comment)` Any comments you want to include about the distribution.
    `void` | `setCustomOrigin(CustomOrigin customOrigin)` Origin information to associate with the distribution.
    `void` | `setDefaultRootObject(java.lang.String defaultRootObject)` Designates a default root object.
    `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` | `setRequiredProtocols(RequiredProtocols requiredProtocols)` Defines the protocols required for your distribution.
    `void` | `setS3Origin(S3Origin s3Origin)` Origin information to associate with the distribution.
    `void` | `setTrustedSigners(TrustedSigners trustedSigners)` A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DistributionConfig` | `withCachingBehavior(CachingBehavior cachingBehavior)` Determines the minimum TTL for objects in the CloudFront cache.
    `DistributionConfig` | `withCallerReference(java.lang.String callerReference)` A unique number that ensures the request can't be replayed.
    `DistributionConfig` | `withCNAME(java.util.Collection<java.lang.String> cNAME)` A CNAME alias you want to associate with this distribution.
    `DistributionConfig` | `withCNAME(java.lang.String... cNAME)` A CNAME alias you want to associate with this distribution.
    `DistributionConfig` | `withComment(java.lang.String comment)` Any comments you want to include about the distribution.
    `DistributionConfig` | `withCustomOrigin(CustomOrigin customOrigin)` Origin information to associate with the distribution.
    `DistributionConfig` | `withDefaultRootObject(java.lang.String defaultRootObject)` Designates a default root object.
    `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` | `withRequiredProtocols(RequiredProtocols requiredProtocols)` Defines the protocols required for your distribution.
    `DistributionConfig` | `withS3Origin(S3Origin s3Origin)` Origin information to associate with the distribution.
    `DistributionConfig` | `withTrustedSigners(TrustedSigners trustedSigners)` A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content.

    - ### クラスから継承されたメソッド 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.

  - ### メソッドの詳細

    - #### getS3Origin

          public S3Origin getS3Origin()

      Origin information to associate with the distribution. If your distribution will use an Amazon S3 origin, then you use the S3Origin element.
      戻り値:
        Origin information to associate with the distribution. If your distribution will use an Amazon S3 origin, then you use the S3Origin element.

    - #### setS3Origin

          public void setS3Origin(S3Origin s3Origin)

      Origin information to associate with the distribution. If your distribution will use an Amazon S3 origin, then you use the S3Origin element.
      パラメータ:
        `s3Origin` - Origin information to associate with the distribution. If your distribution will use an Amazon S3 origin, then you use the S3Origin element.

    - #### withS3Origin

          public DistributionConfig withS3Origin(S3Origin s3Origin)

      Origin information to associate with the distribution. If your distribution will use an Amazon S3 origin, then you use the S3Origin element.

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

      パラメータ:
        `s3Origin` - Origin information to associate with the distribution. If your distribution will use an Amazon S3 origin, then you use the S3Origin element.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getCustomOrigin

          public CustomOrigin getCustomOrigin()

      Origin information to associate with the distribution. If your distribution will use a custom origin (non Amazon S3), then you use the CustomOrigin element.
      戻り値:
        Origin information to associate with the distribution. If your distribution will use a custom origin (non Amazon S3), then you use the CustomOrigin element.

    - #### setCustomOrigin

          public void setCustomOrigin(CustomOrigin customOrigin)

      Origin information to associate with the distribution. If your distribution will use a custom origin (non Amazon S3), then you use the CustomOrigin element.
      パラメータ:
        `customOrigin` - Origin information to associate with the distribution. If your distribution will use a custom origin (non Amazon S3), then you use the CustomOrigin element.

    - #### withCustomOrigin

          public DistributionConfig withCustomOrigin(CustomOrigin customOrigin)

      Origin information to associate with the distribution. If your distribution will use a custom origin (non Amazon S3), then you use the CustomOrigin element.

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

      パラメータ:
        `customOrigin` - Origin information to associate with the distribution. If your distribution will use a custom origin (non Amazon S3), then you use the CustomOrigin element.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

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

    - #### getCNAME

          public java.util.List<java.lang.String> getCNAME()

      A CNAME alias you want to associate with this distribution. You can have up to 10 CNAME aliases per distribution. Only include a CNAME element if you have a CNAME to associate with the distribution. Don't include an empty CNAME element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.
      戻り値:
        A CNAME alias you want to associate with this distribution. You can have up to 10 CNAME aliases per distribution. Only include a CNAME element if you have a CNAME to associate with the distribution. Don't include an empty CNAME element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.

    - #### setCNAME

          public void setCNAME(java.util.Collection<java.lang.String> cNAME)

      A CNAME alias you want to associate with this distribution. You can have up to 10 CNAME aliases per distribution. Only include a CNAME element if you have a CNAME to associate with the distribution. Don't include an empty CNAME element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.
      パラメータ:
        `cNAME` - A CNAME alias you want to associate with this distribution. You can have up to 10 CNAME aliases per distribution. Only include a CNAME element if you have a CNAME to associate with the distribution. Don't include an empty CNAME element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.

    - #### withCNAME

          public DistributionConfig withCNAME(java.lang.String... cNAME)

      A CNAME alias you want to associate with this distribution. You can have up to 10 CNAME aliases per distribution. Only include a CNAME element if you have a CNAME to associate with the distribution. Don't include an empty CNAME element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.

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

      パラメータ:
        `cNAME` - A CNAME alias you want to associate with this distribution. You can have up to 10 CNAME aliases per distribution. Only include a CNAME element if you have a CNAME to associate with the distribution. Don't include an empty CNAME element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### withCNAME

          public DistributionConfig withCNAME(java.util.Collection<java.lang.String> cNAME)

      A CNAME alias you want to associate with this distribution. You can have up to 10 CNAME aliases per distribution. Only include a CNAME element if you have a CNAME to associate with the distribution. Don't include an empty CNAME element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.

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

      パラメータ:
        `cNAME` - A CNAME alias you want to associate with this distribution. You can have up to 10 CNAME aliases per distribution. Only include a CNAME element if you have a CNAME to associate with the distribution. Don't include an empty CNAME element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

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

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

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

    - #### getLogging

          public LoggingConfig getLogging()

      A complex type that controls whether access logs are written for the distribution. If you want to turn on access logs, include this element; if you want to turn off access logs, remove this element.
      戻り値:
        A complex type that controls whether access logs are written for the distribution. If you want to turn on access logs, include this element; if you want to turn off access logs, remove this element.

    - #### setLogging

          public void setLogging(LoggingConfig logging)

      A complex type that controls whether access logs are written for the distribution. If you want to turn on access logs, include this element; if you want to turn off access logs, remove this element.
      パラメータ:
        `logging` - A complex type that controls whether access logs are written for the distribution. If you want to turn on access logs, include this element; if you want to turn off access logs, remove this element.

    - #### withLogging

          public DistributionConfig withLogging(LoggingConfig logging)

      A complex type that controls whether access logs are written for the distribution. If you want to turn on access logs, include this element; if you want to turn off access logs, remove this element.

      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. If you want to turn on access logs, include this element; if you want to turn off access logs, remove this element.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getTrustedSigners

          public TrustedSigners getTrustedSigners()

      A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use basic URLs, remove this element.
      戻り値:
        A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use basic URLs, remove this element.

    - #### setTrustedSigners

          public void setTrustedSigners(TrustedSigners trustedSigners)

      A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use basic URLs, remove this element.
      パラメータ:
        `trustedSigners` - A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use basic URLs, remove this element.

    - #### withTrustedSigners

          public DistributionConfig withTrustedSigners(TrustedSigners trustedSigners)

      A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use basic URLs, remove this element.

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

      パラメータ:
        `trustedSigners` - A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use basic URLs, remove this element.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getRequiredProtocols

          public RequiredProtocols getRequiredProtocols()

      Defines the protocols required for your distribution. Use this element to restrict access to your distribution solely to HTTPS requests. Without this element, CloudFront can use any available protocol to serve the request.
      戻り値:
        Defines the protocols required for your distribution. Use this element to restrict access to your distribution solely to HTTPS requests. Without this element, CloudFront can use any available protocol to serve the request.

    - #### setRequiredProtocols

          public void setRequiredProtocols(RequiredProtocols requiredProtocols)

      Defines the protocols required for your distribution. Use this element to restrict access to your distribution solely to HTTPS requests. Without this element, CloudFront can use any available protocol to serve the request.
      パラメータ:
        `requiredProtocols` - Defines the protocols required for your distribution. Use this element to restrict access to your distribution solely to HTTPS requests. Without this element, CloudFront can use any available protocol to serve the request.

    - #### withRequiredProtocols

          public DistributionConfig withRequiredProtocols(RequiredProtocols requiredProtocols)

      Defines the protocols required for your distribution. Use this element to restrict access to your distribution solely to HTTPS requests. Without this element, CloudFront can use any available protocol to serve the request.

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

      パラメータ:
        `requiredProtocols` - Defines the protocols required for your distribution. Use this element to restrict access to your distribution solely to HTTPS requests. Without this element, CloudFront can use any available protocol to serve the request.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getDefaultRootObject

          public java.lang.String getDefaultRootObject()

      Designates a default root object. Only include a DefaultRootObject element if you are going to assign a default root object for the distribution. Don't include an empty DefaultRootObject element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.
      戻り値:
        Designates a default root object. Only include a DefaultRootObject element if you are going to assign a default root object for the distribution. Don't include an empty DefaultRootObject element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.

    - #### setDefaultRootObject

          public void setDefaultRootObject(java.lang.String defaultRootObject)

      Designates a default root object. Only include a DefaultRootObject element if you are going to assign a default root object for the distribution. Don't include an empty DefaultRootObject element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.
      パラメータ:
        `defaultRootObject` - Designates a default root object. Only include a DefaultRootObject element if you are going to assign a default root object for the distribution. Don't include an empty DefaultRootObject element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.

    - #### withDefaultRootObject

          public DistributionConfig withDefaultRootObject(java.lang.String defaultRootObject)

      Designates a default root object. Only include a DefaultRootObject element if you are going to assign a default root object for the distribution. Don't include an empty DefaultRootObject element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.

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

      パラメータ:
        `defaultRootObject` - Designates a default root object. Only include a DefaultRootObject element if you are going to assign a default root object for the distribution. Don't include an empty DefaultRootObject element in the DistributionConfig object. If you do, CloudFront returns a MalformedXML error.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getCachingBehavior

          public CachingBehavior getCachingBehavior()

      Determines the minimum TTL for objects in the CloudFront cache. This value specifies a lower bound for values in the headers for an object, for example, in the Cache-Control max-age directive.
      戻り値:
        Determines the minimum TTL for objects in the CloudFront cache. This value specifies a lower bound for values in the headers for an object, for example, in the Cache-Control max-age directive.

    - #### setCachingBehavior

          public void setCachingBehavior(CachingBehavior cachingBehavior)

      Determines the minimum TTL for objects in the CloudFront cache. This value specifies a lower bound for values in the headers for an object, for example, in the Cache-Control max-age directive.
      パラメータ:
        `cachingBehavior` - Determines the minimum TTL for objects in the CloudFront cache. This value specifies a lower bound for values in the headers for an object, for example, in the Cache-Control max-age directive.

    - #### withCachingBehavior

          public DistributionConfig withCachingBehavior(CachingBehavior cachingBehavior)

      Determines the minimum TTL for objects in the CloudFront cache. This value specifies a lower bound for values in the headers for an object, for example, in the Cache-Control max-age directive.

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

      パラメータ:
        `cachingBehavior` - Determines the minimum TTL for objects in the CloudFront cache. This value specifies a lower bound for values in the headers for an object, for example, in the Cache-Control max-age directive.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### 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`