com.amazonaws.services.cloudfront.model

## クラス LoggingConfig

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

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

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

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

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

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

    コンストラクタ
    コンストラクタと説明
    `LoggingConfig()` Default constructor for a new LoggingConfig object.
    `LoggingConfig(java.lang.String bucket, java.lang.String prefix)` Constructs a new LoggingConfig object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getBucket()` The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
    `java.lang.Boolean` | `getEnabled()` Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
    `java.lang.Boolean` | `getIncludeCookies()` Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies.
    `java.lang.String` | `getPrefix()` An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isEnabled()` Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
    `java.lang.Boolean` | `isIncludeCookies()` Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies.
    `void` | `setBucket(java.lang.String bucket)` The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
    `void` | `setEnabled(java.lang.Boolean enabled)` Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
    `void` | `setIncludeCookies(java.lang.Boolean includeCookies)` Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies.
    `void` | `setPrefix(java.lang.String prefix)` An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `LoggingConfig` | `withBucket(java.lang.String bucket)` The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
    `LoggingConfig` | `withEnabled(java.lang.Boolean enabled)` Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
    `LoggingConfig` | `withIncludeCookies(java.lang.Boolean includeCookies)` Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies.
    `LoggingConfig` | `withPrefix(java.lang.String prefix)` An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/.

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

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

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

    - #### LoggingConfig

          public LoggingConfig()

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

    - #### LoggingConfig

          public LoggingConfig(java.lang.String bucket,
                       java.lang.String prefix)

      Constructs a new LoggingConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `bucket` - The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
        `prefix` - An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

  - ### メソッドの詳細

    - #### isEnabled

          public java.lang.Boolean isEnabled()

      Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.
      戻り値:
        Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.

    - #### setEnabled

          public void setEnabled(java.lang.Boolean enabled)

      Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.
      パラメータ:
        `enabled` - Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.

    - #### withEnabled

          public LoggingConfig withEnabled(java.lang.Boolean enabled)

      Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.

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

      パラメータ:
        `enabled` - Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.

    - #### getEnabled

          public java.lang.Boolean getEnabled()

      Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.
      戻り値:
        Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.

    - #### isIncludeCookies

          public java.lang.Boolean isIncludeCookies()

      Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.
      戻り値:
        Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

    - #### setIncludeCookies

          public void setIncludeCookies(java.lang.Boolean includeCookies)

      Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.
      パラメータ:
        `includeCookies` - Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

    - #### withIncludeCookies

          public LoggingConfig withIncludeCookies(java.lang.Boolean includeCookies)

      Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

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

      パラメータ:
        `includeCookies` - Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

    - #### getIncludeCookies

          public java.lang.Boolean getIncludeCookies()

      Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.
      戻り値:
        Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.

    - #### getBucket

          public java.lang.String getBucket()

      The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
      戻り値:
        The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

    - #### setBucket

          public void setBucket(java.lang.String bucket)

      The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
      パラメータ:
        `bucket` - The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

    - #### withBucket

          public LoggingConfig withBucket(java.lang.String bucket)

      The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

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

      パラメータ:
        `bucket` - The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

    - #### getPrefix

          public java.lang.String getPrefix()

      An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.
      戻り値:
        An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

    - #### setPrefix

          public void setPrefix(java.lang.String prefix)

      An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.
      パラメータ:
        `prefix` - An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

    - #### withPrefix

          public LoggingConfig withPrefix(java.lang.String prefix)

      An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

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

      パラメータ:
        `prefix` - An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

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