Class CfnBot.CloudWatchLogGroupLogDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.CloudWatchLogGroupLogDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.CloudWatchLogGroupLogDestinationProperty>
- Enclosing interface:
CfnBot.CloudWatchLogGroupLogDestinationProperty
@Stability(Stable)
public static final class CfnBot.CloudWatchLogGroupLogDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.CloudWatchLogGroupLogDestinationProperty>
A builder for
CfnBot.CloudWatchLogGroupLogDestinationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchLogGroupArn
(String cloudWatchLogGroupArn) Sets the value ofCfnBot.CloudWatchLogGroupLogDestinationProperty.getLogPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogGroupArn
@Stability(Stable) public CfnBot.CloudWatchLogGroupLogDestinationProperty.Builder cloudWatchLogGroupArn(String cloudWatchLogGroupArn) - Parameters:
cloudWatchLogGroupArn
- The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered. This parameter is required.- Returns:
this
-
logPrefix
@Stability(Stable) public CfnBot.CloudWatchLogGroupLogDestinationProperty.Builder logPrefix(String logPrefix) Sets the value ofCfnBot.CloudWatchLogGroupLogDestinationProperty.getLogPrefix()
- Parameters:
logPrefix
- The prefix of the log stream name within the log group that you specified. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.CloudWatchLogGroupLogDestinationProperty>
- Returns:
- a new instance of
CfnBot.CloudWatchLogGroupLogDestinationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-