com.amazonaws.services.s3.model

## クラス BucketLoggingConfiguration

- java.lang.Object
- - com.amazonaws.services.s3.model.BucketLoggingConfiguration

-     public class BucketLoggingConfiguration
      extends java.lang.Object

  Represents bucket logging configuration used to control bucket-based server access logging in Amazon S3.

  For logging to be enabled for a bucket both the `destinationBucketName` and `logfilePrefix` must not be `null`, and the named bucket must exist. When both variables are not `null`, this object represents an enabled logging configuration (as indicated by `isLoggingEnabled()`).

  If either the `targetBucketName` or `logfilePrefix` are `null`, this object represents a disabled logging configuration (as indicated by `isLoggingEnabled()`).

  Server access logging can be enabled or disabled with `AmazonS3Client.setBucketLoggingConfiguration(SetBucketLoggingConfigurationRequest)` and the current status of server access logging for a bucket can be retrieved through `AmazonS3Client.getBucketLoggingConfiguration(String)`

  関連項目:
    `AmazonS3.getBucketLoggingConfiguration(String)`, `AmazonS3.setBucketLoggingConfiguration(SetBucketLoggingConfigurationRequest)`

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

    コンストラクタ
    コンストラクタと説明
    `BucketLoggingConfiguration()` Creates a new bucket logging configuration, which by default is disabled.
    `BucketLoggingConfiguration(java.lang.String destinationBucketName, java.lang.String logFilePrefix)` Creates a new bucket logging configuration which enables server access logs to be collected and stored in the specified destination bucket with the specified log file prefix.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getDestinationBucketName()` Returns the destination bucket name for this logging configuration.
    `java.lang.String` | `getLogFilePrefix()` Returns the optional log file prefix.
    `boolean` | `isLoggingEnabled()` Returns true if logging is enabled.
    `void` | `setDestinationBucketName(java.lang.String destinationBucketName)` Sets the destination bucket name for this logging configuration.
    `void` | `setLogFilePrefix(java.lang.String logFilePrefix)` Sets the log file prefix for this bucket logging configuration.
    `java.lang.String` | `toString()`

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

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

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

    - #### BucketLoggingConfiguration

          public BucketLoggingConfiguration()

      Creates a new bucket logging configuration, which by default is disabled.

      Passing this new object directly to `AmazonS3.setBucketLoggingConfiguration(SetBucketLoggingConfigurationRequest)` will turn off bucket logging for the specified bucket.

    - #### BucketLoggingConfiguration

          public BucketLoggingConfiguration(java.lang.String destinationBucketName,
                                    java.lang.String logFilePrefix)

      Creates a new bucket logging configuration which enables server access logs to be collected and stored in the specified destination bucket with the specified log file prefix.
      パラメータ:
        `destinationBucketName` - The name of the bucket to which to delivery server access logs from the target bucket. This may be the same bucket for which logging is being configured.
        `logFilePrefix` - The optional prefix to append to server access logs when they are written to the destination bucket.

  - ### メソッドの詳細

    - #### isLoggingEnabled

          public boolean isLoggingEnabled()

      Returns true if logging is enabled.
      戻り値:
        True if logging is enabled.

    - #### getLogFilePrefix

          public java.lang.String getLogFilePrefix()

      Returns the optional log file prefix.
      戻り値:
        The optional log file prefix.

    - #### setLogFilePrefix

          public void setLogFilePrefix(java.lang.String logFilePrefix)

      Sets the log file prefix for this bucket logging configuration.
      パラメータ:
        `logFilePrefix` - The log file prefix for this logging configuration.

    - #### getDestinationBucketName

          public java.lang.String getDestinationBucketName()

      Returns the destination bucket name for this logging configuration.
      戻り値:
        The destination bucket name for this logging configuration.

    - #### setDestinationBucketName

          public void setDestinationBucketName(java.lang.String destinationBucketName)

      Sets the destination bucket name for this logging configuration.
      パラメータ:
        `destinationBucketName` - The destination bucket name for this logging configuration.

    - #### toString

          public java.lang.String toString()

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