Class CfnChannel.CloudWatchLogsLogDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnChannel.CloudWatchLogsLogDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.CloudWatchLogsLogDestinationProperty>
- Enclosing interface:
CfnChannel.CloudWatchLogsLogDestinationProperty
@Stability(Stable)
public static final class CfnChannel.CloudWatchLogsLogDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.CloudWatchLogsLogDestinationProperty>
A builder for
CfnChannel.CloudWatchLogsLogDestinationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnChannel.CloudWatchLogsLogDestinationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnChannel.CloudWatchLogsLogDestinationProperty.getEnabled()Sets the value ofCfnChannel.CloudWatchLogsLogDestinationProperty.getLogGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnChannel.CloudWatchLogsLogDestinationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnChannel.CloudWatchLogsLogDestinationProperty.getEnabled()- Parameters:
enabled- Whether CloudWatch Logs logging is enabled. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnChannel.CloudWatchLogsLogDestinationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnChannel.CloudWatchLogsLogDestinationProperty.getEnabled()- Parameters:
enabled- Whether CloudWatch Logs logging is enabled. This parameter is required.- Returns:
this
-
logGroup
@Stability(Stable) public CfnChannel.CloudWatchLogsLogDestinationProperty.Builder logGroup(String logGroup) Sets the value ofCfnChannel.CloudWatchLogsLogDestinationProperty.getLogGroup()- Parameters:
logGroup- The CloudWatch log group for log delivery.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.CloudWatchLogsLogDestinationProperty>- Returns:
- a new instance of
CfnChannel.CloudWatchLogsLogDestinationProperty - Throws:
NullPointerException- if any required attribute was not provided
-