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