Class CfnSessionLogger.S3LogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesweb.CfnSessionLogger.S3LogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSessionLogger.S3LogConfigurationProperty>
- Enclosing interface:
CfnSessionLogger.S3LogConfigurationProperty
@Stability(Stable)
public static final class CfnSessionLogger.S3LogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSessionLogger.S3LogConfigurationProperty>
A builder for
CfnSessionLogger.S3LogConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnSessionLogger.S3LogConfigurationProperty.getBucket()bucketOwner(String bucketOwner) Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getBucketOwner()build()Builds the configured instance.folderStructure(String folderStructure) Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getFolderStructure()Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getKeyPrefix()logFileFormat(String logFileFormat) Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getLogFileFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getBucket()- Parameters:
bucket- The S3 bucket name where logs are delivered. This parameter is required.- Returns:
this
-
folderStructure
@Stability(Stable) public CfnSessionLogger.S3LogConfigurationProperty.Builder folderStructure(String folderStructure) Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getFolderStructure()- Parameters:
folderStructure- The folder structure that defines the organizational structure for log files in S3. This parameter is required.- Returns:
this
-
logFileFormat
@Stability(Stable) public CfnSessionLogger.S3LogConfigurationProperty.Builder logFileFormat(String logFileFormat) Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getLogFileFormat()- Parameters:
logFileFormat- The format of the LogFile that is written to S3. This parameter is required.- Returns:
this
-
bucketOwner
@Stability(Stable) public CfnSessionLogger.S3LogConfigurationProperty.Builder bucketOwner(String bucketOwner) Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getBucketOwner()- Parameters:
bucketOwner- The expected bucket owner of the target S3 bucket. The caller must have permissions to write to the target bucket.- Returns:
this
-
keyPrefix
@Stability(Stable) public CfnSessionLogger.S3LogConfigurationProperty.Builder keyPrefix(String keyPrefix) Sets the value ofCfnSessionLogger.S3LogConfigurationProperty.getKeyPrefix()- Parameters:
keyPrefix- The S3 path prefix that determines where log files are stored.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSessionLogger.S3LogConfigurationProperty>- Returns:
- a new instance of
CfnSessionLogger.S3LogConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-