com.amazonaws.services.s3.model

## クラス SetBucketLoggingConfigurationRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.s3.model.SetBucketLoggingConfigurationRequest

-     public class SetBucketLoggingConfigurationRequest
      extends AmazonWebServiceRequest

  Contains options for setting the logging configuration for a bucket. The bucket logging configuration object controls whether or not server access logging is enabled for the specified bucket. If server access logging is enabled, this object provides options for specifying where the server access logs are delivered and the optional log file prefix.

  In order to deliver server access logs, the destination bucket must have log delivery write permissions. Use the `CannedAccessControlList.LogDeliveryWrite` ACL to quickly add the correct permissions to the destination bucket. Alternatively, modify the bucket's existing ACL to grant the `GroupGrantee.LogDelivery` group grantee the `Permission.Write` permission.

  Changes to the logging status for a bucket are visible in the configuration API immediately, but take time to actually affect the delivery of log files. For example, when enabling logging for a bucket, some requests made in the following hour might be logged while others might not. For another example, when changing the target bucket for logging from bucket 'A' to bucket 'B', some logs for the next hour might continue to be delivered to bucket 'A.' Others might be delivered to the new target bucket 'B.' In all cases, the new settings will eventually take effect without any further action from the user.

  関連項目:
    `SetBucketLoggingConfigurationRequest(String, BucketLoggingConfiguration)`

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

    コンストラクタ
    コンストラクタと説明
    `SetBucketLoggingConfigurationRequest(java.lang.String bucketName, BucketLoggingConfiguration loggingConfiguration)` Constructs a new `SetBucketLoggingConfigurationRequest` to set the bucket logging configuration of the specified bucket.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getBucketName()` Gets the name of the bucket whose logging configuration is being set.
    `BucketLoggingConfiguration` | `getLoggingConfiguration()` Gets the logging configuration for the specified bucket.
    `void` | `setBucketName(java.lang.String bucketName)` Sets the name of the bucket whose logging configuration is being set.
    `void` | `setLoggingConfiguration(BucketLoggingConfiguration loggingConfiguration)` Sets the logging configuration for the specified bucket.
    `SetBucketLoggingConfigurationRequest` | `withBucketName(java.lang.String bucketName)` Sets the name of the bucket whose logging configuration is being set and returns this object, enabling additional method calls to be chained together.
    `SetBucketLoggingConfigurationRequest` | `withLoggingConfiguration(BucketLoggingConfiguration loggingConfiguration)` Sets the logging configuration for the specified bucket and returns the updated object, enabling additional method calls to be chained together.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### SetBucketLoggingConfigurationRequest

          public SetBucketLoggingConfigurationRequest(java.lang.String bucketName,
                                              BucketLoggingConfiguration loggingConfiguration)

      Constructs a new `SetBucketLoggingConfigurationRequest` to set the bucket logging configuration of the specified bucket.
      パラメータ:
        `bucketName` - The name of the bucket whose logging configuration is being set.
        `loggingConfiguration` - The new logging configuration for the specified bucket.

  - ### メソッドの詳細

    - #### getBucketName

          public java.lang.String getBucketName()

      Gets the name of the bucket whose logging configuration is being set.
      戻り値:
        The name of the bucket whose logging configuration is being set.
      関連項目:
        `setBucketName(String)`, `withLoggingConfiguration(BucketLoggingConfiguration)`

    - #### setBucketName

          public void setBucketName(java.lang.String bucketName)

      Sets the name of the bucket whose logging configuration is being set.
      パラメータ:
        `bucketName` - The name of the bucket whose logging configuration is being set.
      関連項目:
        `getBucketName()`, `withBucketName(String)`

    - #### withBucketName

          public SetBucketLoggingConfigurationRequest withBucketName(java.lang.String bucketName)

      Sets the name of the bucket whose logging configuration is being set and returns this object, enabling additional method calls to be chained together.
      パラメータ:
        `bucketName` - The name of the bucket whose logging configuration is being set.
      戻り値:
        This `SetBucketLoggingConfigurationRequest` object, enabling additional method calls may to be chained together.
      関連項目:
        `getBucketName()`, `setBucketName(String)`

    - #### getLoggingConfiguration

          public BucketLoggingConfiguration getLoggingConfiguration()

      Gets the logging configuration for the specified bucket.
      戻り値:
        The logging configuration for the specified bucket.
      関連項目:
        `setLoggingConfiguration(BucketLoggingConfiguration)`, `withLoggingConfiguration(BucketLoggingConfiguration)`

    - #### setLoggingConfiguration

          public void setLoggingConfiguration(BucketLoggingConfiguration loggingConfiguration)

      Sets the logging configuration for the specified bucket.
      パラメータ:
        `loggingConfiguration` - The logging configuration for the specified bucket.
      関連項目:
        `getLoggingConfiguration()`, `withLoggingConfiguration(BucketLoggingConfiguration)`

    - #### withLoggingConfiguration

          public SetBucketLoggingConfigurationRequest withLoggingConfiguration(BucketLoggingConfiguration loggingConfiguration)

      Sets the logging configuration for the specified bucket and returns the updated object, enabling additional method calls to be chained together.
      パラメータ:
        `loggingConfiguration` - The logging configuration for the specified bucket.
      戻り値:
        This `SetBucketLoggingConfigurationRequest` object, enabling additional method calls to be chained together.
      関連項目:
        `getLoggingConfiguration()`, `setLoggingConfiguration(BucketLoggingConfiguration)`