Interface LexModelBuildingClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Amazon Lex is an AWS service for building conversational voice and text interfaces. Use these actions to create, update, and delete conversational bots for new and existing client applications.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aLexModelBuildingClient.static LexModelBuildingClientcreate()Create aLexModelBuildingClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateBotVersionResponsecreateBotVersion(Consumer<CreateBotVersionRequest.Builder> createBotVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default CreateBotVersionResponsecreateBotVersion(CreateBotVersionRequest createBotVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default CreateIntentVersionResponsecreateIntentVersion(Consumer<CreateIntentVersionRequest.Builder> createIntentVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default CreateIntentVersionResponsecreateIntentVersion(CreateIntentVersionRequest createIntentVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default CreateSlotTypeVersionResponsecreateSlotTypeVersion(Consumer<CreateSlotTypeVersionRequest.Builder> createSlotTypeVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default CreateSlotTypeVersionResponsecreateSlotTypeVersion(CreateSlotTypeVersionRequest createSlotTypeVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteBotResponsedeleteBot(Consumer<DeleteBotRequest.Builder> deleteBotRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteBotResponsedeleteBot(DeleteBotRequest deleteBotRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteBotAliasResponsedeleteBotAlias(Consumer<DeleteBotAliasRequest.Builder> deleteBotAliasRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteBotAliasResponsedeleteBotAlias(DeleteBotAliasRequest deleteBotAliasRequest) Deprecated.Amazon Lex V1 is deprecated.deleteBotChannelAssociation(Consumer<DeleteBotChannelAssociationRequest.Builder> deleteBotChannelAssociationRequest) Deprecated.Amazon Lex V1 is deprecated.deleteBotChannelAssociation(DeleteBotChannelAssociationRequest deleteBotChannelAssociationRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteBotVersionResponsedeleteBotVersion(Consumer<DeleteBotVersionRequest.Builder> deleteBotVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteBotVersionResponsedeleteBotVersion(DeleteBotVersionRequest deleteBotVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteIntentResponsedeleteIntent(Consumer<DeleteIntentRequest.Builder> deleteIntentRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteIntentResponsedeleteIntent(DeleteIntentRequest deleteIntentRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteIntentVersionResponsedeleteIntentVersion(Consumer<DeleteIntentVersionRequest.Builder> deleteIntentVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteIntentVersionResponsedeleteIntentVersion(DeleteIntentVersionRequest deleteIntentVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteSlotTypeResponsedeleteSlotType(Consumer<DeleteSlotTypeRequest.Builder> deleteSlotTypeRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteSlotTypeResponsedeleteSlotType(DeleteSlotTypeRequest deleteSlotTypeRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteSlotTypeVersionResponsedeleteSlotTypeVersion(Consumer<DeleteSlotTypeVersionRequest.Builder> deleteSlotTypeVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteSlotTypeVersionResponsedeleteSlotTypeVersion(DeleteSlotTypeVersionRequest deleteSlotTypeVersionRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteUtterancesResponsedeleteUtterances(Consumer<DeleteUtterancesRequest.Builder> deleteUtterancesRequest) Deprecated.Amazon Lex V1 is deprecated.default DeleteUtterancesResponsedeleteUtterances(DeleteUtterancesRequest deleteUtterancesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotResponsegetBot(Consumer<GetBotRequest.Builder> getBotRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotResponsegetBot(GetBotRequest getBotRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotAliasResponsegetBotAlias(Consumer<GetBotAliasRequest.Builder> getBotAliasRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotAliasResponsegetBotAlias(GetBotAliasRequest getBotAliasRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotAliasesResponsegetBotAliases(Consumer<GetBotAliasesRequest.Builder> getBotAliasesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotAliasesResponsegetBotAliases(GetBotAliasesRequest getBotAliasesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotAliasesIterablegetBotAliasesPaginator(Consumer<GetBotAliasesRequest.Builder> getBotAliasesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotAliasesIterablegetBotAliasesPaginator(GetBotAliasesRequest getBotAliasesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotChannelAssociationResponsegetBotChannelAssociation(Consumer<GetBotChannelAssociationRequest.Builder> getBotChannelAssociationRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotChannelAssociationResponsegetBotChannelAssociation(GetBotChannelAssociationRequest getBotChannelAssociationRequest) Deprecated.Amazon Lex V1 is deprecated.getBotChannelAssociations(Consumer<GetBotChannelAssociationsRequest.Builder> getBotChannelAssociationsRequest) Deprecated.Amazon Lex V1 is deprecated.getBotChannelAssociations(GetBotChannelAssociationsRequest getBotChannelAssociationsRequest) Deprecated.Amazon Lex V1 is deprecated.getBotChannelAssociationsPaginator(Consumer<GetBotChannelAssociationsRequest.Builder> getBotChannelAssociationsRequest) Deprecated.Amazon Lex V1 is deprecated.getBotChannelAssociationsPaginator(GetBotChannelAssociationsRequest getBotChannelAssociationsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotsResponsegetBots()Deprecated.Amazon Lex V1 is deprecated.default GetBotsResponsegetBots(Consumer<GetBotsRequest.Builder> getBotsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotsResponsegetBots(GetBotsRequest getBotsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotsIterableDeprecated.Amazon Lex V1 is deprecated.default GetBotsIterablegetBotsPaginator(Consumer<GetBotsRequest.Builder> getBotsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotsIterablegetBotsPaginator(GetBotsRequest getBotsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotVersionsResponsegetBotVersions(Consumer<GetBotVersionsRequest.Builder> getBotVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotVersionsResponsegetBotVersions(GetBotVersionsRequest getBotVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotVersionsIterablegetBotVersionsPaginator(Consumer<GetBotVersionsRequest.Builder> getBotVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBotVersionsIterablegetBotVersionsPaginator(GetBotVersionsRequest getBotVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinIntentResponsegetBuiltinIntent(Consumer<GetBuiltinIntentRequest.Builder> getBuiltinIntentRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinIntentResponsegetBuiltinIntent(GetBuiltinIntentRequest getBuiltinIntentRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinIntentsResponseDeprecated.Amazon Lex V1 is deprecated.default GetBuiltinIntentsResponsegetBuiltinIntents(Consumer<GetBuiltinIntentsRequest.Builder> getBuiltinIntentsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinIntentsResponsegetBuiltinIntents(GetBuiltinIntentsRequest getBuiltinIntentsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinIntentsIterableDeprecated.Amazon Lex V1 is deprecated.default GetBuiltinIntentsIterablegetBuiltinIntentsPaginator(Consumer<GetBuiltinIntentsRequest.Builder> getBuiltinIntentsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinIntentsIterablegetBuiltinIntentsPaginator(GetBuiltinIntentsRequest getBuiltinIntentsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinSlotTypesResponseDeprecated.Amazon Lex V1 is deprecated.default GetBuiltinSlotTypesResponsegetBuiltinSlotTypes(Consumer<GetBuiltinSlotTypesRequest.Builder> getBuiltinSlotTypesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinSlotTypesResponsegetBuiltinSlotTypes(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinSlotTypesIterableDeprecated.Amazon Lex V1 is deprecated.default GetBuiltinSlotTypesIterablegetBuiltinSlotTypesPaginator(Consumer<GetBuiltinSlotTypesRequest.Builder> getBuiltinSlotTypesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetBuiltinSlotTypesIterablegetBuiltinSlotTypesPaginator(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetExportResponsegetExport(Consumer<GetExportRequest.Builder> getExportRequest) Deprecated.Amazon Lex V1 is deprecated.default GetExportResponsegetExport(GetExportRequest getExportRequest) Deprecated.Amazon Lex V1 is deprecated.default GetImportResponsegetImport(Consumer<GetImportRequest.Builder> getImportRequest) Deprecated.Amazon Lex V1 is deprecated.default GetImportResponsegetImport(GetImportRequest getImportRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentResponsegetIntent(Consumer<GetIntentRequest.Builder> getIntentRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentResponsegetIntent(GetIntentRequest getIntentRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentsResponseDeprecated.Amazon Lex V1 is deprecated.default GetIntentsResponsegetIntents(Consumer<GetIntentsRequest.Builder> getIntentsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentsResponsegetIntents(GetIntentsRequest getIntentsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentsIterableDeprecated.Amazon Lex V1 is deprecated.default GetIntentsIterablegetIntentsPaginator(Consumer<GetIntentsRequest.Builder> getIntentsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentsIterablegetIntentsPaginator(GetIntentsRequest getIntentsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentVersionsResponsegetIntentVersions(Consumer<GetIntentVersionsRequest.Builder> getIntentVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentVersionsResponsegetIntentVersions(GetIntentVersionsRequest getIntentVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentVersionsIterablegetIntentVersionsPaginator(Consumer<GetIntentVersionsRequest.Builder> getIntentVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetIntentVersionsIterablegetIntentVersionsPaginator(GetIntentVersionsRequest getIntentVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetMigrationResponsegetMigration(Consumer<GetMigrationRequest.Builder> getMigrationRequest) Deprecated.Amazon Lex V1 is deprecated.default GetMigrationResponsegetMigration(GetMigrationRequest getMigrationRequest) Deprecated.Amazon Lex V1 is deprecated.default GetMigrationsResponsegetMigrations(Consumer<GetMigrationsRequest.Builder> getMigrationsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetMigrationsResponsegetMigrations(GetMigrationsRequest getMigrationsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetMigrationsIterablegetMigrationsPaginator(Consumer<GetMigrationsRequest.Builder> getMigrationsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetMigrationsIterablegetMigrationsPaginator(GetMigrationsRequest getMigrationsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypeResponsegetSlotType(Consumer<GetSlotTypeRequest.Builder> getSlotTypeRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypeResponsegetSlotType(GetSlotTypeRequest getSlotTypeRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypesResponseDeprecated.Amazon Lex V1 is deprecated.default GetSlotTypesResponsegetSlotTypes(Consumer<GetSlotTypesRequest.Builder> getSlotTypesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypesResponsegetSlotTypes(GetSlotTypesRequest getSlotTypesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypesIterableDeprecated.Amazon Lex V1 is deprecated.default GetSlotTypesIterablegetSlotTypesPaginator(Consumer<GetSlotTypesRequest.Builder> getSlotTypesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypesIterablegetSlotTypesPaginator(GetSlotTypesRequest getSlotTypesRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypeVersionsResponsegetSlotTypeVersions(Consumer<GetSlotTypeVersionsRequest.Builder> getSlotTypeVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypeVersionsResponsegetSlotTypeVersions(GetSlotTypeVersionsRequest getSlotTypeVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypeVersionsIterablegetSlotTypeVersionsPaginator(Consumer<GetSlotTypeVersionsRequest.Builder> getSlotTypeVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetSlotTypeVersionsIterablegetSlotTypeVersionsPaginator(GetSlotTypeVersionsRequest getSlotTypeVersionsRequest) Deprecated.Amazon Lex V1 is deprecated.default GetUtterancesViewResponsegetUtterancesView(Consumer<GetUtterancesViewRequest.Builder> getUtterancesViewRequest) Deprecated.Amazon Lex V1 is deprecated.default GetUtterancesViewResponsegetUtterancesView(GetUtterancesViewRequest getUtterancesViewRequest) Deprecated.Amazon Lex V1 is deprecated.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Deprecated.Amazon Lex V1 is deprecated.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Deprecated.Amazon Lex V1 is deprecated.default PutBotResponseputBot(Consumer<PutBotRequest.Builder> putBotRequest) Deprecated.Amazon Lex V1 is deprecated.default PutBotResponseputBot(PutBotRequest putBotRequest) Deprecated.Amazon Lex V1 is deprecated.default PutBotAliasResponseputBotAlias(Consumer<PutBotAliasRequest.Builder> putBotAliasRequest) Deprecated.Amazon Lex V1 is deprecated.default PutBotAliasResponseputBotAlias(PutBotAliasRequest putBotAliasRequest) Deprecated.Amazon Lex V1 is deprecated.default PutIntentResponseputIntent(Consumer<PutIntentRequest.Builder> putIntentRequest) Deprecated.Amazon Lex V1 is deprecated.default PutIntentResponseputIntent(PutIntentRequest putIntentRequest) Deprecated.Amazon Lex V1 is deprecated.default PutSlotTypeResponseputSlotType(Consumer<PutSlotTypeRequest.Builder> putSlotTypeRequest) Deprecated.Amazon Lex V1 is deprecated.default PutSlotTypeResponseputSlotType(PutSlotTypeRequest putSlotTypeRequest) Deprecated.Amazon Lex V1 is deprecated.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartImportResponsestartImport(Consumer<StartImportRequest.Builder> startImportRequest) Deprecated.Amazon Lex V1 is deprecated.default StartImportResponsestartImport(StartImportRequest startImportRequest) Deprecated.Amazon Lex V1 is deprecated.default StartMigrationResponsestartMigration(Consumer<StartMigrationRequest.Builder> startMigrationRequest) Deprecated.Amazon Lex V1 is deprecated.default StartMigrationResponsestartMigration(StartMigrationRequest startMigrationRequest) Deprecated.Amazon Lex V1 is deprecated.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Deprecated.Amazon Lex V1 is deprecated.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Deprecated.Amazon Lex V1 is deprecated.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Deprecated.Amazon Lex V1 is deprecated.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Deprecated.Amazon Lex V1 is deprecated.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createBotVersion
@Deprecated default CreateBotVersionResponse createBotVersion(CreateBotVersionRequest createBotVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates a new version of the bot based on the
invalid input: '$'LATESTversion. If theinvalid input: '$'LATESTversion 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.You can update only the
invalid input: '$'LATESTversion of the bot. You can't update the numbered versions that you create with theCreateBotVersionoperation.When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permission for the
lex:CreateBotVersionaction.- Parameters:
createBotVersionRequest-- Returns:
- Result of the CreateBotVersion operation returned by the service.
- See Also:
-
createBotVersion
@Deprecated default CreateBotVersionResponse createBotVersion(Consumer<CreateBotVersionRequest.Builder> createBotVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates a new version of the bot based on the
invalid input: '$'LATESTversion. If theinvalid input: '$'LATESTversion 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.You can update only the
invalid input: '$'LATESTversion of the bot. You can't update the numbered versions that you create with theCreateBotVersionoperation.When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permission for the
lex:CreateBotVersionaction.
This is a convenience which creates an instance of the
CreateBotVersionRequest.Builderavoiding the need to create one manually viaCreateBotVersionRequest.builder()- Parameters:
createBotVersionRequest- AConsumerthat will call methods onCreateBotVersionRequest.Builderto create a request.- Returns:
- Result of the CreateBotVersion operation returned by the service.
- See Also:
-
createIntentVersion
@Deprecated default CreateIntentVersionResponse createIntentVersion(CreateIntentVersionRequest createIntentVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates a new version of an intent based on the
invalid input: '$'LATESTversion of the intent. If theinvalid input: '$'LATESTversion of this intent hasn't changed since you last updated it, Amazon Lex doesn't create a new version. It returns the last version you created.You can update only the
invalid input: '$'LATESTversion of the intent. You can't update the numbered versions that you create with theCreateIntentVersionoperation.When you create a version of an intent, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions to perform the
lex:CreateIntentVersionaction.- Parameters:
createIntentVersionRequest-- Returns:
- Result of the CreateIntentVersion operation returned by the service.
- See Also:
-
createIntentVersion
@Deprecated default CreateIntentVersionResponse createIntentVersion(Consumer<CreateIntentVersionRequest.Builder> createIntentVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates a new version of an intent based on the
invalid input: '$'LATESTversion of the intent. If theinvalid input: '$'LATESTversion of this intent hasn't changed since you last updated it, Amazon Lex doesn't create a new version. It returns the last version you created.You can update only the
invalid input: '$'LATESTversion of the intent. You can't update the numbered versions that you create with theCreateIntentVersionoperation.When you create a version of an intent, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions to perform the
lex:CreateIntentVersionaction.
This is a convenience which creates an instance of the
CreateIntentVersionRequest.Builderavoiding the need to create one manually viaCreateIntentVersionRequest.builder()- Parameters:
createIntentVersionRequest- AConsumerthat will call methods onCreateIntentVersionRequest.Builderto create a request.- Returns:
- Result of the CreateIntentVersion operation returned by the service.
- See Also:
-
createSlotTypeVersion
@Deprecated default CreateSlotTypeVersionResponse createSlotTypeVersion(CreateSlotTypeVersionRequest createSlotTypeVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates a new version of a slot type based on the
invalid input: '$'LATESTversion of the specified slot type. If theinvalid input: '$'LATESTversion of this resource has not changed since the last version that you created, Amazon Lex doesn't create a new version. It returns the last version that you created.You can update only the
invalid input: '$'LATESTversion of a slot type. You can't update the numbered versions that you create with theCreateSlotTypeVersionoperation.When you create a version of a slot type, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions for the
lex:CreateSlotTypeVersionaction.- Parameters:
createSlotTypeVersionRequest-- Returns:
- Result of the CreateSlotTypeVersion operation returned by the service.
- See Also:
-
createSlotTypeVersion
@Deprecated default CreateSlotTypeVersionResponse createSlotTypeVersion(Consumer<CreateSlotTypeVersionRequest.Builder> createSlotTypeVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates a new version of a slot type based on the
invalid input: '$'LATESTversion of the specified slot type. If theinvalid input: '$'LATESTversion of this resource has not changed since the last version that you created, Amazon Lex doesn't create a new version. It returns the last version that you created.You can update only the
invalid input: '$'LATESTversion of a slot type. You can't update the numbered versions that you create with theCreateSlotTypeVersionoperation.When you create a version of a slot type, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions for the
lex:CreateSlotTypeVersionaction.
This is a convenience which creates an instance of the
CreateSlotTypeVersionRequest.Builderavoiding the need to create one manually viaCreateSlotTypeVersionRequest.builder()- Parameters:
createSlotTypeVersionRequest- AConsumerthat will call methods onCreateSlotTypeVersionRequest.Builderto create a request.- Returns:
- Result of the CreateSlotTypeVersion operation returned by the service.
- See Also:
-
deleteBot
@Deprecated default DeleteBotResponse deleteBot(DeleteBotRequest deleteBotRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes all versions of the bot, including the
invalid input: '$'LATESTversion. To delete a specific version of the bot, use the DeleteBotVersion operation. TheDeleteBotoperation doesn't immediately remove the bot schema. Instead, it is marked for deletion and removed later.Amazon Lex stores utterances indefinitely for improving the ability of your bot to respond to user inputs. These utterances are not removed when the bot is deleted. To remove the utterances, use the DeleteUtterances operation.
If a bot has an alias, you can't delete it. Instead, the
DeleteBotoperation returns aResourceInUseExceptionexception that includes a reference to the alias that refers to the bot. To remove the reference to the bot, delete the alias. If you get the same exception again, delete the referring alias until theDeleteBotoperation is successful.This operation requires permissions for the
lex:DeleteBotaction.- Parameters:
deleteBotRequest-- Returns:
- Result of the DeleteBot operation returned by the service.
- See Also:
-
deleteBot
@Deprecated default DeleteBotResponse deleteBot(Consumer<DeleteBotRequest.Builder> deleteBotRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes all versions of the bot, including the
invalid input: '$'LATESTversion. To delete a specific version of the bot, use the DeleteBotVersion operation. TheDeleteBotoperation doesn't immediately remove the bot schema. Instead, it is marked for deletion and removed later.Amazon Lex stores utterances indefinitely for improving the ability of your bot to respond to user inputs. These utterances are not removed when the bot is deleted. To remove the utterances, use the DeleteUtterances operation.
If a bot has an alias, you can't delete it. Instead, the
DeleteBotoperation returns aResourceInUseExceptionexception that includes a reference to the alias that refers to the bot. To remove the reference to the bot, delete the alias. If you get the same exception again, delete the referring alias until theDeleteBotoperation is successful.This operation requires permissions for the
lex:DeleteBotaction.
This is a convenience which creates an instance of the
DeleteBotRequest.Builderavoiding the need to create one manually viaDeleteBotRequest.builder()- Parameters:
deleteBotRequest- AConsumerthat will call methods onDeleteBotRequest.Builderto create a request.- Returns:
- Result of the DeleteBot operation returned by the service.
- See Also:
-
deleteBotAlias
@Deprecated default DeleteBotAliasResponse deleteBotAlias(DeleteBotAliasRequest deleteBotAliasRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes an alias for the specified bot.
You can't delete an alias that is used in the association between a bot and a messaging channel. If an alias is used in a channel association, the
DeleteBotoperation returns aResourceInUseExceptionexception that includes a reference to the channel association that refers to the bot. You can remove the reference to the alias by deleting the channel association. If you get the same exception again, delete the referring association until theDeleteBotAliasoperation is successful.- Parameters:
deleteBotAliasRequest-- Returns:
- Result of the DeleteBotAlias operation returned by the service.
- See Also:
-
deleteBotAlias
@Deprecated default DeleteBotAliasResponse deleteBotAlias(Consumer<DeleteBotAliasRequest.Builder> deleteBotAliasRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes an alias for the specified bot.
You can't delete an alias that is used in the association between a bot and a messaging channel. If an alias is used in a channel association, the
DeleteBotoperation returns aResourceInUseExceptionexception that includes a reference to the channel association that refers to the bot. You can remove the reference to the alias by deleting the channel association. If you get the same exception again, delete the referring association until theDeleteBotAliasoperation is successful.
This is a convenience which creates an instance of the
DeleteBotAliasRequest.Builderavoiding the need to create one manually viaDeleteBotAliasRequest.builder()- Parameters:
deleteBotAliasRequest- AConsumerthat will call methods onDeleteBotAliasRequest.Builderto create a request.- Returns:
- Result of the DeleteBotAlias operation returned by the service.
- See Also:
-
deleteBotChannelAssociation
@Deprecated default DeleteBotChannelAssociationResponse deleteBotChannelAssociation(DeleteBotChannelAssociationRequest deleteBotChannelAssociationRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes the association between an Amazon Lex bot and a messaging platform.
This operation requires permission for the
lex:DeleteBotChannelAssociationaction.- Parameters:
deleteBotChannelAssociationRequest-- Returns:
- Result of the DeleteBotChannelAssociation operation returned by the service.
- See Also:
-
deleteBotChannelAssociation
@Deprecated default DeleteBotChannelAssociationResponse deleteBotChannelAssociation(Consumer<DeleteBotChannelAssociationRequest.Builder> deleteBotChannelAssociationRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes the association between an Amazon Lex bot and a messaging platform.
This operation requires permission for the
lex:DeleteBotChannelAssociationaction.
This is a convenience which creates an instance of the
DeleteBotChannelAssociationRequest.Builderavoiding the need to create one manually viaDeleteBotChannelAssociationRequest.builder()- Parameters:
deleteBotChannelAssociationRequest- AConsumerthat will call methods onDeleteBotChannelAssociationRequest.Builderto create a request.- Returns:
- Result of the DeleteBotChannelAssociation operation returned by the service.
- See Also:
-
deleteBotVersion
@Deprecated default DeleteBotVersionResponse deleteBotVersion(DeleteBotVersionRequest deleteBotVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
This operation requires permissions for the
lex:DeleteBotVersionaction.- Parameters:
deleteBotVersionRequest-- Returns:
- Result of the DeleteBotVersion operation returned by the service.
- See Also:
-
deleteBotVersion
@Deprecated default DeleteBotVersionResponse deleteBotVersion(Consumer<DeleteBotVersionRequest.Builder> deleteBotVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
This operation requires permissions for the
lex:DeleteBotVersionaction.
This is a convenience which creates an instance of the
DeleteBotVersionRequest.Builderavoiding the need to create one manually viaDeleteBotVersionRequest.builder()- Parameters:
deleteBotVersionRequest- AConsumerthat will call methods onDeleteBotVersionRequest.Builderto create a request.- Returns:
- Result of the DeleteBotVersion operation returned by the service.
- See Also:
-
deleteIntent
@Deprecated default DeleteIntentResponse deleteIntent(DeleteIntentRequest deleteIntentRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes all versions of the intent, including the
invalid input: '$'LATESTversion. To delete a specific version of the intent, use the DeleteIntentVersion operation.You can delete a version of an intent only if it is not referenced. To delete an intent that is referred to in one or more bots (see how-it-works), you must remove those references first.
If you get the
ResourceInUseExceptionexception, it provides an example reference that shows where the intent is referenced. To remove the reference to the intent, either update the bot or delete it. If you get the same exception when you attempt to delete the intent again, repeat until the intent has no references and the call toDeleteIntentis successful.This operation requires permission for the
lex:DeleteIntentaction.- Parameters:
deleteIntentRequest-- Returns:
- Result of the DeleteIntent operation returned by the service.
- See Also:
-
deleteIntent
@Deprecated default DeleteIntentResponse deleteIntent(Consumer<DeleteIntentRequest.Builder> deleteIntentRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes all versions of the intent, including the
invalid input: '$'LATESTversion. To delete a specific version of the intent, use the DeleteIntentVersion operation.You can delete a version of an intent only if it is not referenced. To delete an intent that is referred to in one or more bots (see how-it-works), you must remove those references first.
If you get the
ResourceInUseExceptionexception, it provides an example reference that shows where the intent is referenced. To remove the reference to the intent, either update the bot or delete it. If you get the same exception when you attempt to delete the intent again, repeat until the intent has no references and the call toDeleteIntentis successful.This operation requires permission for the
lex:DeleteIntentaction.
This is a convenience which creates an instance of the
DeleteIntentRequest.Builderavoiding the need to create one manually viaDeleteIntentRequest.builder()- Parameters:
deleteIntentRequest- AConsumerthat will call methods onDeleteIntentRequest.Builderto create a request.- Returns:
- Result of the DeleteIntent operation returned by the service.
- See Also:
-
deleteIntentVersion
@Deprecated default DeleteIntentVersionResponse deleteIntentVersion(DeleteIntentVersionRequest deleteIntentVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes a specific version of an intent. To delete all versions of a intent, use the DeleteIntent operation.
This operation requires permissions for the
lex:DeleteIntentVersionaction.- Parameters:
deleteIntentVersionRequest-- Returns:
- Result of the DeleteIntentVersion operation returned by the service.
- See Also:
-
deleteIntentVersion
@Deprecated default DeleteIntentVersionResponse deleteIntentVersion(Consumer<DeleteIntentVersionRequest.Builder> deleteIntentVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes a specific version of an intent. To delete all versions of a intent, use the DeleteIntent operation.
This operation requires permissions for the
lex:DeleteIntentVersionaction.
This is a convenience which creates an instance of the
DeleteIntentVersionRequest.Builderavoiding the need to create one manually viaDeleteIntentVersionRequest.builder()- Parameters:
deleteIntentVersionRequest- AConsumerthat will call methods onDeleteIntentVersionRequest.Builderto create a request.- Returns:
- Result of the DeleteIntentVersion operation returned by the service.
- See Also:
-
deleteSlotType
@Deprecated default DeleteSlotTypeResponse deleteSlotType(DeleteSlotTypeRequest deleteSlotTypeRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes all versions of the slot type, including the
invalid input: '$'LATESTversion. To delete a specific version of the slot type, use the DeleteSlotTypeVersion operation.You can delete a version of a slot type only if it is not referenced. To delete a slot type that is referred to in one or more intents, you must remove those references first.
If you get the
ResourceInUseExceptionexception, the exception provides an example reference that shows the intent where the slot type is referenced. To remove the reference to the slot type, either update the intent or delete it. If you get the same exception when you attempt to delete the slot type again, repeat until the slot type has no references and theDeleteSlotTypecall is successful.This operation requires permission for the
lex:DeleteSlotTypeaction.- Parameters:
deleteSlotTypeRequest-- Returns:
- Result of the DeleteSlotType operation returned by the service.
- See Also:
-
deleteSlotType
@Deprecated default DeleteSlotTypeResponse deleteSlotType(Consumer<DeleteSlotTypeRequest.Builder> deleteSlotTypeRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes all versions of the slot type, including the
invalid input: '$'LATESTversion. To delete a specific version of the slot type, use the DeleteSlotTypeVersion operation.You can delete a version of a slot type only if it is not referenced. To delete a slot type that is referred to in one or more intents, you must remove those references first.
If you get the
ResourceInUseExceptionexception, the exception provides an example reference that shows the intent where the slot type is referenced. To remove the reference to the slot type, either update the intent or delete it. If you get the same exception when you attempt to delete the slot type again, repeat until the slot type has no references and theDeleteSlotTypecall is successful.This operation requires permission for the
lex:DeleteSlotTypeaction.
This is a convenience which creates an instance of the
DeleteSlotTypeRequest.Builderavoiding the need to create one manually viaDeleteSlotTypeRequest.builder()- Parameters:
deleteSlotTypeRequest- AConsumerthat will call methods onDeleteSlotTypeRequest.Builderto create a request.- Returns:
- Result of the DeleteSlotType operation returned by the service.
- See Also:
-
deleteSlotTypeVersion
@Deprecated default DeleteSlotTypeVersionResponse deleteSlotTypeVersion(DeleteSlotTypeVersionRequest deleteSlotTypeVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes a specific version of a slot type. To delete all versions of a slot type, use the DeleteSlotType operation.
This operation requires permissions for the
lex:DeleteSlotTypeVersionaction.- Parameters:
deleteSlotTypeVersionRequest-- Returns:
- Result of the DeleteSlotTypeVersion operation returned by the service.
- See Also:
-
deleteSlotTypeVersion
@Deprecated default DeleteSlotTypeVersionResponse deleteSlotTypeVersion(Consumer<DeleteSlotTypeVersionRequest.Builder> deleteSlotTypeVersionRequest) throws NotFoundException, ConflictException, LimitExceededException, InternalFailureException, BadRequestException, ResourceInUseException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes a specific version of a slot type. To delete all versions of a slot type, use the DeleteSlotType operation.
This operation requires permissions for the
lex:DeleteSlotTypeVersionaction.
This is a convenience which creates an instance of the
DeleteSlotTypeVersionRequest.Builderavoiding the need to create one manually viaDeleteSlotTypeVersionRequest.builder()- Parameters:
deleteSlotTypeVersionRequest- AConsumerthat will call methods onDeleteSlotTypeVersionRequest.Builderto create a request.- Returns:
- Result of the DeleteSlotTypeVersion operation returned by the service.
- See Also:
-
deleteUtterances
@Deprecated default DeleteUtterancesResponse deleteUtterances(DeleteUtterancesRequest deleteUtterancesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes stored utterances.
Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the GetUtterancesView operation, and then stored indefinitely for use in improving the ability of your bot to respond to user input.
Use the
DeleteUtterancesoperation to manually delete stored utterances for a specific user. When you use theDeleteUtterancesoperation, utterances stored for improving your bot's ability to respond to user input are deleted immediately. Utterances stored for use with theGetUtterancesViewoperation are deleted after 15 days.This operation requires permissions for the
lex:DeleteUtterancesaction.- Parameters:
deleteUtterancesRequest-- Returns:
- Result of the DeleteUtterances operation returned by the service.
- See Also:
-
deleteUtterances
@Deprecated default DeleteUtterancesResponse deleteUtterances(Consumer<DeleteUtterancesRequest.Builder> deleteUtterancesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Deletes stored utterances.
Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the GetUtterancesView operation, and then stored indefinitely for use in improving the ability of your bot to respond to user input.
Use the
DeleteUtterancesoperation to manually delete stored utterances for a specific user. When you use theDeleteUtterancesoperation, utterances stored for improving your bot's ability to respond to user input are deleted immediately. Utterances stored for use with theGetUtterancesViewoperation are deleted after 15 days.This operation requires permissions for the
lex:DeleteUtterancesaction.
This is a convenience which creates an instance of the
DeleteUtterancesRequest.Builderavoiding the need to create one manually viaDeleteUtterancesRequest.builder()- Parameters:
deleteUtterancesRequest- AConsumerthat will call methods onDeleteUtterancesRequest.Builderto create a request.- Returns:
- Result of the DeleteUtterances operation returned by the service.
- See Also:
-
getBot
@Deprecated default GetBotResponse getBot(GetBotRequest getBotRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns metadata information for a specific bot. You must provide the bot name and the bot version or alias.
This operation requires permissions for the
lex:GetBotaction.- Parameters:
getBotRequest-- Returns:
- Result of the GetBot operation returned by the service.
- See Also:
-
getBot
@Deprecated default GetBotResponse getBot(Consumer<GetBotRequest.Builder> getBotRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns metadata information for a specific bot. You must provide the bot name and the bot version or alias.
This operation requires permissions for the
lex:GetBotaction.
This is a convenience which creates an instance of the
GetBotRequest.Builderavoiding the need to create one manually viaGetBotRequest.builder()- Parameters:
getBotRequest- AConsumerthat will call methods onGetBotRequest.Builderto create a request.- Returns:
- Result of the GetBot operation returned by the service.
- See Also:
-
getBotAlias
@Deprecated default GetBotAliasResponse getBotAlias(GetBotAliasRequest getBotAliasRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about an Amazon Lex bot alias. For more information about aliases, see versioning-aliases.
This operation requires permissions for the
lex:GetBotAliasaction.- Parameters:
getBotAliasRequest-- Returns:
- Result of the GetBotAlias operation returned by the service.
- See Also:
-
getBotAlias
@Deprecated default GetBotAliasResponse getBotAlias(Consumer<GetBotAliasRequest.Builder> getBotAliasRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about an Amazon Lex bot alias. For more information about aliases, see versioning-aliases.
This operation requires permissions for the
lex:GetBotAliasaction.
This is a convenience which creates an instance of the
GetBotAliasRequest.Builderavoiding the need to create one manually viaGetBotAliasRequest.builder()- Parameters:
getBotAliasRequest- AConsumerthat will call methods onGetBotAliasRequest.Builderto create a request.- Returns:
- Result of the GetBotAlias operation returned by the service.
- See Also:
-
getBotAliases
@Deprecated default GetBotAliasesResponse getBotAliases(GetBotAliasesRequest getBotAliasesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns a list of aliases for a specified Amazon Lex bot.
This operation requires permissions for the
lex:GetBotAliasesaction.- Parameters:
getBotAliasesRequest-- Returns:
- Result of the GetBotAliases operation returned by the service.
- See Also:
-
getBotAliases
@Deprecated default GetBotAliasesResponse getBotAliases(Consumer<GetBotAliasesRequest.Builder> getBotAliasesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns a list of aliases for a specified Amazon Lex bot.
This operation requires permissions for the
lex:GetBotAliasesaction.
This is a convenience which creates an instance of the
GetBotAliasesRequest.Builderavoiding the need to create one manually viaGetBotAliasesRequest.builder()- Parameters:
getBotAliasesRequest- AConsumerthat will call methods onGetBotAliasesRequest.Builderto create a request.- Returns:
- Result of the GetBotAliases operation returned by the service.
- See Also:
-
getBotAliasesPaginator
@Deprecated default GetBotAliasesIterable getBotAliasesPaginator(GetBotAliasesRequest getBotAliasesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBotAliases(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client.getBotAliasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client .getBotAliasesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client.getBotAliasesPaginator(request); responses.iterator().forEachRemaining(....);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
getBotAliases(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesRequest)operation.- Parameters:
getBotAliasesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBotAliasesPaginator
@Deprecated default GetBotAliasesIterable getBotAliasesPaginator(Consumer<GetBotAliasesRequest.Builder> getBotAliasesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBotAliases(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client.getBotAliasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client .getBotAliasesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotAliasesIterable responses = client.getBotAliasesPaginator(request); responses.iterator().forEachRemaining(....);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
getBotAliases(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotAliasesRequest)operation.
This is a convenience which creates an instance of the
GetBotAliasesRequest.Builderavoiding the need to create one manually viaGetBotAliasesRequest.builder()- Parameters:
getBotAliasesRequest- AConsumerthat will call methods onGetBotAliasesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBotChannelAssociation
@Deprecated default GetBotChannelAssociationResponse getBotChannelAssociation(GetBotChannelAssociationRequest getBotChannelAssociationRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about the association between an Amazon Lex bot and a messaging platform.
This operation requires permissions for the
lex:GetBotChannelAssociationaction.- Parameters:
getBotChannelAssociationRequest-- Returns:
- Result of the GetBotChannelAssociation operation returned by the service.
- See Also:
-
getBotChannelAssociation
@Deprecated default GetBotChannelAssociationResponse getBotChannelAssociation(Consumer<GetBotChannelAssociationRequest.Builder> getBotChannelAssociationRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about the association between an Amazon Lex bot and a messaging platform.
This operation requires permissions for the
lex:GetBotChannelAssociationaction.
This is a convenience which creates an instance of the
GetBotChannelAssociationRequest.Builderavoiding the need to create one manually viaGetBotChannelAssociationRequest.builder()- Parameters:
getBotChannelAssociationRequest- AConsumerthat will call methods onGetBotChannelAssociationRequest.Builderto create a request.- Returns:
- Result of the GetBotChannelAssociation operation returned by the service.
- See Also:
-
getBotChannelAssociations
@Deprecated default GetBotChannelAssociationsResponse getBotChannelAssociations(GetBotChannelAssociationsRequest getBotChannelAssociationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns a list of all of the channels associated with the specified bot.
The
GetBotChannelAssociationsoperation requires permissions for thelex:GetBotChannelAssociationsaction.- Parameters:
getBotChannelAssociationsRequest-- Returns:
- Result of the GetBotChannelAssociations operation returned by the service.
- See Also:
-
getBotChannelAssociations
@Deprecated default GetBotChannelAssociationsResponse getBotChannelAssociations(Consumer<GetBotChannelAssociationsRequest.Builder> getBotChannelAssociationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns a list of all of the channels associated with the specified bot.
The
GetBotChannelAssociationsoperation requires permissions for thelex:GetBotChannelAssociationsaction.
This is a convenience which creates an instance of the
GetBotChannelAssociationsRequest.Builderavoiding the need to create one manually viaGetBotChannelAssociationsRequest.builder()- Parameters:
getBotChannelAssociationsRequest- AConsumerthat will call methods onGetBotChannelAssociationsRequest.Builderto create a request.- Returns:
- Result of the GetBotChannelAssociations operation returned by the service.
- See Also:
-
getBotChannelAssociationsPaginator
@Deprecated default GetBotChannelAssociationsIterable getBotChannelAssociationsPaginator(GetBotChannelAssociationsRequest getBotChannelAssociationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBotChannelAssociations(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client.getBotChannelAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client .getBotChannelAssociationsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client.getBotChannelAssociationsPaginator(request); responses.iterator().forEachRemaining(....);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
getBotChannelAssociations(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsRequest)operation.- Parameters:
getBotChannelAssociationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBotChannelAssociationsPaginator
@Deprecated default GetBotChannelAssociationsIterable getBotChannelAssociationsPaginator(Consumer<GetBotChannelAssociationsRequest.Builder> getBotChannelAssociationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBotChannelAssociations(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client.getBotChannelAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client .getBotChannelAssociationsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotChannelAssociationsIterable responses = client.getBotChannelAssociationsPaginator(request); responses.iterator().forEachRemaining(....);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
getBotChannelAssociations(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotChannelAssociationsRequest)operation.
This is a convenience which creates an instance of the
GetBotChannelAssociationsRequest.Builderavoiding the need to create one manually viaGetBotChannelAssociationsRequest.builder()- Parameters:
getBotChannelAssociationsRequest- AConsumerthat will call methods onGetBotChannelAssociationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBotVersions
@Deprecated default GetBotVersionsResponse getBotVersions(GetBotVersionsRequest getBotVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets information about all of the versions of a bot.
The
GetBotVersionsoperation returns aBotMetadataobject for each version of a bot. For example, if a bot has three numbered versions, theGetBotVersionsoperation returns fourBotMetadataobjects in the response, one for each numbered version and one for theinvalid input: '$'LATESTversion.The
GetBotVersionsoperation always returns at least one version, theinvalid input: '$'LATESTversion.This operation requires permissions for the
lex:GetBotVersionsaction.- Parameters:
getBotVersionsRequest-- Returns:
- Result of the GetBotVersions operation returned by the service.
- See Also:
-
getBotVersions
@Deprecated default GetBotVersionsResponse getBotVersions(Consumer<GetBotVersionsRequest.Builder> getBotVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets information about all of the versions of a bot.
The
GetBotVersionsoperation returns aBotMetadataobject for each version of a bot. For example, if a bot has three numbered versions, theGetBotVersionsoperation returns fourBotMetadataobjects in the response, one for each numbered version and one for theinvalid input: '$'LATESTversion.The
GetBotVersionsoperation always returns at least one version, theinvalid input: '$'LATESTversion.This operation requires permissions for the
lex:GetBotVersionsaction.
This is a convenience which creates an instance of the
GetBotVersionsRequest.Builderavoiding the need to create one manually viaGetBotVersionsRequest.builder()- Parameters:
getBotVersionsRequest- AConsumerthat will call methods onGetBotVersionsRequest.Builderto create a request.- Returns:
- Result of the GetBotVersions operation returned by the service.
- See Also:
-
getBotVersionsPaginator
@Deprecated default GetBotVersionsIterable getBotVersionsPaginator(GetBotVersionsRequest getBotVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBotVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client.getBotVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client .getBotVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client.getBotVersionsPaginator(request); responses.iterator().forEachRemaining(....);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
getBotVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsRequest)operation.- Parameters:
getBotVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBotVersionsPaginator
@Deprecated default GetBotVersionsIterable getBotVersionsPaginator(Consumer<GetBotVersionsRequest.Builder> getBotVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBotVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client.getBotVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client .getBotVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotVersionsIterable responses = client.getBotVersionsPaginator(request); responses.iterator().forEachRemaining(....);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
getBotVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotVersionsRequest)operation.
This is a convenience which creates an instance of the
GetBotVersionsRequest.Builderavoiding the need to create one manually viaGetBotVersionsRequest.builder()- Parameters:
getBotVersionsRequest- AConsumerthat will call methods onGetBotVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBots
@Deprecated default GetBotsResponse getBots(GetBotsRequest getBotsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns bot information as follows:
-
If you provide the
nameContainsfield, the response includes information for theinvalid input: '$'LATESTversion of all bots whose name contains the specified string. -
If you don't specify the
nameContainsfield, the operation returns information about theinvalid input: '$'LATESTversion of all of your bots.
This operation requires permission for the
lex:GetBotsaction.- Parameters:
getBotsRequest-- Returns:
- Result of the GetBots operation returned by the service.
- See Also:
-
-
getBots
@Deprecated default GetBotsResponse getBots(Consumer<GetBotsRequest.Builder> getBotsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns bot information as follows:
-
If you provide the
nameContainsfield, the response includes information for theinvalid input: '$'LATESTversion of all bots whose name contains the specified string. -
If you don't specify the
nameContainsfield, the operation returns information about theinvalid input: '$'LATESTversion of all of your bots.
This operation requires permission for the
lex:GetBotsaction.
This is a convenience which creates an instance of the
GetBotsRequest.Builderavoiding the need to create one manually viaGetBotsRequest.builder()- Parameters:
getBotsRequest- AConsumerthat will call methods onGetBotsRequest.Builderto create a request.- Returns:
- Result of the GetBots operation returned by the service.
- See Also:
-
-
getBots
@Deprecated default GetBotsResponse getBots() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns bot information as follows:
-
If you provide the
nameContainsfield, the response includes information for theinvalid input: '$'LATESTversion of all bots whose name contains the specified string. -
If you don't specify the
nameContainsfield, the operation returns information about theinvalid input: '$'LATESTversion of all of your bots.
This operation requires permission for the
lex:GetBotsaction.- Returns:
- Result of the GetBots operation returned by the service.
- See Also:
-
-
getBotsPaginator
@Deprecated default GetBotsIterable getBotsPaginator() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); responses.iterator().forEachRemaining(....);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
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBotsPaginator
@Deprecated default GetBotsIterable getBotsPaginator(GetBotsRequest getBotsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); responses.iterator().forEachRemaining(....);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
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)operation.- Parameters:
getBotsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBotsPaginator
@Deprecated default GetBotsIterable getBotsPaginator(Consumer<GetBotsRequest.Builder> getBotsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBotsIterable responses = client.getBotsPaginator(request); responses.iterator().forEachRemaining(....);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
getBots(software.amazon.awssdk.services.lexmodelbuilding.model.GetBotsRequest)operation.
This is a convenience which creates an instance of the
GetBotsRequest.Builderavoiding the need to create one manually viaGetBotsRequest.builder()- Parameters:
getBotsRequest- AConsumerthat will call methods onGetBotsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBuiltinIntent
@Deprecated default GetBuiltinIntentResponse getBuiltinIntent(GetBuiltinIntentRequest getBuiltinIntentRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about a built-in intent.
This operation requires permission for the
lex:GetBuiltinIntentaction.- Parameters:
getBuiltinIntentRequest-- Returns:
- Result of the GetBuiltinIntent operation returned by the service.
- See Also:
-
getBuiltinIntent
@Deprecated default GetBuiltinIntentResponse getBuiltinIntent(Consumer<GetBuiltinIntentRequest.Builder> getBuiltinIntentRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about a built-in intent.
This operation requires permission for the
lex:GetBuiltinIntentaction.
This is a convenience which creates an instance of the
GetBuiltinIntentRequest.Builderavoiding the need to create one manually viaGetBuiltinIntentRequest.builder()- Parameters:
getBuiltinIntentRequest- AConsumerthat will call methods onGetBuiltinIntentRequest.Builderto create a request.- Returns:
- Result of the GetBuiltinIntent operation returned by the service.
- See Also:
-
getBuiltinIntents
@Deprecated default GetBuiltinIntentsResponse getBuiltinIntents(GetBuiltinIntentsRequest getBuiltinIntentsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the
lex:GetBuiltinIntentsaction.- Parameters:
getBuiltinIntentsRequest-- Returns:
- Result of the GetBuiltinIntents operation returned by the service.
- See Also:
-
getBuiltinIntents
@Deprecated default GetBuiltinIntentsResponse getBuiltinIntents(Consumer<GetBuiltinIntentsRequest.Builder> getBuiltinIntentsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the
lex:GetBuiltinIntentsaction.
This is a convenience which creates an instance of the
GetBuiltinIntentsRequest.Builderavoiding the need to create one manually viaGetBuiltinIntentsRequest.builder()- Parameters:
getBuiltinIntentsRequest- AConsumerthat will call methods onGetBuiltinIntentsRequest.Builderto create a request.- Returns:
- Result of the GetBuiltinIntents operation returned by the service.
- See Also:
-
getBuiltinIntents
@Deprecated default GetBuiltinIntentsResponse getBuiltinIntents() throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of built-in intents that meet the specified criteria.
This operation requires permission for the
lex:GetBuiltinIntentsaction.- Returns:
- Result of the GetBuiltinIntents operation returned by the service.
- See Also:
-
getBuiltinIntentsPaginator
@Deprecated default GetBuiltinIntentsIterable getBuiltinIntentsPaginator() throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client .getBuiltinIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request); responses.iterator().forEachRemaining(....);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
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBuiltinIntentsPaginator
@Deprecated default GetBuiltinIntentsIterable getBuiltinIntentsPaginator(GetBuiltinIntentsRequest getBuiltinIntentsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client .getBuiltinIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request); responses.iterator().forEachRemaining(....);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
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)operation.- Parameters:
getBuiltinIntentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBuiltinIntentsPaginator
@Deprecated default GetBuiltinIntentsIterable getBuiltinIntentsPaginator(Consumer<GetBuiltinIntentsRequest.Builder> getBuiltinIntentsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client .getBuiltinIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinIntentsIterable responses = client.getBuiltinIntentsPaginator(request); responses.iterator().forEachRemaining(....);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
getBuiltinIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinIntentsRequest)operation.
This is a convenience which creates an instance of the
GetBuiltinIntentsRequest.Builderavoiding the need to create one manually viaGetBuiltinIntentsRequest.builder()- Parameters:
getBuiltinIntentsRequest- AConsumerthat will call methods onGetBuiltinIntentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBuiltinSlotTypes
@Deprecated default GetBuiltinSlotTypesResponse getBuiltinSlotTypes(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of built-in slot types that meet the specified criteria.
For a list of built-in slot types, see Slot Type Reference in the Alexa Skills Kit.
This operation requires permission for the
lex:GetBuiltInSlotTypesaction.- Parameters:
getBuiltinSlotTypesRequest-- Returns:
- Result of the GetBuiltinSlotTypes operation returned by the service.
- See Also:
-
getBuiltinSlotTypes
@Deprecated default GetBuiltinSlotTypesResponse getBuiltinSlotTypes(Consumer<GetBuiltinSlotTypesRequest.Builder> getBuiltinSlotTypesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of built-in slot types that meet the specified criteria.
For a list of built-in slot types, see Slot Type Reference in the Alexa Skills Kit.
This operation requires permission for the
lex:GetBuiltInSlotTypesaction.
This is a convenience which creates an instance of the
GetBuiltinSlotTypesRequest.Builderavoiding the need to create one manually viaGetBuiltinSlotTypesRequest.builder()- Parameters:
getBuiltinSlotTypesRequest- AConsumerthat will call methods onGetBuiltinSlotTypesRequest.Builderto create a request.- Returns:
- Result of the GetBuiltinSlotTypes operation returned by the service.
- See Also:
-
getBuiltinSlotTypes
@Deprecated default GetBuiltinSlotTypesResponse getBuiltinSlotTypes() throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of built-in slot types that meet the specified criteria.
For a list of built-in slot types, see Slot Type Reference in the Alexa Skills Kit.
This operation requires permission for the
lex:GetBuiltInSlotTypesaction.- Returns:
- Result of the GetBuiltinSlotTypes operation returned by the service.
- See Also:
-
getBuiltinSlotTypesPaginator
@Deprecated default GetBuiltinSlotTypesIterable getBuiltinSlotTypesPaginator() throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client .getBuiltinSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request); responses.iterator().forEachRemaining(....);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
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBuiltinSlotTypesPaginator
@Deprecated default GetBuiltinSlotTypesIterable getBuiltinSlotTypesPaginator(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client .getBuiltinSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request); responses.iterator().forEachRemaining(....);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
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)operation.- Parameters:
getBuiltinSlotTypesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getBuiltinSlotTypesPaginator
@Deprecated default GetBuiltinSlotTypesIterable getBuiltinSlotTypesPaginator(Consumer<GetBuiltinSlotTypesRequest.Builder> getBuiltinSlotTypesRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client .getBuiltinSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetBuiltinSlotTypesIterable responses = client.getBuiltinSlotTypesPaginator(request); responses.iterator().forEachRemaining(....);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
getBuiltinSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetBuiltinSlotTypesRequest)operation.
This is a convenience which creates an instance of the
GetBuiltinSlotTypesRequest.Builderavoiding the need to create one manually viaGetBuiltinSlotTypesRequest.builder()- Parameters:
getBuiltinSlotTypesRequest- AConsumerthat will call methods onGetBuiltinSlotTypesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getExport
@Deprecated default GetExportResponse getExport(GetExportRequest getExportRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Exports the contents of a Amazon Lex resource in a specified format.
- Parameters:
getExportRequest-- Returns:
- Result of the GetExport operation returned by the service.
- See Also:
-
getExport
@Deprecated default GetExportResponse getExport(Consumer<GetExportRequest.Builder> getExportRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Exports the contents of a Amazon Lex resource in a specified format.
This is a convenience which creates an instance of the
GetExportRequest.Builderavoiding the need to create one manually viaGetExportRequest.builder()- Parameters:
getExportRequest- AConsumerthat will call methods onGetExportRequest.Builderto create a request.- Returns:
- Result of the GetExport operation returned by the service.
- See Also:
-
getImport
@Deprecated default GetImportResponse getImport(GetImportRequest getImportRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets information about an import job started with the
StartImportoperation.- Parameters:
getImportRequest-- Returns:
- Result of the GetImport operation returned by the service.
- See Also:
-
getImport
@Deprecated default GetImportResponse getImport(Consumer<GetImportRequest.Builder> getImportRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets information about an import job started with the
StartImportoperation.
This is a convenience which creates an instance of the
GetImportRequest.Builderavoiding the need to create one manually viaGetImportRequest.builder()- Parameters:
getImportRequest- AConsumerthat will call methods onGetImportRequest.Builderto create a request.- Returns:
- Result of the GetImport operation returned by the service.
- See Also:
-
getIntent
@Deprecated default GetIntentResponse getIntent(GetIntentRequest getIntentRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about an intent. In addition to the intent name, you must specify the intent version.
This operation requires permissions to perform the
lex:GetIntentaction.- Parameters:
getIntentRequest-- Returns:
- Result of the GetIntent operation returned by the service.
- See Also:
-
getIntent
@Deprecated default GetIntentResponse getIntent(Consumer<GetIntentRequest.Builder> getIntentRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about an intent. In addition to the intent name, you must specify the intent version.
This operation requires permissions to perform the
lex:GetIntentaction.
This is a convenience which creates an instance of the
GetIntentRequest.Builderavoiding the need to create one manually viaGetIntentRequest.builder()- Parameters:
getIntentRequest- AConsumerthat will call methods onGetIntentRequest.Builderto create a request.- Returns:
- Result of the GetIntent operation returned by the service.
- See Also:
-
getIntentVersions
@Deprecated default GetIntentVersionsResponse getIntentVersions(GetIntentVersionsRequest getIntentVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets information about all of the versions of an intent.
The
GetIntentVersionsoperation returns anIntentMetadataobject for each version of an intent. For example, if an intent has three numbered versions, theGetIntentVersionsoperation returns fourIntentMetadataobjects in the response, one for each numbered version and one for theinvalid input: '$'LATESTversion.The
GetIntentVersionsoperation always returns at least one version, theinvalid input: '$'LATESTversion.This operation requires permissions for the
lex:GetIntentVersionsaction.- Parameters:
getIntentVersionsRequest-- Returns:
- Result of the GetIntentVersions operation returned by the service.
- See Also:
-
getIntentVersions
@Deprecated default GetIntentVersionsResponse getIntentVersions(Consumer<GetIntentVersionsRequest.Builder> getIntentVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets information about all of the versions of an intent.
The
GetIntentVersionsoperation returns anIntentMetadataobject for each version of an intent. For example, if an intent has three numbered versions, theGetIntentVersionsoperation returns fourIntentMetadataobjects in the response, one for each numbered version and one for theinvalid input: '$'LATESTversion.The
GetIntentVersionsoperation always returns at least one version, theinvalid input: '$'LATESTversion.This operation requires permissions for the
lex:GetIntentVersionsaction.
This is a convenience which creates an instance of the
GetIntentVersionsRequest.Builderavoiding the need to create one manually viaGetIntentVersionsRequest.builder()- Parameters:
getIntentVersionsRequest- AConsumerthat will call methods onGetIntentVersionsRequest.Builderto create a request.- Returns:
- Result of the GetIntentVersions operation returned by the service.
- See Also:
-
getIntentVersionsPaginator
@Deprecated default GetIntentVersionsIterable getIntentVersionsPaginator(GetIntentVersionsRequest getIntentVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getIntentVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client.getIntentVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client .getIntentVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client.getIntentVersionsPaginator(request); responses.iterator().forEachRemaining(....);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
getIntentVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsRequest)operation.- Parameters:
getIntentVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getIntentVersionsPaginator
@Deprecated default GetIntentVersionsIterable getIntentVersionsPaginator(Consumer<GetIntentVersionsRequest.Builder> getIntentVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getIntentVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client.getIntentVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client .getIntentVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentVersionsIterable responses = client.getIntentVersionsPaginator(request); responses.iterator().forEachRemaining(....);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
getIntentVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentVersionsRequest)operation.
This is a convenience which creates an instance of the
GetIntentVersionsRequest.Builderavoiding the need to create one manually viaGetIntentVersionsRequest.builder()- Parameters:
getIntentVersionsRequest- AConsumerthat will call methods onGetIntentVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getIntents
@Deprecated default GetIntentsResponse getIntents(GetIntentsRequest getIntentsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns intent information as follows:
-
If you specify the
nameContainsfield, returns theinvalid input: '$'LATESTversion of all intents that contain the specified string. -
If you don't specify the
nameContainsfield, returns information about theinvalid input: '$'LATESTversion of all intents.
The operation requires permission for the
lex:GetIntentsaction.- Parameters:
getIntentsRequest-- Returns:
- Result of the GetIntents operation returned by the service.
- See Also:
-
-
getIntents
@Deprecated default GetIntentsResponse getIntents(Consumer<GetIntentsRequest.Builder> getIntentsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns intent information as follows:
-
If you specify the
nameContainsfield, returns theinvalid input: '$'LATESTversion of all intents that contain the specified string. -
If you don't specify the
nameContainsfield, returns information about theinvalid input: '$'LATESTversion of all intents.
The operation requires permission for the
lex:GetIntentsaction.
This is a convenience which creates an instance of the
GetIntentsRequest.Builderavoiding the need to create one manually viaGetIntentsRequest.builder()- Parameters:
getIntentsRequest- AConsumerthat will call methods onGetIntentsRequest.Builderto create a request.- Returns:
- Result of the GetIntents operation returned by the service.
- See Also:
-
-
getIntents
@Deprecated default GetIntentsResponse getIntents() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns intent information as follows:
-
If you specify the
nameContainsfield, returns theinvalid input: '$'LATESTversion of all intents that contain the specified string. -
If you don't specify the
nameContainsfield, returns information about theinvalid input: '$'LATESTversion of all intents.
The operation requires permission for the
lex:GetIntentsaction.- Returns:
- Result of the GetIntents operation returned by the service.
- See Also:
-
-
getIntentsPaginator
@Deprecated default GetIntentsIterable getIntentsPaginator() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client .getIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request); responses.iterator().forEachRemaining(....);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
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getIntentsPaginator
@Deprecated default GetIntentsIterable getIntentsPaginator(GetIntentsRequest getIntentsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client .getIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request); responses.iterator().forEachRemaining(....);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
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)operation.- Parameters:
getIntentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getIntentsPaginator
@Deprecated default GetIntentsIterable getIntentsPaginator(Consumer<GetIntentsRequest.Builder> getIntentsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client .getIntentsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetIntentsIterable responses = client.getIntentsPaginator(request); responses.iterator().forEachRemaining(....);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
getIntents(software.amazon.awssdk.services.lexmodelbuilding.model.GetIntentsRequest)operation.
This is a convenience which creates an instance of the
GetIntentsRequest.Builderavoiding the need to create one manually viaGetIntentsRequest.builder()- Parameters:
getIntentsRequest- AConsumerthat will call methods onGetIntentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getMigration
@Deprecated default GetMigrationResponse getMigration(GetMigrationRequest getMigrationRequest) throws LimitExceededException, InternalFailureException, BadRequestException, NotFoundException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Provides details about an ongoing or complete migration from an Amazon Lex V1 bot to an Amazon Lex V2 bot. Use this operation to view the migration alerts and warnings related to the migration.
- Parameters:
getMigrationRequest-- Returns:
- Result of the GetMigration operation returned by the service.
- See Also:
-
getMigration
@Deprecated default GetMigrationResponse getMigration(Consumer<GetMigrationRequest.Builder> getMigrationRequest) throws LimitExceededException, InternalFailureException, BadRequestException, NotFoundException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Provides details about an ongoing or complete migration from an Amazon Lex V1 bot to an Amazon Lex V2 bot. Use this operation to view the migration alerts and warnings related to the migration.
This is a convenience which creates an instance of the
GetMigrationRequest.Builderavoiding the need to create one manually viaGetMigrationRequest.builder()- Parameters:
getMigrationRequest- AConsumerthat will call methods onGetMigrationRequest.Builderto create a request.- Returns:
- Result of the GetMigration operation returned by the service.
- See Also:
-
getMigrations
@Deprecated default GetMigrationsResponse getMigrations(GetMigrationsRequest getMigrationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of migrations between Amazon Lex V1 and Amazon Lex V2.
- Parameters:
getMigrationsRequest-- Returns:
- Result of the GetMigrations operation returned by the service.
- See Also:
-
getMigrations
@Deprecated default GetMigrationsResponse getMigrations(Consumer<GetMigrationsRequest.Builder> getMigrationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of migrations between Amazon Lex V1 and Amazon Lex V2.
This is a convenience which creates an instance of the
GetMigrationsRequest.Builderavoiding the need to create one manually viaGetMigrationsRequest.builder()- Parameters:
getMigrationsRequest- AConsumerthat will call methods onGetMigrationsRequest.Builderto create a request.- Returns:
- Result of the GetMigrations operation returned by the service.
- See Also:
-
getMigrationsPaginator
@Deprecated default GetMigrationsIterable getMigrationsPaginator(GetMigrationsRequest getMigrationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getMigrations(software.amazon.awssdk.services.lexmodelbuilding.model.GetMigrationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetMigrationsIterable responses = client.getMigrationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetMigrationsIterable responses = client .getMigrationsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetMigrationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetMigrationsIterable responses = client.getMigrationsPaginator(request); responses.iterator().forEachRemaining(....);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
getMigrations(software.amazon.awssdk.services.lexmodelbuilding.model.GetMigrationsRequest)operation.- Parameters:
getMigrationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getMigrationsPaginator
@Deprecated default GetMigrationsIterable getMigrationsPaginator(Consumer<GetMigrationsRequest.Builder> getMigrationsRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getMigrations(software.amazon.awssdk.services.lexmodelbuilding.model.GetMigrationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetMigrationsIterable responses = client.getMigrationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetMigrationsIterable responses = client .getMigrationsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetMigrationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetMigrationsIterable responses = client.getMigrationsPaginator(request); responses.iterator().forEachRemaining(....);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
getMigrations(software.amazon.awssdk.services.lexmodelbuilding.model.GetMigrationsRequest)operation.
This is a convenience which creates an instance of the
GetMigrationsRequest.Builderavoiding the need to create one manually viaGetMigrationsRequest.builder()- Parameters:
getMigrationsRequest- AConsumerthat will call methods onGetMigrationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getSlotType
@Deprecated default GetSlotTypeResponse getSlotType(GetSlotTypeRequest getSlotTypeRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about a specific version of a slot type. In addition to specifying the slot type name, you must specify the slot type version.
This operation requires permissions for the
lex:GetSlotTypeaction.- Parameters:
getSlotTypeRequest-- Returns:
- Result of the GetSlotType operation returned by the service.
- See Also:
-
getSlotType
@Deprecated default GetSlotTypeResponse getSlotType(Consumer<GetSlotTypeRequest.Builder> getSlotTypeRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns information about a specific version of a slot type. In addition to specifying the slot type name, you must specify the slot type version.
This operation requires permissions for the
lex:GetSlotTypeaction.
This is a convenience which creates an instance of the
GetSlotTypeRequest.Builderavoiding the need to create one manually viaGetSlotTypeRequest.builder()- Parameters:
getSlotTypeRequest- AConsumerthat will call methods onGetSlotTypeRequest.Builderto create a request.- Returns:
- Result of the GetSlotType operation returned by the service.
- See Also:
-
getSlotTypeVersions
@Deprecated default GetSlotTypeVersionsResponse getSlotTypeVersions(GetSlotTypeVersionsRequest getSlotTypeVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets information about all versions of a slot type.
The
GetSlotTypeVersionsoperation returns aSlotTypeMetadataobject for each version of a slot type. For example, if a slot type has three numbered versions, theGetSlotTypeVersionsoperation returns fourSlotTypeMetadataobjects in the response, one for each numbered version and one for theinvalid input: '$'LATESTversion.The
GetSlotTypeVersionsoperation always returns at least one version, theinvalid input: '$'LATESTversion.This operation requires permissions for the
lex:GetSlotTypeVersionsaction.- Parameters:
getSlotTypeVersionsRequest-- Returns:
- Result of the GetSlotTypeVersions operation returned by the service.
- See Also:
-
getSlotTypeVersions
@Deprecated default GetSlotTypeVersionsResponse getSlotTypeVersions(Consumer<GetSlotTypeVersionsRequest.Builder> getSlotTypeVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets information about all versions of a slot type.
The
GetSlotTypeVersionsoperation returns aSlotTypeMetadataobject for each version of a slot type. For example, if a slot type has three numbered versions, theGetSlotTypeVersionsoperation returns fourSlotTypeMetadataobjects in the response, one for each numbered version and one for theinvalid input: '$'LATESTversion.The
GetSlotTypeVersionsoperation always returns at least one version, theinvalid input: '$'LATESTversion.This operation requires permissions for the
lex:GetSlotTypeVersionsaction.
This is a convenience which creates an instance of the
GetSlotTypeVersionsRequest.Builderavoiding the need to create one manually viaGetSlotTypeVersionsRequest.builder()- Parameters:
getSlotTypeVersionsRequest- AConsumerthat will call methods onGetSlotTypeVersionsRequest.Builderto create a request.- Returns:
- Result of the GetSlotTypeVersions operation returned by the service.
- See Also:
-
getSlotTypeVersionsPaginator
@Deprecated default GetSlotTypeVersionsIterable getSlotTypeVersionsPaginator(GetSlotTypeVersionsRequest getSlotTypeVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getSlotTypeVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client.getSlotTypeVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client .getSlotTypeVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client.getSlotTypeVersionsPaginator(request); responses.iterator().forEachRemaining(....);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
getSlotTypeVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsRequest)operation.- Parameters:
getSlotTypeVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getSlotTypeVersionsPaginator
@Deprecated default GetSlotTypeVersionsIterable getSlotTypeVersionsPaginator(Consumer<GetSlotTypeVersionsRequest.Builder> getSlotTypeVersionsRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getSlotTypeVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client.getSlotTypeVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client .getSlotTypeVersionsPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypeVersionsIterable responses = client.getSlotTypeVersionsPaginator(request); responses.iterator().forEachRemaining(....);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
getSlotTypeVersions(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypeVersionsRequest)operation.
This is a convenience which creates an instance of the
GetSlotTypeVersionsRequest.Builderavoiding the need to create one manually viaGetSlotTypeVersionsRequest.builder()- Parameters:
getSlotTypeVersionsRequest- AConsumerthat will call methods onGetSlotTypeVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getSlotTypes
@Deprecated default GetSlotTypesResponse getSlotTypes(GetSlotTypesRequest getSlotTypesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns slot type information as follows:
-
If you specify the
nameContainsfield, returns theinvalid input: '$'LATESTversion of all slot types that contain the specified string. -
If you don't specify the
nameContainsfield, returns information about theinvalid input: '$'LATESTversion of all slot types.
The operation requires permission for the
lex:GetSlotTypesaction.- Parameters:
getSlotTypesRequest-- Returns:
- Result of the GetSlotTypes operation returned by the service.
- See Also:
-
-
getSlotTypes
@Deprecated default GetSlotTypesResponse getSlotTypes(Consumer<GetSlotTypesRequest.Builder> getSlotTypesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns slot type information as follows:
-
If you specify the
nameContainsfield, returns theinvalid input: '$'LATESTversion of all slot types that contain the specified string. -
If you don't specify the
nameContainsfield, returns information about theinvalid input: '$'LATESTversion of all slot types.
The operation requires permission for the
lex:GetSlotTypesaction.
This is a convenience which creates an instance of the
GetSlotTypesRequest.Builderavoiding the need to create one manually viaGetSlotTypesRequest.builder()- Parameters:
getSlotTypesRequest- AConsumerthat will call methods onGetSlotTypesRequest.Builderto create a request.- Returns:
- Result of the GetSlotTypes operation returned by the service.
- See Also:
-
-
getSlotTypes
@Deprecated default GetSlotTypesResponse getSlotTypes() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Returns slot type information as follows:
-
If you specify the
nameContainsfield, returns theinvalid input: '$'LATESTversion of all slot types that contain the specified string. -
If you don't specify the
nameContainsfield, returns information about theinvalid input: '$'LATESTversion of all slot types.
The operation requires permission for the
lex:GetSlotTypesaction.- Returns:
- Result of the GetSlotTypes operation returned by the service.
- See Also:
-
-
getSlotTypesPaginator
@Deprecated default GetSlotTypesIterable getSlotTypesPaginator() throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingExceptionDeprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client .getSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request); responses.iterator().forEachRemaining(....);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
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getSlotTypesPaginator
@Deprecated default GetSlotTypesIterable getSlotTypesPaginator(GetSlotTypesRequest getSlotTypesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client .getSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request); responses.iterator().forEachRemaining(....);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
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)operation.- Parameters:
getSlotTypesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getSlotTypesPaginator
@Deprecated default GetSlotTypesIterable getSlotTypesPaginator(Consumer<GetSlotTypesRequest.Builder> getSlotTypesRequest) throws NotFoundException, LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.This is a variant of
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client .getSlotTypesPaginator(request); for (software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lexmodelbuilding.paginators.GetSlotTypesIterable responses = client.getSlotTypesPaginator(request); responses.iterator().forEachRemaining(....);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
getSlotTypes(software.amazon.awssdk.services.lexmodelbuilding.model.GetSlotTypesRequest)operation.
This is a convenience which creates an instance of the
GetSlotTypesRequest.Builderavoiding the need to create one manually viaGetSlotTypesRequest.builder()- Parameters:
getSlotTypesRequest- AConsumerthat will call methods onGetSlotTypesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getUtterancesView
@Deprecated default GetUtterancesViewResponse getUtterancesView(GetUtterancesViewRequest getUtterancesViewRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Use the
GetUtterancesViewoperation to get information about the utterances that your users have made to your bot. You can use this list to tune the utterances that your bot responds to.For example, say that you have created a bot to order flowers. After your users have used your bot for a while, use the
GetUtterancesViewoperation to see the requests that they have made and whether they have been successful. You might find that the utterance "I want flowers" is not being recognized. You could add this utterance to theOrderFlowersintent so that your bot recognizes that utterance.After you publish a new version of a bot, you can get information about the old version and the new so that you can compare the performance across the two versions.
Utterance statistics are generated once a day. Data is available for the last 15 days. You can request information for up to 5 versions of your bot in each request. Amazon Lex returns the most frequent utterances received by the bot in the last 15 days. The response contains information about a maximum of 100 utterances for each version.
If you set
childDirectedfield to true when you created your bot, if you are using slot obfuscation with one or more slots, or if you opted out of participating in improving Amazon Lex, utterances are not available.This operation requires permissions for the
lex:GetUtterancesViewaction.- Parameters:
getUtterancesViewRequest-- Returns:
- Result of the GetUtterancesView operation returned by the service.
- See Also:
-
getUtterancesView
@Deprecated default GetUtterancesViewResponse getUtterancesView(Consumer<GetUtterancesViewRequest.Builder> getUtterancesViewRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Use the
GetUtterancesViewoperation to get information about the utterances that your users have made to your bot. You can use this list to tune the utterances that your bot responds to.For example, say that you have created a bot to order flowers. After your users have used your bot for a while, use the
GetUtterancesViewoperation to see the requests that they have made and whether they have been successful. You might find that the utterance "I want flowers" is not being recognized. You could add this utterance to theOrderFlowersintent so that your bot recognizes that utterance.After you publish a new version of a bot, you can get information about the old version and the new so that you can compare the performance across the two versions.
Utterance statistics are generated once a day. Data is available for the last 15 days. You can request information for up to 5 versions of your bot in each request. Amazon Lex returns the most frequent utterances received by the bot in the last 15 days. The response contains information about a maximum of 100 utterances for each version.
If you set
childDirectedfield to true when you created your bot, if you are using slot obfuscation with one or more slots, or if you opted out of participating in improving Amazon Lex, utterances are not available.This operation requires permissions for the
lex:GetUtterancesViewaction.
This is a convenience which creates an instance of the
GetUtterancesViewRequest.Builderavoiding the need to create one manually viaGetUtterancesViewRequest.builder()- Parameters:
getUtterancesViewRequest- AConsumerthat will call methods onGetUtterancesViewRequest.Builderto create a request.- Returns:
- Result of the GetUtterancesView operation returned by the service.
- See Also:
-
listTagsForResource
@Deprecated default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws NotFoundException, BadRequestException, InternalFailureException, LimitExceededException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of tags associated with the specified resource. Only bots, bot aliases, and bot channels can have tags associated with them.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
@Deprecated default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws NotFoundException, BadRequestException, InternalFailureException, LimitExceededException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Gets a list of tags associated with the specified 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.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
putBot
@Deprecated default PutBotResponse putBot(PutBotRequest putBotRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates an Amazon Lex conversational bot or replaces an existing bot. When you create or update a bot you are only required to specify a name, a locale, and whether the bot is directed toward children under age 13. You can use this to add intents later, or to remove intents from an existing bot. When you create a bot with the minimum information, the bot is created or updated but Amazon Lex returns the
responseFAILED. You can build the bot after you add one or more intents. For more information about Amazon Lex bots, see how-it-works.If you specify the name of an existing bot, the fields in the request replace the existing values in the
invalid input: '$'LATESTversion of the bot. Amazon Lex removes any fields that you don't provide values for in the request, except for theidleTTLInSecondsandprivacySettingsfields, which are set to their default values. If you don't specify values for required fields, Amazon Lex throws an exception.This operation requires permissions for the
lex:PutBotaction. For more information, see security-iam.- Parameters:
putBotRequest-- Returns:
- Result of the PutBot operation returned by the service.
- See Also:
-
putBot
@Deprecated default PutBotResponse putBot(Consumer<PutBotRequest.Builder> putBotRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates an Amazon Lex conversational bot or replaces an existing bot. When you create or update a bot you are only required to specify a name, a locale, and whether the bot is directed toward children under age 13. You can use this to add intents later, or to remove intents from an existing bot. When you create a bot with the minimum information, the bot is created or updated but Amazon Lex returns the
responseFAILED. You can build the bot after you add one or more intents. For more information about Amazon Lex bots, see how-it-works.If you specify the name of an existing bot, the fields in the request replace the existing values in the
invalid input: '$'LATESTversion of the bot. Amazon Lex removes any fields that you don't provide values for in the request, except for theidleTTLInSecondsandprivacySettingsfields, which are set to their default values. If you don't specify values for required fields, Amazon Lex throws an exception.This operation requires permissions for the
lex:PutBotaction. For more information, see security-iam.
This is a convenience which creates an instance of the
PutBotRequest.Builderavoiding the need to create one manually viaPutBotRequest.builder()- Parameters:
putBotRequest- AConsumerthat will call methods onPutBotRequest.Builderto create a request.- Returns:
- Result of the PutBot operation returned by the service.
- See Also:
-
putBotAlias
@Deprecated default PutBotAliasResponse putBotAlias(PutBotAliasRequest putBotAliasRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates an alias for the specified version of the bot or replaces an alias for the specified bot. To change the version of the bot that the alias points to, replace the alias. For more information about aliases, see versioning-aliases.
This operation requires permissions for the
lex:PutBotAliasaction.- Parameters:
putBotAliasRequest-- Returns:
- Result of the PutBotAlias operation returned by the service.
- See Also:
-
putBotAlias
@Deprecated default PutBotAliasResponse putBotAlias(Consumer<PutBotAliasRequest.Builder> putBotAliasRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates an alias for the specified version of the bot or replaces an alias for the specified bot. To change the version of the bot that the alias points to, replace the alias. For more information about aliases, see versioning-aliases.
This operation requires permissions for the
lex:PutBotAliasaction.
This is a convenience which creates an instance of the
PutBotAliasRequest.Builderavoiding the need to create one manually viaPutBotAliasRequest.builder()- Parameters:
putBotAliasRequest- AConsumerthat will call methods onPutBotAliasRequest.Builderto create a request.- Returns:
- Result of the PutBotAlias operation returned by the service.
- See Also:
-
putIntent
@Deprecated default PutIntentResponse putIntent(PutIntentRequest putIntentRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates an intent or replaces an existing intent.
To define the interaction between the user and your bot, you use one or more intents. For a pizza ordering bot, for example, you would create an
OrderPizzaintent.To create an intent or replace an existing intent, you must provide the following:
-
Intent name. For example,
OrderPizza. -
Sample utterances. For example, "Can I order a pizza, please." and "I want to order a pizza."
-
Information to be gathered. You specify slot types for the information that your bot will request from the user. You can specify standard slot types, such as a date or a time, or custom slot types such as the size and crust of a pizza.
-
How the intent will be fulfilled. You can provide a Lambda function or configure the intent to return the intent information to the client application. If you use a Lambda function, when all of the intent information is available, Amazon Lex invokes your Lambda function. If you configure your intent to return the intent information to the client application.
You can specify other optional information in the request, such as:
-
A confirmation prompt to ask the user to confirm an intent. For example, "Shall I order your pizza?"
-
A conclusion statement to send to the user after the intent has been fulfilled. For example, "I placed your pizza order."
-
A follow-up prompt that asks the user for additional activity. For example, asking "Do you want to order a drink with your pizza?"
If you specify an existing intent name to update the intent, Amazon Lex replaces the values in the
invalid input: '$'LATESTversion of the intent with the values in the request. Amazon Lex removes fields that you don't provide in the request. If you don't specify the required fields, Amazon Lex throws an exception. When you update theinvalid input: '$'LATESTversion of an intent, thestatusfield of any bot that uses theinvalid input: '$'LATESTversion of the intent is set toNOT_BUILT.For more information, see how-it-works.
This operation requires permissions for the
lex:PutIntentaction.- Parameters:
putIntentRequest-- Returns:
- Result of the PutIntent operation returned by the service.
- See Also:
-
-
putIntent
@Deprecated default PutIntentResponse putIntent(Consumer<PutIntentRequest.Builder> putIntentRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates an intent or replaces an existing intent.
To define the interaction between the user and your bot, you use one or more intents. For a pizza ordering bot, for example, you would create an
OrderPizzaintent.To create an intent or replace an existing intent, you must provide the following:
-
Intent name. For example,
OrderPizza. -
Sample utterances. For example, "Can I order a pizza, please." and "I want to order a pizza."
-
Information to be gathered. You specify slot types for the information that your bot will request from the user. You can specify standard slot types, such as a date or a time, or custom slot types such as the size and crust of a pizza.
-
How the intent will be fulfilled. You can provide a Lambda function or configure the intent to return the intent information to the client application. If you use a Lambda function, when all of the intent information is available, Amazon Lex invokes your Lambda function. If you configure your intent to return the intent information to the client application.
You can specify other optional information in the request, such as:
-
A confirmation prompt to ask the user to confirm an intent. For example, "Shall I order your pizza?"
-
A conclusion statement to send to the user after the intent has been fulfilled. For example, "I placed your pizza order."
-
A follow-up prompt that asks the user for additional activity. For example, asking "Do you want to order a drink with your pizza?"
If you specify an existing intent name to update the intent, Amazon Lex replaces the values in the
invalid input: '$'LATESTversion of the intent with the values in the request. Amazon Lex removes fields that you don't provide in the request. If you don't specify the required fields, Amazon Lex throws an exception. When you update theinvalid input: '$'LATESTversion of an intent, thestatusfield of any bot that uses theinvalid input: '$'LATESTversion of the intent is set toNOT_BUILT.For more information, see how-it-works.
This operation requires permissions for the
lex:PutIntentaction.
This is a convenience which creates an instance of the
PutIntentRequest.Builderavoiding the need to create one manually viaPutIntentRequest.builder()- Parameters:
putIntentRequest- AConsumerthat will call methods onPutIntentRequest.Builderto create a request.- Returns:
- Result of the PutIntent operation returned by the service.
- See Also:
-
-
putSlotType
@Deprecated default PutSlotTypeResponse putSlotType(PutSlotTypeRequest putSlotTypeRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates a custom slot type or replaces an existing custom slot type.
To create a custom slot type, specify a name for the slot type and a set of enumeration values, which are the values that a slot of this type can assume. For more information, see how-it-works.
If you specify the name of an existing slot type, the fields in the request replace the existing values in the
invalid input: '$'LATESTversion of the slot type. Amazon Lex removes the fields that you don't provide in the request. If you don't specify required fields, Amazon Lex throws an exception. When you update theinvalid input: '$'LATESTversion of a slot type, if a bot uses theinvalid input: '$'LATESTversion of an intent that contains the slot type, the bot'sstatusfield is set toNOT_BUILT.This operation requires permissions for the
lex:PutSlotTypeaction.- Parameters:
putSlotTypeRequest-- Returns:
- Result of the PutSlotType operation returned by the service.
- See Also:
-
putSlotType
@Deprecated default PutSlotTypeResponse putSlotType(Consumer<PutSlotTypeRequest.Builder> putSlotTypeRequest) throws ConflictException, LimitExceededException, InternalFailureException, BadRequestException, PreconditionFailedException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Creates a custom slot type or replaces an existing custom slot type.
To create a custom slot type, specify a name for the slot type and a set of enumeration values, which are the values that a slot of this type can assume. For more information, see how-it-works.
If you specify the name of an existing slot type, the fields in the request replace the existing values in the
invalid input: '$'LATESTversion of the slot type. Amazon Lex removes the fields that you don't provide in the request. If you don't specify required fields, Amazon Lex throws an exception. When you update theinvalid input: '$'LATESTversion of a slot type, if a bot uses theinvalid input: '$'LATESTversion of an intent that contains the slot type, the bot'sstatusfield is set toNOT_BUILT.This operation requires permissions for the
lex:PutSlotTypeaction.
This is a convenience which creates an instance of the
PutSlotTypeRequest.Builderavoiding the need to create one manually viaPutSlotTypeRequest.builder()- Parameters:
putSlotTypeRequest- AConsumerthat will call methods onPutSlotTypeRequest.Builderto create a request.- Returns:
- Result of the PutSlotType operation returned by the service.
- See Also:
-
startImport
@Deprecated default StartImportResponse startImport(StartImportRequest startImportRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Starts a job to import a resource to Amazon Lex.
- Parameters:
startImportRequest-- Returns:
- Result of the StartImport operation returned by the service.
- See Also:
-
startImport
@Deprecated default StartImportResponse startImport(Consumer<StartImportRequest.Builder> startImportRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Starts a job to import a resource to Amazon Lex.
This is a convenience which creates an instance of the
StartImportRequest.Builderavoiding the need to create one manually viaStartImportRequest.builder()- Parameters:
startImportRequest- AConsumerthat will call methods onStartImportRequest.Builderto create a request.- Returns:
- Result of the StartImport operation returned by the service.
- See Also:
-
startMigration
@Deprecated default StartMigrationResponse startMigration(StartMigrationRequest startMigrationRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AccessDeniedException, NotFoundException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Starts migrating a bot from Amazon Lex V1 to Amazon Lex V2. Migrate your bot when you want to take advantage of the new features of Amazon Lex V2.
For more information, see Migrating a bot in the Amazon Lex developer guide.
- Parameters:
startMigrationRequest-- Returns:
- Result of the StartMigration operation returned by the service.
- See Also:
-
startMigration
@Deprecated default StartMigrationResponse startMigration(Consumer<StartMigrationRequest.Builder> startMigrationRequest) throws LimitExceededException, InternalFailureException, BadRequestException, AccessDeniedException, NotFoundException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Starts migrating a bot from Amazon Lex V1 to Amazon Lex V2. Migrate your bot when you want to take advantage of the new features of Amazon Lex V2.
For more information, see Migrating a bot in the Amazon Lex developer guide.
This is a convenience which creates an instance of the
StartMigrationRequest.Builderavoiding the need to create one manually viaStartMigrationRequest.builder()- Parameters:
startMigrationRequest- AConsumerthat will call methods onStartMigrationRequest.Builderto create a request.- Returns:
- Result of the StartMigration operation returned by the service.
- See Also:
-
tagResource
@Deprecated default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws NotFoundException, BadRequestException, ConflictException, InternalFailureException, LimitExceededException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
@Deprecated default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws NotFoundException, BadRequestException, ConflictException, InternalFailureException, LimitExceededException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.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.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
@Deprecated default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws NotFoundException, BadRequestException, ConflictException, InternalFailureException, LimitExceededException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Removes tags from a bot, bot alias or bot channel.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
@Deprecated default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws NotFoundException, BadRequestException, ConflictException, InternalFailureException, LimitExceededException, AwsServiceException, SdkClientException, LexModelBuildingException Deprecated.Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.Removes tags from a bot, bot alias or bot channel.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
create
Create aLexModelBuildingClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLexModelBuildingClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-