Class CfnDeliveryStream.CloudWatchLoggingOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.CloudWatchLoggingOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStream.CloudWatchLoggingOptionsProperty>
- Enclosing interface:
CfnDeliveryStream.CloudWatchLoggingOptionsProperty
@Stability(Stable)
public static final class CfnDeliveryStream.CloudWatchLoggingOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStream.CloudWatchLoggingOptionsProperty>
A builder for
CfnDeliveryStream.CloudWatchLoggingOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDeliveryStream.CloudWatchLoggingOptionsProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnDeliveryStream.CloudWatchLoggingOptionsProperty.getEnabled()
logGroupName
(String logGroupName) Sets the value ofCfnDeliveryStream.CloudWatchLoggingOptionsProperty.getLogGroupName()
logStreamName
(String logStreamName) Sets the value ofCfnDeliveryStream.CloudWatchLoggingOptionsProperty.getLogStreamName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnDeliveryStream.CloudWatchLoggingOptionsProperty.Builder enabled(Boolean enabled) Sets the value ofCfnDeliveryStream.CloudWatchLoggingOptionsProperty.getEnabled()
- Parameters:
enabled
- Indicates whether CloudWatch Logs logging is enabled.- Returns:
this
-
enabled
@Stability(Stable) public CfnDeliveryStream.CloudWatchLoggingOptionsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDeliveryStream.CloudWatchLoggingOptionsProperty.getEnabled()
- Parameters:
enabled
- Indicates whether CloudWatch Logs logging is enabled.- Returns:
this
-
logGroupName
@Stability(Stable) public CfnDeliveryStream.CloudWatchLoggingOptionsProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnDeliveryStream.CloudWatchLoggingOptionsProperty.getLogGroupName()
- Parameters:
logGroupName
- The name of the CloudWatch Logs log group that contains the log stream that Kinesis Data Firehose will use. Conditional. If you enable logging, you must specify this property.- Returns:
this
-
logStreamName
@Stability(Stable) public CfnDeliveryStream.CloudWatchLoggingOptionsProperty.Builder logStreamName(String logStreamName) Sets the value ofCfnDeliveryStream.CloudWatchLoggingOptionsProperty.getLogStreamName()
- Parameters:
logStreamName
- The name of the CloudWatch Logs log stream that Kinesis Data Firehose uses to send logs about data delivery. Conditional. If you enable logging, you must specify this property.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryStream.CloudWatchLoggingOptionsProperty>
- Returns:
- a new instance of
CfnDeliveryStream.CloudWatchLoggingOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-