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