public static final class CfnBucket.LoggingConfigurationProperty.Builder
extends java.lang.Object
CfnBucket.LoggingConfigurationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnBucket.LoggingConfigurationProperty |
build()
Builds the configured instance.
|
CfnBucket.LoggingConfigurationProperty.Builder |
destinationBucketName(java.lang.String destinationBucketName)
Sets the value of
CfnBucket.LoggingConfigurationProperty.getDestinationBucketName() |
CfnBucket.LoggingConfigurationProperty.Builder |
logFilePrefix(java.lang.String logFilePrefix)
Sets the value of
CfnBucket.LoggingConfigurationProperty.getLogFilePrefix() |
public CfnBucket.LoggingConfigurationProperty.Builder destinationBucketName(java.lang.String destinationBucketName)
CfnBucket.LoggingConfigurationProperty.getDestinationBucketName()
destinationBucketName
- The name of the bucket where Amazon S3 should store server access log files.
You can store log files in any bucket that you own. By default, logs are stored in the bucket where the LoggingConfiguration
property is defined.this
public CfnBucket.LoggingConfigurationProperty.Builder logFilePrefix(java.lang.String logFilePrefix)
CfnBucket.LoggingConfigurationProperty.getLogFilePrefix()
logFilePrefix
- A prefix for all log object keys.
If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.this
public CfnBucket.LoggingConfigurationProperty build()
CfnBucket.LoggingConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided