Class CfnWorkGroup.S3LoggingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnWorkGroup.S3LoggingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkGroup.S3LoggingConfigurationProperty>
- Enclosing interface:
CfnWorkGroup.S3LoggingConfigurationProperty
@Stability(Stable)
public static final class CfnWorkGroup.S3LoggingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkGroup.S3LoggingConfigurationProperty>
A builder for
CfnWorkGroup.S3LoggingConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWorkGroup.S3LoggingConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnWorkGroup.S3LoggingConfigurationProperty.getEnabled()Sets the value ofCfnWorkGroup.S3LoggingConfigurationProperty.getKmsKey()logLocation(String logLocation) Sets the value ofCfnWorkGroup.S3LoggingConfigurationProperty.getLogLocation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnWorkGroup.S3LoggingConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnWorkGroup.S3LoggingConfigurationProperty.getEnabled()- Parameters:
enabled- Enables S3 log delivery.- Returns:
this
-
enabled
@Stability(Stable) public CfnWorkGroup.S3LoggingConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnWorkGroup.S3LoggingConfigurationProperty.getEnabled()- Parameters:
enabled- Enables S3 log delivery.- Returns:
this
-
kmsKey
Sets the value ofCfnWorkGroup.S3LoggingConfigurationProperty.getKmsKey()- Parameters:
kmsKey- The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.- Returns:
this
-
logLocation
@Stability(Stable) public CfnWorkGroup.S3LoggingConfigurationProperty.Builder logLocation(String logLocation) Sets the value ofCfnWorkGroup.S3LoggingConfigurationProperty.getLogLocation()- Parameters:
logLocation- The Amazon S3 destination URI for log publishing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkGroup.S3LoggingConfigurationProperty>- Returns:
- a new instance of
CfnWorkGroup.S3LoggingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-