Interface CreateBotRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateBotRequest.Builder,
,CreateBotRequest> LexModelsV2Request.Builder
,SdkBuilder<CreateBotRequest.Builder,
,CreateBotRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateBotRequest
-
Method Summary
Modifier and TypeMethodDescriptionbotMembers
(Collection<BotMember> botMembers) The list of bot members in a network to be created.botMembers
(Consumer<BotMember.Builder>... botMembers) The list of bot members in a network to be created.botMembers
(BotMember... botMembers) The list of bot members in a network to be created.The name of the bot.A list of tags to add to the bot.The type of a bot to create.The type of a bot to create.default CreateBotRequest.Builder
dataPrivacy
(Consumer<DataPrivacy.Builder> dataPrivacy) Provides information on additional privacy protections Amazon Lex should use with the bot's data.dataPrivacy
(DataPrivacy dataPrivacy) Provides information on additional privacy protections Amazon Lex should use with the bot's data.description
(String description) A description of the bot.idleSessionTTLInSeconds
(Integer idleSessionTTLInSeconds) The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of an IAM role that has permission to access the bot.testBotAliasTags
(Map<String, String> testBotAliasTags) A list of tags to add to the test alias for a bot.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
botName
The name of the bot. The bot name must be unique in the account that creates the bot.
- Parameters:
botName
- The name of the bot. The bot name must be unique in the account that creates the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the bot. It appears in lists to help you identify a particular bot.
- Parameters:
description
- A description of the bot. It appears in lists to help you identify a particular bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of an IAM role that has permission to access the bot.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of an IAM role that has permission to access the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataPrivacy
Provides information on additional privacy protections Amazon Lex should use with the bot's data.
- Parameters:
dataPrivacy
- Provides information on additional privacy protections Amazon Lex should use with the bot's data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataPrivacy
Provides information on additional privacy protections Amazon Lex should use with the bot's data.
This is a convenience method that creates an instance of theDataPrivacy.Builder
avoiding the need to create one manually viaDataPrivacy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataPrivacy(DataPrivacy)
.- Parameters:
dataPrivacy
- a consumer that will call methods onDataPrivacy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
idleSessionTTLInSeconds
The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.
You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
- Parameters:
idleSessionTTLInSeconds
- The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.
You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botTags
A list of tags to add to the bot. You can only add tags when you create a bot. You can't use the
UpdateBot
operation to update tags. To update tags, use theTagResource
operation.- Parameters:
botTags
- A list of tags to add to the bot. You can only add tags when you create a bot. You can't use theUpdateBot
operation to update tags. To update tags, use theTagResource
operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testBotAliasTags
A list of tags to add to the test alias for a bot. You can only add tags when you create a bot. You can't use the
UpdateAlias
operation to update tags. To update tags on the test alias, use theTagResource
operation.- Parameters:
testBotAliasTags
- A list of tags to add to the test alias for a bot. You can only add tags when you create a bot. You can't use theUpdateAlias
operation to update tags. To update tags on the test alias, use theTagResource
operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botType
The type of a bot to create.
- Parameters:
botType
- The type of a bot to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
botType
The type of a bot to create.
- Parameters:
botType
- The type of a bot to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
botMembers
The list of bot members in a network to be created.
- Parameters:
botMembers
- The list of bot members in a network to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botMembers
The list of bot members in a network to be created.
- Parameters:
botMembers
- The list of bot members in a network to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botMembers
The list of bot members in a network to be created.
This is a convenience method that creates an instance of theBotMember.Builder
avoiding the need to create one manually viaBotMember.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobotMembers(List<BotMember>)
.- Parameters:
botMembers
- a consumer that will call methods onBotMember.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateBotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateBotRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-