Class CfnBotVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBotVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotVersionProps>
- Enclosing interface:
CfnBotVersionProps
@Stability(Stable)
public static final class CfnBotVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotVersionProps>
A builder for
CfnBotVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnBotVersionProps.getBotId()
botVersionLocaleSpecification
(List<? extends Object> botVersionLocaleSpecification) Sets the value ofCfnBotVersionProps.getBotVersionLocaleSpecification()
botVersionLocaleSpecification
(IResolvable botVersionLocaleSpecification) Sets the value ofCfnBotVersionProps.getBotVersionLocaleSpecification()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnBotVersionProps.getDescription()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
botId
Sets the value ofCfnBotVersionProps.getBotId()
- Parameters:
botId
- The unique identifier of the bot. This parameter is required.- Returns:
this
-
botVersionLocaleSpecification
@Stability(Stable) public CfnBotVersionProps.Builder botVersionLocaleSpecification(IResolvable botVersionLocaleSpecification) Sets the value ofCfnBotVersionProps.getBotVersionLocaleSpecification()
- Parameters:
botVersionLocaleSpecification
- Specifies the locales that Amazon Lex adds to this version. This parameter is required. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.- Returns:
this
-
botVersionLocaleSpecification
@Stability(Stable) public CfnBotVersionProps.Builder botVersionLocaleSpecification(List<? extends Object> botVersionLocaleSpecification) Sets the value ofCfnBotVersionProps.getBotVersionLocaleSpecification()
- Parameters:
botVersionLocaleSpecification
- Specifies the locales that Amazon Lex adds to this version. This parameter is required. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.- Returns:
this
-
description
Sets the value ofCfnBotVersionProps.getDescription()
- Parameters:
description
- The description of the version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBotVersionProps>
- Returns:
- a new instance of
CfnBotVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-