Class CfnBucketPropsMixin.LoggingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.LoggingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.LoggingConfigurationProperty>
- Enclosing interface:
CfnBucketPropsMixin.LoggingConfigurationProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.LoggingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.LoggingConfigurationProperty>
A builder for
CfnBucketPropsMixin.LoggingConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationBucketName(String destinationBucketName) destinationBucketName(IBucketRef destinationBucketName) logFilePrefix(String logFilePrefix) Sets the value ofCfnBucketPropsMixin.LoggingConfigurationProperty.getLogFilePrefix()targetObjectKeyFormat(CfnBucketPropsMixin.TargetObjectKeyFormatProperty targetObjectKeyFormat) targetObjectKeyFormat(IResolvable targetObjectKeyFormat)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationBucketName
@Stability(Stable) public CfnBucketPropsMixin.LoggingConfigurationProperty.Builder destinationBucketName(String destinationBucketName) - Parameters:
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 theLoggingConfigurationproperty is defined.- Returns:
this
-
destinationBucketName
@Stability(Stable) public CfnBucketPropsMixin.LoggingConfigurationProperty.Builder destinationBucketName(IBucketRef destinationBucketName) - Parameters:
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 theLoggingConfigurationproperty is defined.- Returns:
this
-
logFilePrefix
@Stability(Stable) public CfnBucketPropsMixin.LoggingConfigurationProperty.Builder logFilePrefix(String logFilePrefix) Sets the value ofCfnBucketPropsMixin.LoggingConfigurationProperty.getLogFilePrefix()- Parameters:
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.- Returns:
this
-
targetObjectKeyFormat
@Stability(Stable) public CfnBucketPropsMixin.LoggingConfigurationProperty.Builder targetObjectKeyFormat(IResolvable targetObjectKeyFormat) - Parameters:
targetObjectKeyFormat- Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed.- Returns:
this
-
targetObjectKeyFormat
@Stability(Stable) public CfnBucketPropsMixin.LoggingConfigurationProperty.Builder targetObjectKeyFormat(CfnBucketPropsMixin.TargetObjectKeyFormatProperty targetObjectKeyFormat) - Parameters:
targetObjectKeyFormat- Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.LoggingConfigurationProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.LoggingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-