@Generated(value="software.amazon.awssdk:codegen") public interface LexModelsV2AsyncClient extends SdkClient
builder()
method.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider . |
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
default CompletableFuture<BuildBotLocaleResponse> |
buildBotLocale(BuildBotLocaleRequest buildBotLocaleRequest)
Builds a bot, its intents, and its slot types into a specific locale.
|
default CompletableFuture<BuildBotLocaleResponse> |
buildBotLocale(Consumer<BuildBotLocaleRequest.Builder> buildBotLocaleRequest)
Builds a bot, its intents, and its slot types into a specific locale.
|
static LexModelsV2AsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
LexModelsV2AsyncClient . |
static LexModelsV2AsyncClient |
create()
Create a
LexModelsV2AsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<CreateBotResponse> |
createBot(Consumer<CreateBotRequest.Builder> createBotRequest)
Creates an Amazon Lex conversational bot.
|
default CompletableFuture<CreateBotResponse> |
createBot(CreateBotRequest createBotRequest)
Creates an Amazon Lex conversational bot.
|
default CompletableFuture<CreateBotAliasResponse> |
createBotAlias(Consumer<CreateBotAliasRequest.Builder> createBotAliasRequest)
Creates an alias for the specified version of a bot.
|
default CompletableFuture<CreateBotAliasResponse> |
createBotAlias(CreateBotAliasRequest createBotAliasRequest)
Creates an alias for the specified version of a bot.
|
default CompletableFuture<CreateBotLocaleResponse> |
createBotLocale(Consumer<CreateBotLocaleRequest.Builder> createBotLocaleRequest)
Creates a locale in the bot.
|
default CompletableFuture<CreateBotLocaleResponse> |
createBotLocale(CreateBotLocaleRequest createBotLocaleRequest)
Creates a locale in the bot.
|
default CompletableFuture<CreateBotVersionResponse> |
createBotVersion(Consumer<CreateBotVersionRequest.Builder> createBotVersionRequest)
Creates a new version of the bot based on the
DRAFT version. |
default CompletableFuture<CreateBotVersionResponse> |
createBotVersion(CreateBotVersionRequest createBotVersionRequest)
Creates a new version of the bot based on the
DRAFT version. |
default CompletableFuture<CreateIntentResponse> |
createIntent(Consumer<CreateIntentRequest.Builder> createIntentRequest)
Creates an intent.
|
default CompletableFuture<CreateIntentResponse> |
createIntent(CreateIntentRequest createIntentRequest)
Creates an intent.
|
default CompletableFuture<CreateSlotResponse> |
createSlot(Consumer<CreateSlotRequest.Builder> createSlotRequest)
Creates a slot in an intent.
|
default CompletableFuture<CreateSlotResponse> |
createSlot(CreateSlotRequest createSlotRequest)
Creates a slot in an intent.
|
default CompletableFuture<CreateSlotTypeResponse> |
createSlotType(Consumer<CreateSlotTypeRequest.Builder> createSlotTypeRequest)
Creates a custom slot type
|
default CompletableFuture<CreateSlotTypeResponse> |
createSlotType(CreateSlotTypeRequest createSlotTypeRequest)
Creates a custom slot type
|
default CompletableFuture<DeleteBotResponse> |
deleteBot(Consumer<DeleteBotRequest.Builder> deleteBotRequest)
Deletes all versions of a bot, including the
Draft version. |
default CompletableFuture<DeleteBotResponse> |
deleteBot(DeleteBotRequest deleteBotRequest)
Deletes all versions of a bot, including the
Draft version. |
default CompletableFuture<DeleteBotAliasResponse> |
deleteBotAlias(Consumer<DeleteBotAliasRequest.Builder> deleteBotAliasRequest)
Deletes the specified bot alias.
|
default CompletableFuture<DeleteBotAliasResponse> |
deleteBotAlias(DeleteBotAliasRequest deleteBotAliasRequest)
Deletes the specified bot alias.
|
default CompletableFuture<DeleteBotLocaleResponse> |
deleteBotLocale(Consumer<DeleteBotLocaleRequest.Builder> deleteBotLocaleRequest)
Removes a locale from a bot.
|
default CompletableFuture<DeleteBotLocaleResponse> |
deleteBotLocale(DeleteBotLocaleRequest deleteBotLocaleRequest)
Removes a locale from a bot.
|
default CompletableFuture<DeleteBotVersionResponse> |
deleteBotVersion(Consumer<DeleteBotVersionRequest.Builder> deleteBotVersionRequest)
Deletes a specific version of a bot.
|
default CompletableFuture<DeleteBotVersionResponse> |
deleteBotVersion(DeleteBotVersionRequest deleteBotVersionRequest)
Deletes a specific version of a bot.
|
default CompletableFuture<DeleteIntentResponse> |
deleteIntent(Consumer<DeleteIntentRequest.Builder> deleteIntentRequest)
Removes the specified intent.
|
default CompletableFuture<DeleteIntentResponse> |
deleteIntent(DeleteIntentRequest deleteIntentRequest)
Removes the specified intent.
|
default CompletableFuture<DeleteSlotResponse> |
deleteSlot(Consumer<DeleteSlotRequest.Builder> deleteSlotRequest)
Deletes the specified slot from an intent.
|
default CompletableFuture<DeleteSlotResponse> |
deleteSlot(DeleteSlotRequest deleteSlotRequest)
Deletes the specified slot from an intent.
|
default CompletableFuture<DeleteSlotTypeResponse> |
deleteSlotType(Consumer<DeleteSlotTypeRequest.Builder> deleteSlotTypeRequest)
Deletes a slot type from a bot locale.
|
default CompletableFuture<DeleteSlotTypeResponse> |
deleteSlotType(DeleteSlotTypeRequest deleteSlotTypeRequest)
Deletes a slot type from a bot locale.
|
default CompletableFuture<DescribeBotResponse> |
describeBot(Consumer<DescribeBotRequest.Builder> describeBotRequest)
Provides metadata information about a bot.
|
default CompletableFuture<DescribeBotResponse> |
describeBot(DescribeBotRequest describeBotRequest)
Provides metadata information about a bot.
|
default CompletableFuture<DescribeBotAliasResponse> |
describeBotAlias(Consumer<DescribeBotAliasRequest.Builder> describeBotAliasRequest)
Get information about a specific bot alias.
|
default CompletableFuture<DescribeBotAliasResponse> |
describeBotAlias(DescribeBotAliasRequest describeBotAliasRequest)
Get information about a specific bot alias.
|
default CompletableFuture<DescribeBotLocaleResponse> |
describeBotLocale(Consumer<DescribeBotLocaleRequest.Builder> describeBotLocaleRequest)
Describes the settings that a bot has for a specific locale.
|
default CompletableFuture<DescribeBotLocaleResponse> |
describeBotLocale(DescribeBotLocaleRequest describeBotLocaleRequest)
Describes the settings that a bot has for a specific locale.
|
default CompletableFuture<DescribeBotVersionResponse> |
describeBotVersion(Consumer<DescribeBotVersionRequest.Builder> describeBotVersionRequest)
Provides metadata about a version of a bot.
|
default CompletableFuture<DescribeBotVersionResponse> |
describeBotVersion(DescribeBotVersionRequest describeBotVersionRequest)
Provides metadata about a version of a bot.
|
default CompletableFuture<DescribeIntentResponse> |
describeIntent(Consumer<DescribeIntentRequest.Builder> describeIntentRequest)
Returns metadata about an intent.
|
default CompletableFuture<DescribeIntentResponse> |
describeIntent(DescribeIntentRequest describeIntentRequest)
Returns metadata about an intent.
|
default CompletableFuture<DescribeSlotResponse> |
describeSlot(Consumer<DescribeSlotRequest.Builder> describeSlotRequest)
Gets metadata information about a slot.
|
default CompletableFuture<DescribeSlotResponse> |
describeSlot(DescribeSlotRequest describeSlotRequest)
Gets metadata information about a slot.
|
default CompletableFuture<DescribeSlotTypeResponse> |
describeSlotType(Consumer<DescribeSlotTypeRequest.Builder> describeSlotTypeRequest)
Gets metadata information about a slot type.
|
default CompletableFuture<DescribeSlotTypeResponse> |
describeSlotType(DescribeSlotTypeRequest describeSlotTypeRequest)
Gets metadata information about a slot type.
|
default CompletableFuture<ListBotAliasesResponse> |
listBotAliases(Consumer<ListBotAliasesRequest.Builder> listBotAliasesRequest)
Gets a list of aliases for the specified bot.
|
default CompletableFuture<ListBotAliasesResponse> |
listBotAliases(ListBotAliasesRequest listBotAliasesRequest)
Gets a list of aliases for the specified bot.
|
default ListBotAliasesPublisher |
listBotAliasesPaginator(Consumer<ListBotAliasesRequest.Builder> listBotAliasesRequest)
Gets a list of aliases for the specified bot.
|
default ListBotAliasesPublisher |
listBotAliasesPaginator(ListBotAliasesRequest listBotAliasesRequest)
Gets a list of aliases for the specified bot.
|
default CompletableFuture<ListBotLocalesResponse> |
listBotLocales(Consumer<ListBotLocalesRequest.Builder> listBotLocalesRequest)
Gets a list of locales for the specified bot.
|
default CompletableFuture<ListBotLocalesResponse> |
listBotLocales(ListBotLocalesRequest listBotLocalesRequest)
Gets a list of locales for the specified bot.
|
default ListBotLocalesPublisher |
listBotLocalesPaginator(Consumer<ListBotLocalesRequest.Builder> listBotLocalesRequest)
Gets a list of locales for the specified bot.
|
default ListBotLocalesPublisher |
listBotLocalesPaginator(ListBotLocalesRequest listBotLocalesRequest)
Gets a list of locales for the specified bot.
|
default CompletableFuture<ListBotsResponse> |
listBots(Consumer<ListBotsRequest.Builder> listBotsRequest)
Gets a list of available bots.
|
default CompletableFuture<ListBotsResponse> |
listBots(ListBotsRequest listBotsRequest)
Gets a list of available bots.
|
default ListBotsPublisher |
listBotsPaginator(Consumer<ListBotsRequest.Builder> listBotsRequest)
Gets a list of available bots.
|
default ListBotsPublisher |
listBotsPaginator(ListBotsRequest listBotsRequest)
Gets a list of available bots.
|
default CompletableFuture<ListBotVersionsResponse> |
listBotVersions(Consumer<ListBotVersionsRequest.Builder> listBotVersionsRequest)
Gets information about all of the versions of a bot.
|
default CompletableFuture<ListBotVersionsResponse> |
listBotVersions(ListBotVersionsRequest listBotVersionsRequest)
Gets information about all of the versions of a bot.
|
default ListBotVersionsPublisher |
listBotVersionsPaginator(Consumer<ListBotVersionsRequest.Builder> listBotVersionsRequest)
Gets information about all of the versions of a bot.
|
default ListBotVersionsPublisher |
listBotVersionsPaginator(ListBotVersionsRequest listBotVersionsRequest)
Gets information about all of the versions of a bot.
|
default CompletableFuture<ListBuiltInIntentsResponse> |
listBuiltInIntents(Consumer<ListBuiltInIntentsRequest.Builder> listBuiltInIntentsRequest)
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
|
default CompletableFuture<ListBuiltInIntentsResponse> |
listBuiltInIntents(ListBuiltInIntentsRequest listBuiltInIntentsRequest)
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
|
default ListBuiltInIntentsPublisher |
listBuiltInIntentsPaginator(Consumer<ListBuiltInIntentsRequest.Builder> listBuiltInIntentsRequest)
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
|
default ListBuiltInIntentsPublisher |
listBuiltInIntentsPaginator(ListBuiltInIntentsRequest listBuiltInIntentsRequest)
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
|
default CompletableFuture<ListBuiltInSlotTypesResponse> |
listBuiltInSlotTypes(Consumer<ListBuiltInSlotTypesRequest.Builder> listBuiltInSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
|
default CompletableFuture<ListBuiltInSlotTypesResponse> |
listBuiltInSlotTypes(ListBuiltInSlotTypesRequest listBuiltInSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
|
default ListBuiltInSlotTypesPublisher |
listBuiltInSlotTypesPaginator(Consumer<ListBuiltInSlotTypesRequest.Builder> listBuiltInSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
|
default ListBuiltInSlotTypesPublisher |
listBuiltInSlotTypesPaginator(ListBuiltInSlotTypesRequest listBuiltInSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
|
default CompletableFuture<ListIntentsResponse> |
listIntents(Consumer<ListIntentsRequest.Builder> listIntentsRequest)
Get a list of intents that meet the specified criteria.
|
default CompletableFuture<ListIntentsResponse> |
listIntents(ListIntentsRequest listIntentsRequest)
Get a list of intents that meet the specified criteria.
|
default ListIntentsPublisher |
listIntentsPaginator(Consumer<ListIntentsRequest.Builder> listIntentsRequest)
Get a list of intents that meet the specified criteria.
|
default ListIntentsPublisher |
listIntentsPaginator(ListIntentsRequest listIntentsRequest)
Get a list of intents that meet the specified criteria.
|
default CompletableFuture<ListSlotsResponse> |
listSlots(Consumer<ListSlotsRequest.Builder> listSlotsRequest)
Gets a list of slots that match the specified criteria.
|
default CompletableFuture<ListSlotsResponse> |
listSlots(ListSlotsRequest listSlotsRequest)
Gets a list of slots that match the specified criteria.
|
default ListSlotsPublisher |
listSlotsPaginator(Consumer<ListSlotsRequest.Builder> listSlotsRequest)
Gets a list of slots that match the specified criteria.
|
default ListSlotsPublisher |
listSlotsPaginator(ListSlotsRequest listSlotsRequest)
Gets a list of slots that match the specified criteria.
|
default CompletableFuture<ListSlotTypesResponse> |
listSlotTypes(Consumer<ListSlotTypesRequest.Builder> listSlotTypesRequest)
Gets a list of slot types that match the specified criteria.
|
default CompletableFuture<ListSlotTypesResponse> |
listSlotTypes(ListSlotTypesRequest listSlotTypesRequest)
Gets a list of slot types that match the specified criteria.
|
default ListSlotTypesPublisher |
listSlotTypesPaginator(Consumer<ListSlotTypesRequest.Builder> listSlotTypesRequest)
Gets a list of slot types that match the specified criteria.
|
default ListSlotTypesPublisher |
listSlotTypesPaginator(ListSlotTypesRequest listSlotTypesRequest)
Gets a list of slot types that match the specified criteria.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Gets a list of tags associated with a resource.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Gets a list of tags associated with a resource.
|
default CompletableFuture<TagResourceResponse> |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds the specified tags to the specified resource.
|
default CompletableFuture<TagResourceResponse> |
tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from a bot, bot alias, or bot channel.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from a bot, bot alias, or bot channel.
|
default CompletableFuture<UpdateBotResponse> |
updateBot(Consumer<UpdateBotRequest.Builder> updateBotRequest)
Updates the configuration of an existing bot.
|
default CompletableFuture<UpdateBotResponse> |
updateBot(UpdateBotRequest updateBotRequest)
Updates the configuration of an existing bot.
|
default CompletableFuture<UpdateBotAliasResponse> |
updateBotAlias(Consumer<UpdateBotAliasRequest.Builder> updateBotAliasRequest)
Updates the configuration of an existing bot alias.
|
default CompletableFuture<UpdateBotAliasResponse> |
updateBotAlias(UpdateBotAliasRequest updateBotAliasRequest)
Updates the configuration of an existing bot alias.
|
default CompletableFuture<UpdateBotLocaleResponse> |
updateBotLocale(Consumer<UpdateBotLocaleRequest.Builder> updateBotLocaleRequest)
Updates the settings that a bot has for a specific locale.
|
default CompletableFuture<UpdateBotLocaleResponse> |
updateBotLocale(UpdateBotLocaleRequest updateBotLocaleRequest)
Updates the settings that a bot has for a specific locale.
|
default CompletableFuture<UpdateIntentResponse> |
updateIntent(Consumer<UpdateIntentRequest.Builder> updateIntentRequest)
Updates the settings for an intent.
|
default CompletableFuture<UpdateIntentResponse> |
updateIntent(UpdateIntentRequest updateIntentRequest)
Updates the settings for an intent.
|
default CompletableFuture<UpdateSlotResponse> |
updateSlot(Consumer<UpdateSlotRequest.Builder> updateSlotRequest)
Updates the settings for a slot.
|
default CompletableFuture<UpdateSlotResponse> |
updateSlot(UpdateSlotRequest updateSlotRequest)
Updates the settings for a slot.
|
default CompletableFuture<UpdateSlotTypeResponse> |
updateSlotType(Consumer<UpdateSlotTypeRequest.Builder> updateSlotTypeRequest)
Updates the configuration of an existing slot type.
|
default CompletableFuture<UpdateSlotTypeResponse> |
updateSlotType(UpdateSlotTypeRequest updateSlotTypeRequest)
Updates the configuration of an existing slot type.
|
serviceName
close
static final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider
.static LexModelsV2AsyncClient create()
LexModelsV2AsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static LexModelsV2AsyncClientBuilder builder()
LexModelsV2AsyncClient
.default CompletableFuture<BuildBotLocaleResponse> buildBotLocale(BuildBotLocaleRequest buildBotLocaleRequest)
Builds a bot, its intents, and its slot types into a specific locale. A bot can be built into multiple locales. At runtime the locale is used to choose a specific build of the bot.
buildBotLocaleRequest
- default CompletableFuture<BuildBotLocaleResponse> buildBotLocale(Consumer<BuildBotLocaleRequest.Builder> buildBotLocaleRequest)
Builds a bot, its intents, and its slot types into a specific locale. A bot can be built into multiple locales. At runtime the locale is used to choose a specific build of the bot.
This is a convenience which creates an instance of the BuildBotLocaleRequest.Builder
avoiding the need to
create one manually via BuildBotLocaleRequest.builder()
buildBotLocaleRequest
- A Consumer
that will call methods on BuildBotLocaleRequest.Builder
to create a request.default CompletableFuture<CreateBotResponse> createBot(CreateBotRequest createBotRequest)
Creates an Amazon Lex conversational bot.
createBotRequest
- default CompletableFuture<CreateBotResponse> createBot(Consumer<CreateBotRequest.Builder> createBotRequest)
Creates an Amazon Lex conversational bot.
This is a convenience which creates an instance of the CreateBotRequest.Builder
avoiding the need to
create one manually via CreateBotRequest.builder()
createBotRequest
- A Consumer
that will call methods on CreateBotRequest.Builder
to create a request.default CompletableFuture<CreateBotAliasResponse> createBotAlias(CreateBotAliasRequest createBotAliasRequest)
Creates an alias for the specified version of a bot. Use an alias to enable you to change the version of a bot without updating applications that use the bot.
For example, you can create an alias called "PROD" that your applications use to call the Amazon Lex bot.
createBotAliasRequest
- default CompletableFuture<CreateBotAliasResponse> createBotAlias(Consumer<CreateBotAliasRequest.Builder> createBotAliasRequest)
Creates an alias for the specified version of a bot. Use an alias to enable you to change the version of a bot without updating applications that use the bot.
For example, you can create an alias called "PROD" that your applications use to call the Amazon Lex bot.
This is a convenience which creates an instance of the CreateBotAliasRequest.Builder
avoiding the need to
create one manually via CreateBotAliasRequest.builder()
createBotAliasRequest
- A Consumer
that will call methods on CreateBotAliasRequest.Builder
to create a request.default CompletableFuture<CreateBotLocaleResponse> createBotLocale(CreateBotLocaleRequest createBotLocaleRequest)
Creates a locale in the bot. The locale contains the intents and slot types that the bot uses in conversations with users in the specified language and locale. You must add a locale to a bot before you can add intents and slot types to the bot.
createBotLocaleRequest
- default CompletableFuture<CreateBotLocaleResponse> createBotLocale(Consumer<CreateBotLocaleRequest.Builder> createBotLocaleRequest)
Creates a locale in the bot. The locale contains the intents and slot types that the bot uses in conversations with users in the specified language and locale. You must add a locale to a bot before you can add intents and slot types to the bot.
This is a convenience which creates an instance of the CreateBotLocaleRequest.Builder
avoiding the need
to create one manually via CreateBotLocaleRequest.builder()
createBotLocaleRequest
- A Consumer
that will call methods on CreateBotLocaleRequest.Builder
to create a request.default CompletableFuture<CreateBotVersionResponse> createBotVersion(CreateBotVersionRequest createBotVersionRequest)
Creates a new version of the bot based on the DRAFT
version. If the DRAFT
version of
this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version, it
returns the last created version.
When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.
createBotVersionRequest
- default CompletableFuture<CreateBotVersionResponse> createBotVersion(Consumer<CreateBotVersionRequest.Builder> createBotVersionRequest)
Creates a new version of the bot based on the DRAFT
version. If the DRAFT
version of
this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version, it
returns the last created version.
When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.
This is a convenience which creates an instance of the CreateBotVersionRequest.Builder
avoiding the need
to create one manually via CreateBotVersionRequest.builder()
createBotVersionRequest
- A Consumer
that will call methods on CreateBotVersionRequest.Builder
to create a request.default CompletableFuture<CreateIntentResponse> createIntent(CreateIntentRequest createIntentRequest)
Creates an intent.
To define the interaction between the user and your bot, you define one or more intents. For example, for a pizza
ordering bot you would create an OrderPizza
intent.
When you create an intent, you must provide a name. You can optionally provide the following:
Sample utterances. For example, "I want to order a pizza" and "Can I order a pizza." You can't provide utterances for built-in intents.
Information to be gathered. You specify slots for the information that you bot requests from the user. You can specify standard slot types, such as date and time, or custom slot types for your application.
How the intent is fulfilled. You can provide a Lambda function or configure the intent to return the intent information to your client application. If you use a Lambda function, Amazon Lex invokes the function when all of the intent information is available.
A confirmation prompt to send to the user to confirm an intent. For example, "Shall I order your pizza?"
A conclusion statement to send to the user after the intent is fulfilled. For example, "I ordered your pizza."
A follow-up prompt that asks the user for additional activity. For example, "Do you want a drink with your pizza?"
createIntentRequest
- default CompletableFuture<CreateIntentResponse> createIntent(Consumer<CreateIntentRequest.Builder> createIntentRequest)
Creates an intent.
To define the interaction between the user and your bot, you define one or more intents. For example, for a pizza
ordering bot you would create an OrderPizza
intent.
When you create an intent, you must provide a name. You can optionally provide the following:
Sample utterances. For example, "I want to order a pizza" and "Can I order a pizza." You can't provide utterances for built-in intents.
Information to be gathered. You specify slots for the information that you bot requests from the user. You can specify standard slot types, such as date and time, or custom slot types for your application.
How the intent is fulfilled. You can provide a Lambda function or configure the intent to return the intent information to your client application. If you use a Lambda function, Amazon Lex invokes the function when all of the intent information is available.
A confirmation prompt to send to the user to confirm an intent. For example, "Shall I order your pizza?"
A conclusion statement to send to the user after the intent is fulfilled. For example, "I ordered your pizza."
A follow-up prompt that asks the user for additional activity. For example, "Do you want a drink with your pizza?"
This is a convenience which creates an instance of the CreateIntentRequest.Builder
avoiding the need to
create one manually via CreateIntentRequest.builder()
createIntentRequest
- A Consumer
that will call methods on CreateIntentRequest.Builder
to create a request.default CompletableFuture<CreateSlotResponse> createSlot(CreateSlotRequest createSlotRequest)
Creates a slot in an intent. A slot is a variable needed to fulfill an intent. For example, an
OrderPizza
intent might need slots for size, crust, and number of pizzas. For each slot, you define
one or more utterances that Amazon Lex uses to elicit a response from the user.
createSlotRequest
- default CompletableFuture<CreateSlotResponse> createSlot(Consumer<CreateSlotRequest.Builder> createSlotRequest)
Creates a slot in an intent. A slot is a variable needed to fulfill an intent. For example, an
OrderPizza
intent might need slots for size, crust, and number of pizzas. For each slot, you define
one or more utterances that Amazon Lex uses to elicit a response from the user.
This is a convenience which creates an instance of the CreateSlotRequest.Builder
avoiding the need to
create one manually via CreateSlotRequest.builder()
createSlotRequest
- A Consumer
that will call methods on CreateSlotRequest.Builder
to create a request.default CompletableFuture<CreateSlotTypeResponse> createSlotType(CreateSlotTypeRequest createSlotTypeRequest)
Creates a custom slot type
To create a custom slot type, specify a name for the slot type and a set of enumeration values, the values that a slot of this type can assume.
createSlotTypeRequest
- default CompletableFuture<CreateSlotTypeResponse> createSlotType(Consumer<CreateSlotTypeRequest.Builder> createSlotTypeRequest)
Creates a custom slot type
To create a custom slot type, specify a name for the slot type and a set of enumeration values, the values that a slot of this type can assume.
This is a convenience which creates an instance of the CreateSlotTypeRequest.Builder
avoiding the need to
create one manually via CreateSlotTypeRequest.builder()
createSlotTypeRequest
- A Consumer
that will call methods on CreateSlotTypeRequest.Builder
to create a request.default CompletableFuture<DeleteBotResponse> deleteBot(DeleteBotRequest deleteBotRequest)
Deletes all versions of a bot, including the Draft
version. To delete a specific version, use the
DeleteBotVersion
operation.
When you delete a bot, all of the resources contained in the bot are also deleted. Deleting a bot removes all locales, intents, slot, and slot types defined for the bot.
If a bot has an alias, the DeleteBot
operation returns a ResourceInUseException
exception. If you want to delete the bot and the alias, set the skipResourceInUseCheck
parameter to
true
.
deleteBotRequest
- default CompletableFuture<DeleteBotResponse> deleteBot(Consumer<DeleteBotRequest.Builder> deleteBotRequest)
Deletes all versions of a bot, including the Draft
version. To delete a specific version, use the
DeleteBotVersion
operation.
When you delete a bot, all of the resources contained in the bot are also deleted. Deleting a bot removes all locales, intents, slot, and slot types defined for the bot.
If a bot has an alias, the DeleteBot
operation returns a ResourceInUseException
exception. If you want to delete the bot and the alias, set the skipResourceInUseCheck
parameter to
true
.
This is a convenience which creates an instance of the DeleteBotRequest.Builder
avoiding the need to
create one manually via DeleteBotRequest.builder()
deleteBotRequest
- A Consumer
that will call methods on DeleteBotRequest.Builder
to create a request.default CompletableFuture<DeleteBotAliasResponse> deleteBotAlias(DeleteBotAliasRequest deleteBotAliasRequest)
Deletes the specified bot alias.
deleteBotAliasRequest
- default CompletableFuture<DeleteBotAliasResponse> deleteBotAlias(Consumer<DeleteBotAliasRequest.Builder> deleteBotAliasRequest)
Deletes the specified bot alias.
This is a convenience which creates an instance of the DeleteBotAliasRequest.Builder
avoiding the need to
create one manually via DeleteBotAliasRequest.builder()
deleteBotAliasRequest
- A Consumer
that will call methods on DeleteBotAliasRequest.Builder
to create a request.default CompletableFuture<DeleteBotLocaleResponse> deleteBotLocale(DeleteBotLocaleRequest deleteBotLocaleRequest)
Removes a locale from a bot.
When you delete a locale, all intents, slots, and slot types defined for the locale are also deleted.
deleteBotLocaleRequest
- default CompletableFuture<DeleteBotLocaleResponse> deleteBotLocale(Consumer<DeleteBotLocaleRequest.Builder> deleteBotLocaleRequest)
Removes a locale from a bot.
When you delete a locale, all intents, slots, and slot types defined for the locale are also deleted.
This is a convenience which creates an instance of the DeleteBotLocaleRequest.Builder
avoiding the need
to create one manually via DeleteBotLocaleRequest.builder()
deleteBotLocaleRequest
- A Consumer
that will call methods on DeleteBotLocaleRequest.Builder
to create a request.default CompletableFuture<DeleteBotVersionResponse> deleteBotVersion(DeleteBotVersionRequest deleteBotVersionRequest)
Deletes a specific version of a bot. To delete all version of a bot, use the DeleteBot operation.
deleteBotVersionRequest
- default CompletableFuture<DeleteBotVersionResponse> deleteBotVersion(Consumer<DeleteBotVersionRequest.Builder> deleteBotVersionRequest)
Deletes a specific version of a bot. To delete all version of a bot, use the DeleteBot operation.
This is a convenience which creates an instance of the DeleteBotVersionRequest.Builder
avoiding the need
to create one manually via DeleteBotVersionRequest.builder()
deleteBotVersionRequest
- A Consumer
that will call methods on DeleteBotVersionRequest.Builder
to create a request.default CompletableFuture<DeleteIntentResponse> deleteIntent(DeleteIntentRequest deleteIntentRequest)
Removes the specified intent.
Deleting an intent also deletes the slots associated with the intent.
deleteIntentRequest
- default CompletableFuture<DeleteIntentResponse> deleteIntent(Consumer<DeleteIntentRequest.Builder> deleteIntentRequest)
Removes the specified intent.
Deleting an intent also deletes the slots associated with the intent.
This is a convenience which creates an instance of the DeleteIntentRequest.Builder
avoiding the need to
create one manually via DeleteIntentRequest.builder()
deleteIntentRequest
- A Consumer
that will call methods on DeleteIntentRequest.Builder
to create a request.default CompletableFuture<DeleteSlotResponse> deleteSlot(DeleteSlotRequest deleteSlotRequest)
Deletes the specified slot from an intent.
deleteSlotRequest
- default CompletableFuture<DeleteSlotResponse> deleteSlot(Consumer<DeleteSlotRequest.Builder> deleteSlotRequest)
Deletes the specified slot from an intent.
This is a convenience which creates an instance of the DeleteSlotRequest.Builder
avoiding the need to
create one manually via DeleteSlotRequest.builder()
deleteSlotRequest
- A Consumer
that will call methods on DeleteSlotRequest.Builder
to create a request.default CompletableFuture<DeleteSlotTypeResponse> deleteSlotType(DeleteSlotTypeRequest deleteSlotTypeRequest)
Deletes a slot type from a bot locale.
If a slot is using the slot type, Amazon Lex throws a ResourceInUseException
exception. To avoid the
exception, set the skipResourceInUseCheck
parameter to true
.
deleteSlotTypeRequest
- default CompletableFuture<DeleteSlotTypeResponse> deleteSlotType(Consumer<DeleteSlotTypeRequest.Builder> deleteSlotTypeRequest)
Deletes a slot type from a bot locale.
If a slot is using the slot type, Amazon Lex throws a ResourceInUseException
exception. To avoid the
exception, set the skipResourceInUseCheck
parameter to true
.
This is a convenience which creates an instance of the DeleteSlotTypeRequest.Builder
avoiding the need to
create one manually via DeleteSlotTypeRequest.builder()
deleteSlotTypeRequest
- A Consumer
that will call methods on DeleteSlotTypeRequest.Builder
to create a request.default CompletableFuture<DescribeBotResponse> describeBot(DescribeBotRequest describeBotRequest)
Provides metadata information about a bot.
describeBotRequest
- default CompletableFuture<DescribeBotResponse> describeBot(Consumer<DescribeBotRequest.Builder> describeBotRequest)
Provides metadata information about a bot.
This is a convenience which creates an instance of the DescribeBotRequest.Builder
avoiding the need to
create one manually via DescribeBotRequest.builder()
describeBotRequest
- A Consumer
that will call methods on DescribeBotRequest.Builder
to create a request.default CompletableFuture<DescribeBotAliasResponse> describeBotAlias(DescribeBotAliasRequest describeBotAliasRequest)
Get information about a specific bot alias.
describeBotAliasRequest
- default CompletableFuture<DescribeBotAliasResponse> describeBotAlias(Consumer<DescribeBotAliasRequest.Builder> describeBotAliasRequest)
Get information about a specific bot alias.
This is a convenience which creates an instance of the DescribeBotAliasRequest.Builder
avoiding the need
to create one manually via DescribeBotAliasRequest.builder()
describeBotAliasRequest
- A Consumer
that will call methods on DescribeBotAliasRequest.Builder
to create a request.default CompletableFuture<DescribeBotLocaleResponse> describeBotLocale(DescribeBotLocaleRequest describeBotLocaleRequest)
Describes the settings that a bot has for a specific locale.
describeBotLocaleRequest
- default CompletableFuture<DescribeBotLocaleResponse> describeBotLocale(Consumer<DescribeBotLocaleRequest.Builder> describeBotLocaleRequest)
Describes the settings that a bot has for a specific locale.
This is a convenience which creates an instance of the DescribeBotLocaleRequest.Builder
avoiding the need
to create one manually via DescribeBotLocaleRequest.builder()
describeBotLocaleRequest
- A Consumer
that will call methods on DescribeBotLocaleRequest.Builder
to create a request.default CompletableFuture<DescribeBotVersionResponse> describeBotVersion(DescribeBotVersionRequest describeBotVersionRequest)
Provides metadata about a version of a bot.
describeBotVersionRequest
- default CompletableFuture<DescribeBotVersionResponse> describeBotVersion(Consumer<DescribeBotVersionRequest.Builder> describeBotVersionRequest)
Provides metadata about a version of a bot.
This is a convenience which creates an instance of the DescribeBotVersionRequest.Builder
avoiding the
need to create one manually via DescribeBotVersionRequest.builder()
describeBotVersionRequest
- A Consumer
that will call methods on DescribeBotVersionRequest.Builder
to create a
request.default CompletableFuture<DescribeIntentResponse> describeIntent(DescribeIntentRequest describeIntentRequest)
Returns metadata about an intent.
describeIntentRequest
- default CompletableFuture<DescribeIntentResponse> describeIntent(Consumer<DescribeIntentRequest.Builder> describeIntentRequest)
Returns metadata about an intent.
This is a convenience which creates an instance of the DescribeIntentRequest.Builder
avoiding the need to
create one manually via DescribeIntentRequest.builder()
describeIntentRequest
- A Consumer
that will call methods on DescribeIntentRequest.Builder
to create a request.default CompletableFuture<DescribeSlotResponse> describeSlot(DescribeSlotRequest describeSlotRequest)
Gets metadata information about a slot.
describeSlotRequest
- default CompletableFuture<DescribeSlotResponse> describeSlot(Consumer<DescribeSlotRequest.Builder> describeSlotRequest)
Gets metadata information about a slot.
This is a convenience which creates an instance of the DescribeSlotRequest.Builder
avoiding the need to
create one manually via DescribeSlotRequest.builder()
describeSlotRequest
- A Consumer
that will call methods on DescribeSlotRequest.Builder
to create a request.default CompletableFuture<DescribeSlotTypeResponse> describeSlotType(DescribeSlotTypeRequest describeSlotTypeRequest)
Gets metadata information about a slot type.
describeSlotTypeRequest
- default CompletableFuture<DescribeSlotTypeResponse> describeSlotType(Consumer<DescribeSlotTypeRequest.Builder> describeSlotTypeRequest)
Gets metadata information about a slot type.
This is a convenience which creates an instance of the DescribeSlotTypeRequest.Builder
avoiding the need
to create one manually via DescribeSlotTypeRequest.builder()
describeSlotTypeRequest
- A Consumer
that will call methods on DescribeSlotTypeRequest.Builder
to create a request.default CompletableFuture<ListBotAliasesResponse> listBotAliases(ListBotAliasesRequest listBotAliasesRequest)
Gets a list of aliases for the specified bot.
listBotAliasesRequest
- default CompletableFuture<ListBotAliasesResponse> listBotAliases(Consumer<ListBotAliasesRequest.Builder> listBotAliasesRequest)
Gets a list of aliases for the specified bot.
This is a convenience which creates an instance of the ListBotAliasesRequest.Builder
avoiding the need to
create one manually via ListBotAliasesRequest.builder()
listBotAliasesRequest
- A Consumer
that will call methods on ListBotAliasesRequest.Builder
to create a request.default ListBotAliasesPublisher listBotAliasesPaginator(ListBotAliasesRequest listBotAliasesRequest)
Gets a list of aliases for the specified bot.
This is a variant of
listBotAliases(software.amazon.awssdk.services.lexmodelsv2.model.ListBotAliasesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotAliasesPublisher publisher = client.listBotAliasesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotAliasesPublisher publisher = client.listBotAliasesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBotAliasesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBotAliasesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBotAliases(software.amazon.awssdk.services.lexmodelsv2.model.ListBotAliasesRequest)
operation.
listBotAliasesRequest
- default ListBotAliasesPublisher listBotAliasesPaginator(Consumer<ListBotAliasesRequest.Builder> listBotAliasesRequest)
Gets a list of aliases for the specified bot.
This is a variant of
listBotAliases(software.amazon.awssdk.services.lexmodelsv2.model.ListBotAliasesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotAliasesPublisher publisher = client.listBotAliasesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotAliasesPublisher publisher = client.listBotAliasesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBotAliasesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBotAliasesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBotAliases(software.amazon.awssdk.services.lexmodelsv2.model.ListBotAliasesRequest)
operation.
This is a convenience which creates an instance of the ListBotAliasesRequest.Builder
avoiding the need to
create one manually via ListBotAliasesRequest.builder()
listBotAliasesRequest
- A Consumer
that will call methods on ListBotAliasesRequest.Builder
to create a request.default CompletableFuture<ListBotLocalesResponse> listBotLocales(ListBotLocalesRequest listBotLocalesRequest)
Gets a list of locales for the specified bot.
listBotLocalesRequest
- default CompletableFuture<ListBotLocalesResponse> listBotLocales(Consumer<ListBotLocalesRequest.Builder> listBotLocalesRequest)
Gets a list of locales for the specified bot.
This is a convenience which creates an instance of the ListBotLocalesRequest.Builder
avoiding the need to
create one manually via ListBotLocalesRequest.builder()
listBotLocalesRequest
- A Consumer
that will call methods on ListBotLocalesRequest.Builder
to create a request.default ListBotLocalesPublisher listBotLocalesPaginator(ListBotLocalesRequest listBotLocalesRequest)
Gets a list of locales for the specified bot.
This is a variant of
listBotLocales(software.amazon.awssdk.services.lexmodelsv2.model.ListBotLocalesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotLocalesPublisher publisher = client.listBotLocalesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotLocalesPublisher publisher = client.listBotLocalesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBotLocalesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBotLocalesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBotLocales(software.amazon.awssdk.services.lexmodelsv2.model.ListBotLocalesRequest)
operation.
listBotLocalesRequest
- default ListBotLocalesPublisher listBotLocalesPaginator(Consumer<ListBotLocalesRequest.Builder> listBotLocalesRequest)
Gets a list of locales for the specified bot.
This is a variant of
listBotLocales(software.amazon.awssdk.services.lexmodelsv2.model.ListBotLocalesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotLocalesPublisher publisher = client.listBotLocalesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotLocalesPublisher publisher = client.listBotLocalesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBotLocalesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBotLocalesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBotLocales(software.amazon.awssdk.services.lexmodelsv2.model.ListBotLocalesRequest)
operation.
This is a convenience which creates an instance of the ListBotLocalesRequest.Builder
avoiding the need to
create one manually via ListBotLocalesRequest.builder()
listBotLocalesRequest
- A Consumer
that will call methods on ListBotLocalesRequest.Builder
to create a request.default CompletableFuture<ListBotVersionsResponse> listBotVersions(ListBotVersionsRequest listBotVersionsRequest)
Gets information about all of the versions of a bot.
The ListBotVersions
operation returns a summary of each version of a bot. For example, if a bot has
three numbered versions, the ListBotVersions
operation returns for summaries, one for each numbered
version and one for the DRAFT
version.
The ListBotVersions
operation always returns at least one version, the DRAFT
version.
listBotVersionsRequest
- default CompletableFuture<ListBotVersionsResponse> listBotVersions(Consumer<ListBotVersionsRequest.Builder> listBotVersionsRequest)
Gets information about all of the versions of a bot.
The ListBotVersions
operation returns a summary of each version of a bot. For example, if a bot has
three numbered versions, the ListBotVersions
operation returns for summaries, one for each numbered
version and one for the DRAFT
version.
The ListBotVersions
operation always returns at least one version, the DRAFT
version.
This is a convenience which creates an instance of the ListBotVersionsRequest.Builder
avoiding the need
to create one manually via ListBotVersionsRequest.builder()
listBotVersionsRequest
- A Consumer
that will call methods on ListBotVersionsRequest.Builder
to create a request.default ListBotVersionsPublisher listBotVersionsPaginator(ListBotVersionsRequest listBotVersionsRequest)
Gets information about all of the versions of a bot.
The ListBotVersions
operation returns a summary of each version of a bot. For example, if a bot has
three numbered versions, the ListBotVersions
operation returns for summaries, one for each numbered
version and one for the DRAFT
version.
The ListBotVersions
operation always returns at least one version, the DRAFT
version.
This is a variant of
listBotVersions(software.amazon.awssdk.services.lexmodelsv2.model.ListBotVersionsRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotVersionsPublisher publisher = client.listBotVersionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotVersionsPublisher publisher = client.listBotVersionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBotVersionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBotVersionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBotVersions(software.amazon.awssdk.services.lexmodelsv2.model.ListBotVersionsRequest)
operation.
listBotVersionsRequest
- default ListBotVersionsPublisher listBotVersionsPaginator(Consumer<ListBotVersionsRequest.Builder> listBotVersionsRequest)
Gets information about all of the versions of a bot.
The ListBotVersions
operation returns a summary of each version of a bot. For example, if a bot has
three numbered versions, the ListBotVersions
operation returns for summaries, one for each numbered
version and one for the DRAFT
version.
The ListBotVersions
operation always returns at least one version, the DRAFT
version.
This is a variant of
listBotVersions(software.amazon.awssdk.services.lexmodelsv2.model.ListBotVersionsRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotVersionsPublisher publisher = client.listBotVersionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotVersionsPublisher publisher = client.listBotVersionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBotVersionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBotVersionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBotVersions(software.amazon.awssdk.services.lexmodelsv2.model.ListBotVersionsRequest)
operation.
This is a convenience which creates an instance of the ListBotVersionsRequest.Builder
avoiding the need
to create one manually via ListBotVersionsRequest.builder()
listBotVersionsRequest
- A Consumer
that will call methods on ListBotVersionsRequest.Builder
to create a request.default CompletableFuture<ListBotsResponse> listBots(ListBotsRequest listBotsRequest)
Gets a list of available bots.
listBotsRequest
- default CompletableFuture<ListBotsResponse> listBots(Consumer<ListBotsRequest.Builder> listBotsRequest)
Gets a list of available bots.
This is a convenience which creates an instance of the ListBotsRequest.Builder
avoiding the need to
create one manually via ListBotsRequest.builder()
listBotsRequest
- A Consumer
that will call methods on ListBotsRequest.Builder
to create a request.default ListBotsPublisher listBotsPaginator(ListBotsRequest listBotsRequest)
Gets a list of available bots.
This is a variant of listBots(software.amazon.awssdk.services.lexmodelsv2.model.ListBotsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotsPublisher publisher = client.listBotsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotsPublisher publisher = client.listBotsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBotsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBotsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBots(software.amazon.awssdk.services.lexmodelsv2.model.ListBotsRequest)
operation.
listBotsRequest
- default ListBotsPublisher listBotsPaginator(Consumer<ListBotsRequest.Builder> listBotsRequest)
Gets a list of available bots.
This is a variant of listBots(software.amazon.awssdk.services.lexmodelsv2.model.ListBotsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotsPublisher publisher = client.listBotsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBotsPublisher publisher = client.listBotsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBotsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBotsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBots(software.amazon.awssdk.services.lexmodelsv2.model.ListBotsRequest)
operation.
This is a convenience which creates an instance of the ListBotsRequest.Builder
avoiding the need to
create one manually via ListBotsRequest.builder()
listBotsRequest
- A Consumer
that will call methods on ListBotsRequest.Builder
to create a request.default CompletableFuture<ListBuiltInIntentsResponse> listBuiltInIntents(ListBuiltInIntentsRequest listBuiltInIntentsRequest)
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
To use a built-in intent as a the base for your own intent, include the built-in intent signature in the
parentIntentSignature
parameter when you call the CreateIntent
operation. For more
information, see CreateIntent.
listBuiltInIntentsRequest
- default CompletableFuture<ListBuiltInIntentsResponse> listBuiltInIntents(Consumer<ListBuiltInIntentsRequest.Builder> listBuiltInIntentsRequest)
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
To use a built-in intent as a the base for your own intent, include the built-in intent signature in the
parentIntentSignature
parameter when you call the CreateIntent
operation. For more
information, see CreateIntent.
This is a convenience which creates an instance of the ListBuiltInIntentsRequest.Builder
avoiding the
need to create one manually via ListBuiltInIntentsRequest.builder()
listBuiltInIntentsRequest
- A Consumer
that will call methods on ListBuiltInIntentsRequest.Builder
to create a
request.default ListBuiltInIntentsPublisher listBuiltInIntentsPaginator(ListBuiltInIntentsRequest listBuiltInIntentsRequest)
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
To use a built-in intent as a the base for your own intent, include the built-in intent signature in the
parentIntentSignature
parameter when you call the CreateIntent
operation. For more
information, see CreateIntent.
This is a variant of
listBuiltInIntents(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInIntentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBuiltInIntentsPublisher publisher = client.listBuiltInIntentsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBuiltInIntentsPublisher publisher = client.listBuiltInIntentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInIntentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInIntentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuiltInIntents(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInIntentsRequest)
operation.
listBuiltInIntentsRequest
- default ListBuiltInIntentsPublisher listBuiltInIntentsPaginator(Consumer<ListBuiltInIntentsRequest.Builder> listBuiltInIntentsRequest)
Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.
To use a built-in intent as a the base for your own intent, include the built-in intent signature in the
parentIntentSignature
parameter when you call the CreateIntent
operation. For more
information, see CreateIntent.
This is a variant of
listBuiltInIntents(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInIntentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBuiltInIntentsPublisher publisher = client.listBuiltInIntentsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBuiltInIntentsPublisher publisher = client.listBuiltInIntentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInIntentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInIntentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuiltInIntents(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInIntentsRequest)
operation.
This is a convenience which creates an instance of the ListBuiltInIntentsRequest.Builder
avoiding the
need to create one manually via ListBuiltInIntentsRequest.builder()
listBuiltInIntentsRequest
- A Consumer
that will call methods on ListBuiltInIntentsRequest.Builder
to create a
request.default CompletableFuture<ListBuiltInSlotTypesResponse> listBuiltInSlotTypes(ListBuiltInSlotTypesRequest listBuiltInSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
listBuiltInSlotTypesRequest
- default CompletableFuture<ListBuiltInSlotTypesResponse> listBuiltInSlotTypes(Consumer<ListBuiltInSlotTypesRequest.Builder> listBuiltInSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
This is a convenience which creates an instance of the ListBuiltInSlotTypesRequest.Builder
avoiding the
need to create one manually via ListBuiltInSlotTypesRequest.builder()
listBuiltInSlotTypesRequest
- A Consumer
that will call methods on ListBuiltInSlotTypesRequest.Builder
to create a
request.default ListBuiltInSlotTypesPublisher listBuiltInSlotTypesPaginator(ListBuiltInSlotTypesRequest listBuiltInSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
This is a variant of
listBuiltInSlotTypes(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInSlotTypesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBuiltInSlotTypesPublisher publisher = client.listBuiltInSlotTypesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBuiltInSlotTypesPublisher publisher = client.listBuiltInSlotTypesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInSlotTypesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInSlotTypesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuiltInSlotTypes(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInSlotTypesRequest)
operation.
listBuiltInSlotTypesRequest
- default ListBuiltInSlotTypesPublisher listBuiltInSlotTypesPaginator(Consumer<ListBuiltInSlotTypesRequest.Builder> listBuiltInSlotTypesRequest)
Gets a list of built-in slot types that meet the specified criteria.
This is a variant of
listBuiltInSlotTypes(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInSlotTypesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBuiltInSlotTypesPublisher publisher = client.listBuiltInSlotTypesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListBuiltInSlotTypesPublisher publisher = client.listBuiltInSlotTypesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInSlotTypesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInSlotTypesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuiltInSlotTypes(software.amazon.awssdk.services.lexmodelsv2.model.ListBuiltInSlotTypesRequest)
operation.
This is a convenience which creates an instance of the ListBuiltInSlotTypesRequest.Builder
avoiding the
need to create one manually via ListBuiltInSlotTypesRequest.builder()
listBuiltInSlotTypesRequest
- A Consumer
that will call methods on ListBuiltInSlotTypesRequest.Builder
to create a
request.default CompletableFuture<ListIntentsResponse> listIntents(ListIntentsRequest listIntentsRequest)
Get a list of intents that meet the specified criteria.
listIntentsRequest
- default CompletableFuture<ListIntentsResponse> listIntents(Consumer<ListIntentsRequest.Builder> listIntentsRequest)
Get a list of intents that meet the specified criteria.
This is a convenience which creates an instance of the ListIntentsRequest.Builder
avoiding the need to
create one manually via ListIntentsRequest.builder()
listIntentsRequest
- A Consumer
that will call methods on ListIntentsRequest.Builder
to create a request.default ListIntentsPublisher listIntentsPaginator(ListIntentsRequest listIntentsRequest)
Get a list of intents that meet the specified criteria.
This is a variant of listIntents(software.amazon.awssdk.services.lexmodelsv2.model.ListIntentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListIntentsPublisher publisher = client.listIntentsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListIntentsPublisher publisher = client.listIntentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListIntentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListIntentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIntents(software.amazon.awssdk.services.lexmodelsv2.model.ListIntentsRequest)
operation.
listIntentsRequest
- default ListIntentsPublisher listIntentsPaginator(Consumer<ListIntentsRequest.Builder> listIntentsRequest)
Get a list of intents that meet the specified criteria.
This is a variant of listIntents(software.amazon.awssdk.services.lexmodelsv2.model.ListIntentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListIntentsPublisher publisher = client.listIntentsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListIntentsPublisher publisher = client.listIntentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListIntentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListIntentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIntents(software.amazon.awssdk.services.lexmodelsv2.model.ListIntentsRequest)
operation.
This is a convenience which creates an instance of the ListIntentsRequest.Builder
avoiding the need to
create one manually via ListIntentsRequest.builder()
listIntentsRequest
- A Consumer
that will call methods on ListIntentsRequest.Builder
to create a request.default CompletableFuture<ListSlotTypesResponse> listSlotTypes(ListSlotTypesRequest listSlotTypesRequest)
Gets a list of slot types that match the specified criteria.
listSlotTypesRequest
- default CompletableFuture<ListSlotTypesResponse> listSlotTypes(Consumer<ListSlotTypesRequest.Builder> listSlotTypesRequest)
Gets a list of slot types that match the specified criteria.
This is a convenience which creates an instance of the ListSlotTypesRequest.Builder
avoiding the need to
create one manually via ListSlotTypesRequest.builder()
listSlotTypesRequest
- A Consumer
that will call methods on ListSlotTypesRequest.Builder
to create a request.default ListSlotTypesPublisher listSlotTypesPaginator(ListSlotTypesRequest listSlotTypesRequest)
Gets a list of slot types that match the specified criteria.
This is a variant of
listSlotTypes(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotTypesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListSlotTypesPublisher publisher = client.listSlotTypesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListSlotTypesPublisher publisher = client.listSlotTypesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListSlotTypesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotTypesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSlotTypes(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotTypesRequest)
operation.
listSlotTypesRequest
- default ListSlotTypesPublisher listSlotTypesPaginator(Consumer<ListSlotTypesRequest.Builder> listSlotTypesRequest)
Gets a list of slot types that match the specified criteria.
This is a variant of
listSlotTypes(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotTypesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListSlotTypesPublisher publisher = client.listSlotTypesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListSlotTypesPublisher publisher = client.listSlotTypesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListSlotTypesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotTypesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSlotTypes(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotTypesRequest)
operation.
This is a convenience which creates an instance of the ListSlotTypesRequest.Builder
avoiding the need to
create one manually via ListSlotTypesRequest.builder()
listSlotTypesRequest
- A Consumer
that will call methods on ListSlotTypesRequest.Builder
to create a request.default CompletableFuture<ListSlotsResponse> listSlots(ListSlotsRequest listSlotsRequest)
Gets a list of slots that match the specified criteria.
listSlotsRequest
- default CompletableFuture<ListSlotsResponse> listSlots(Consumer<ListSlotsRequest.Builder> listSlotsRequest)
Gets a list of slots that match the specified criteria.
This is a convenience which creates an instance of the ListSlotsRequest.Builder
avoiding the need to
create one manually via ListSlotsRequest.builder()
listSlotsRequest
- A Consumer
that will call methods on ListSlotsRequest.Builder
to create a request.default ListSlotsPublisher listSlotsPaginator(ListSlotsRequest listSlotsRequest)
Gets a list of slots that match the specified criteria.
This is a variant of listSlots(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListSlotsPublisher publisher = client.listSlotsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListSlotsPublisher publisher = client.listSlotsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListSlotsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSlots(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotsRequest)
operation.
listSlotsRequest
- default ListSlotsPublisher listSlotsPaginator(Consumer<ListSlotsRequest.Builder> listSlotsRequest)
Gets a list of slots that match the specified criteria.
This is a variant of listSlots(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lexmodelsv2.paginators.ListSlotsPublisher publisher = client.listSlotsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lexmodelsv2.paginators.ListSlotsPublisher publisher = client.listSlotsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lexmodelsv2.model.ListSlotsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSlots(software.amazon.awssdk.services.lexmodelsv2.model.ListSlotsRequest)
operation.
This is a convenience which creates an instance of the ListSlotsRequest.Builder
avoiding the need to
create one manually via ListSlotsRequest.builder()
listSlotsRequest
- A Consumer
that will call methods on ListSlotsRequest.Builder
to create a request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Gets a list of tags associated with a resource. Only bots, bot aliases, and bot channels can have tags associated with them.
listTagsForResourceRequest
- default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Gets a list of tags associated with a resource. Only bots, bot aliases, and bot channels can have tags associated with them.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder
avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest
- A Consumer
that will call methods on ListTagsForResourceRequest.Builder
to create a
request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.
tagResourceRequest
- default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.
This is a convenience which creates an instance of the TagResourceRequest.Builder
avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest
- A Consumer
that will call methods on TagResourceRequest.Builder
to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from a bot, bot alias, or bot channel.
untagResourceRequest
- default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from a bot, bot alias, or bot channel.
This is a convenience which creates an instance of the UntagResourceRequest.Builder
avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest
- A Consumer
that will call methods on UntagResourceRequest.Builder
to create a request.default CompletableFuture<UpdateBotResponse> updateBot(UpdateBotRequest updateBotRequest)
Updates the configuration of an existing bot.
updateBotRequest
- default CompletableFuture<UpdateBotResponse> updateBot(Consumer<UpdateBotRequest.Builder> updateBotRequest)
Updates the configuration of an existing bot.
This is a convenience which creates an instance of the UpdateBotRequest.Builder
avoiding the need to
create one manually via UpdateBotRequest.builder()
updateBotRequest
- A Consumer
that will call methods on UpdateBotRequest.Builder
to create a request.default CompletableFuture<UpdateBotAliasResponse> updateBotAlias(UpdateBotAliasRequest updateBotAliasRequest)
Updates the configuration of an existing bot alias.
updateBotAliasRequest
- default CompletableFuture<UpdateBotAliasResponse> updateBotAlias(Consumer<UpdateBotAliasRequest.Builder> updateBotAliasRequest)
Updates the configuration of an existing bot alias.
This is a convenience which creates an instance of the UpdateBotAliasRequest.Builder
avoiding the need to
create one manually via UpdateBotAliasRequest.builder()
updateBotAliasRequest
- A Consumer
that will call methods on UpdateBotAliasRequest.Builder
to create a request.default CompletableFuture<UpdateBotLocaleResponse> updateBotLocale(UpdateBotLocaleRequest updateBotLocaleRequest)
Updates the settings that a bot has for a specific locale.
updateBotLocaleRequest
- default CompletableFuture<UpdateBotLocaleResponse> updateBotLocale(Consumer<UpdateBotLocaleRequest.Builder> updateBotLocaleRequest)
Updates the settings that a bot has for a specific locale.
This is a convenience which creates an instance of the UpdateBotLocaleRequest.Builder
avoiding the need
to create one manually via UpdateBotLocaleRequest.builder()
updateBotLocaleRequest
- A Consumer
that will call methods on UpdateBotLocaleRequest.Builder
to create a request.default CompletableFuture<UpdateIntentResponse> updateIntent(UpdateIntentRequest updateIntentRequest)
Updates the settings for an intent.
updateIntentRequest
- default CompletableFuture<UpdateIntentResponse> updateIntent(Consumer<UpdateIntentRequest.Builder> updateIntentRequest)
Updates the settings for an intent.
This is a convenience which creates an instance of the UpdateIntentRequest.Builder
avoiding the need to
create one manually via UpdateIntentRequest.builder()
updateIntentRequest
- A Consumer
that will call methods on UpdateIntentRequest.Builder
to create a request.default CompletableFuture<UpdateSlotResponse> updateSlot(UpdateSlotRequest updateSlotRequest)
Updates the settings for a slot.
updateSlotRequest
- default CompletableFuture<UpdateSlotResponse> updateSlot(Consumer<UpdateSlotRequest.Builder> updateSlotRequest)
Updates the settings for a slot.
This is a convenience which creates an instance of the UpdateSlotRequest.Builder
avoiding the need to
create one manually via UpdateSlotRequest.builder()
updateSlotRequest
- A Consumer
that will call methods on UpdateSlotRequest.Builder
to create a request.default CompletableFuture<UpdateSlotTypeResponse> updateSlotType(UpdateSlotTypeRequest updateSlotTypeRequest)
Updates the configuration of an existing slot type.
updateSlotTypeRequest
- default CompletableFuture<UpdateSlotTypeResponse> updateSlotType(Consumer<UpdateSlotTypeRequest.Builder> updateSlotTypeRequest)
Updates the configuration of an existing slot type.
This is a convenience which creates an instance of the UpdateSlotTypeRequest.Builder
avoiding the need to
create one manually via UpdateSlotTypeRequest.builder()
updateSlotTypeRequest
- A Consumer
that will call methods on UpdateSlotTypeRequest.Builder
to create a request.