Class CfnBot.GrammarSlotTypeSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.GrammarSlotTypeSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.GrammarSlotTypeSourceProperty>
- Enclosing interface:
CfnBot.GrammarSlotTypeSourceProperty
@Stability(Stable)
public static final class CfnBot.GrammarSlotTypeSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.GrammarSlotTypeSourceProperty>
A builder for
CfnBot.GrammarSlotTypeSourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBot.GrammarSlotTypeSourceProperty.getKmsKeyArn()
s3BucketName
(String s3BucketName) Sets the value ofCfnBot.GrammarSlotTypeSourceProperty.getS3BucketName()
s3ObjectKey
(String s3ObjectKey) Sets the value ofCfnBot.GrammarSlotTypeSourceProperty.getS3ObjectKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
s3BucketName
@Stability(Stable) public CfnBot.GrammarSlotTypeSourceProperty.Builder s3BucketName(String s3BucketName) Sets the value ofCfnBot.GrammarSlotTypeSourceProperty.getS3BucketName()
- Parameters:
s3BucketName
- The name of the Amazon S3 bucket that contains the grammar source. This parameter is required.- Returns:
this
-
s3ObjectKey
@Stability(Stable) public CfnBot.GrammarSlotTypeSourceProperty.Builder s3ObjectKey(String s3ObjectKey) Sets the value ofCfnBot.GrammarSlotTypeSourceProperty.getS3ObjectKey()
- Parameters:
s3ObjectKey
- The path to the grammar in the Amazon S3 bucket. This parameter is required.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnBot.GrammarSlotTypeSourceProperty.getKmsKeyArn()
- Parameters:
kmsKeyArn
- The AWS KMS key required to decrypt the contents of the grammar, if any.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.GrammarSlotTypeSourceProperty>
- Returns:
- a new instance of
CfnBot.GrammarSlotTypeSourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-