Class CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkGroup.CloudWatchLoggingConfigurationProperty>
- Enclosing interface:
CfnWorkGroup.CloudWatchLoggingConfigurationProperty
@Stability(Stable)
public static final class CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkGroup.CloudWatchLoggingConfigurationProperty>
A builder for
CfnWorkGroup.CloudWatchLoggingConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getEnabled()Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getLogGroup()logStreamNamePrefix(String logStreamNamePrefix) Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getLogTypes()logTypes(IResolvable logTypes) Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getLogTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getEnabled()- Parameters:
enabled- Enables CloudWatch logging.- Returns:
this
-
enabled
@Stability(Stable) public CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getEnabled()- Parameters:
enabled- Enables CloudWatch logging.- Returns:
this
-
logGroup
@Stability(Stable) public CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder logGroup(String logGroup) Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getLogGroup()- Parameters:
logGroup- The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.- Returns:
this
-
logStreamNamePrefix
@Stability(Stable) public CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder logStreamNamePrefix(String logStreamNamePrefix) - Parameters:
logStreamNamePrefix- Prefix for the CloudWatch log stream name.- Returns:
this
-
logTypes
@Stability(Stable) public CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder logTypes(IResolvable logTypes) Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getLogTypes()- Parameters:
logTypes- The types of logs that you want to publish to CloudWatch.- Returns:
this
-
logTypes
@Stability(Stable) public CfnWorkGroup.CloudWatchLoggingConfigurationProperty.Builder logTypes(Map<String, ? extends List<String>> logTypes) Sets the value ofCfnWorkGroup.CloudWatchLoggingConfigurationProperty.getLogTypes()- Parameters:
logTypes- The types of logs that you want to publish to CloudWatch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkGroup.CloudWatchLoggingConfigurationProperty>- Returns:
- a new instance of
CfnWorkGroup.CloudWatchLoggingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-