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