Class CfnChannel.CloudWatchLogsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesis.CfnChannel.CloudWatchLogsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.CloudWatchLogsConfigurationProperty>
- Enclosing interface:
CfnChannel.CloudWatchLogsConfigurationProperty
@Stability(Stable)
public static final class CfnChannel.CloudWatchLogsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.CloudWatchLogsConfigurationProperty>
A builder for
CfnChannel.CloudWatchLogsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnChannel.CloudWatchLogsConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnChannel.CloudWatchLogsConfigurationProperty.getEnabled()logGroupName(String logGroupName) Sets the value ofCfnChannel.CloudWatchLogsConfigurationProperty.getLogGroupName()logStreamName(String logStreamName) Sets the value ofCfnChannel.CloudWatchLogsConfigurationProperty.getLogStreamName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnChannel.CloudWatchLogsConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnChannel.CloudWatchLogsConfigurationProperty.getEnabled()- Parameters:
enabled- Whether CloudWatch Logs delivery is enabled. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnChannel.CloudWatchLogsConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnChannel.CloudWatchLogsConfigurationProperty.getEnabled()- Parameters:
enabled- Whether CloudWatch Logs delivery is enabled. This parameter is required.- Returns:
this
-
logGroupName
@Stability(Stable) public CfnChannel.CloudWatchLogsConfigurationProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnChannel.CloudWatchLogsConfigurationProperty.getLogGroupName()- Parameters:
logGroupName- The CloudWatch log group name. When Enabled is true and LogGroupName is omitted, the service uses the default '/aws/kinesis// '. - Returns:
this
-
logStreamName
@Stability(Stable) public CfnChannel.CloudWatchLogsConfigurationProperty.Builder logStreamName(String logStreamName) Sets the value ofCfnChannel.CloudWatchLogsConfigurationProperty.getLogStreamName()- Parameters:
logStreamName- The CloudWatch log stream name. Defaults to the literal string 'DestinationDelivery' when omitted.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.CloudWatchLogsConfigurationProperty>- Returns:
- a new instance of
CfnChannel.CloudWatchLogsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-