Class CfnCluster.CloudWatchLogsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnCluster.CloudWatchLogsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.CloudWatchLogsProperty>
- Enclosing interface:
CfnCluster.CloudWatchLogsProperty
@Stability(Stable)
public static final class CfnCluster.CloudWatchLogsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.CloudWatchLogsProperty>
A builder for
CfnCluster.CloudWatchLogsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCluster.CloudWatchLogsProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnCluster.CloudWatchLogsProperty.getEnabled()
Sets the value ofCfnCluster.CloudWatchLogsProperty.getLogGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnCluster.CloudWatchLogsProperty.getEnabled()
- Parameters:
enabled
- Specifies whether broker logs get sent to the specified CloudWatch Logs destination. This parameter is required.- Returns:
this
-
enabled
Sets the value ofCfnCluster.CloudWatchLogsProperty.getEnabled()
- Parameters:
enabled
- Specifies whether broker logs get sent to the specified CloudWatch Logs destination. This parameter is required.- Returns:
this
-
logGroup
Sets the value ofCfnCluster.CloudWatchLogsProperty.getLogGroup()
- Parameters:
logGroup
- The CloudWatch log group that is the destination for broker logs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.CloudWatchLogsProperty>
- Returns:
- a new instance of
CfnCluster.CloudWatchLogsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-