Interface QAppsAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The
asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the
SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such
as credentials retrieval and endpoint discovery as part of the async API call.
The Amazon Q Apps feature capability within Amazon Q Business allows web experience users to create lightweight, purpose-built AI apps to fulfill specific tasks from within their web experience. For example, users can create a Q App that exclusively generates marketing-related content to improve your marketing team's productivity or a Q App for writing customer emails and creating promotional content using a certain style of voice, tone, and branding. For more information on the capabilities, see Amazon Q Apps capabilities in the Amazon Q Business User Guide.
For an overview of the Amazon Q App APIs, see Overview of Amazon Q Apps API operations.
For information about the IAM access control permissions you need to use the Amazon Q Apps API, see IAM role for the Amazon Q Business web experience including Amazon Q Apps in the Amazon Q Business User Guide.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionassociateLibraryItemReview
(Consumer<AssociateLibraryItemReviewRequest.Builder> associateLibraryItemReviewRequest) Associates a rating or review for a library item with the user submitting the request.associateLibraryItemReview
(AssociateLibraryItemReviewRequest associateLibraryItemReviewRequest) Associates a rating or review for a library item with the user submitting the request.associateQAppWithUser
(Consumer<AssociateQAppWithUserRequest.Builder> associateQAppWithUserRequest) This operation creates a link between the user's identity calling the operation and a specific Q App.associateQAppWithUser
(AssociateQAppWithUserRequest associateQAppWithUserRequest) This operation creates a link between the user's identity calling the operation and a specific Q App.batchCreateCategory
(Consumer<BatchCreateCategoryRequest.Builder> batchCreateCategoryRequest) Creates Categories for the Amazon Q Business application environment instance.batchCreateCategory
(BatchCreateCategoryRequest batchCreateCategoryRequest) Creates Categories for the Amazon Q Business application environment instance.batchDeleteCategory
(Consumer<BatchDeleteCategoryRequest.Builder> batchDeleteCategoryRequest) Deletes Categories for the Amazon Q Business application environment instance.batchDeleteCategory
(BatchDeleteCategoryRequest batchDeleteCategoryRequest) Deletes Categories for the Amazon Q Business application environment instance.batchUpdateCategory
(Consumer<BatchUpdateCategoryRequest.Builder> batchUpdateCategoryRequest) Updates Categories for the Amazon Q Business application environment instance.batchUpdateCategory
(BatchUpdateCategoryRequest batchUpdateCategoryRequest) Updates Categories for the Amazon Q Business application environment instance.static QAppsAsyncClientBuilder
builder()
Create a builder that can be used to configure and create aQAppsAsyncClient
.static QAppsAsyncClient
create()
Create aQAppsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createLibraryItem
(Consumer<CreateLibraryItemRequest.Builder> createLibraryItemRequest) Creates a new library item for an Amazon Q App, allowing it to be discovered and used by other allowed users.createLibraryItem
(CreateLibraryItemRequest createLibraryItemRequest) Creates a new library item for an Amazon Q App, allowing it to be discovered and used by other allowed users.createPresignedUrl
(Consumer<CreatePresignedUrlRequest.Builder> createPresignedUrlRequest) Creates a presigned URL for an S3 POST operation to upload a file.createPresignedUrl
(CreatePresignedUrlRequest createPresignedUrlRequest) Creates a presigned URL for an S3 POST operation to upload a file.default CompletableFuture
<CreateQAppResponse> createQApp
(Consumer<CreateQAppRequest.Builder> createQAppRequest) Creates a new Amazon Q App based on the provided definition.default CompletableFuture
<CreateQAppResponse> createQApp
(CreateQAppRequest createQAppRequest) Creates a new Amazon Q App based on the provided definition.deleteLibraryItem
(Consumer<DeleteLibraryItemRequest.Builder> deleteLibraryItemRequest) Deletes a library item for an Amazon Q App, removing it from the library so it can no longer be discovered or used by other users.deleteLibraryItem
(DeleteLibraryItemRequest deleteLibraryItemRequest) Deletes a library item for an Amazon Q App, removing it from the library so it can no longer be discovered or used by other users.default CompletableFuture
<DeleteQAppResponse> deleteQApp
(Consumer<DeleteQAppRequest.Builder> deleteQAppRequest) Deletes an Amazon Q App owned by the user.default CompletableFuture
<DeleteQAppResponse> deleteQApp
(DeleteQAppRequest deleteQAppRequest) Deletes an Amazon Q App owned by the user.describeQAppPermissions
(Consumer<DescribeQAppPermissionsRequest.Builder> describeQAppPermissionsRequest) Describes read permissions for a Amazon Q App in Amazon Q Business application environment instance.describeQAppPermissions
(DescribeQAppPermissionsRequest describeQAppPermissionsRequest) Describes read permissions for a Amazon Q App in Amazon Q Business application environment instance.disassociateLibraryItemReview
(Consumer<DisassociateLibraryItemReviewRequest.Builder> disassociateLibraryItemReviewRequest) Removes a rating or review previously submitted by the user for a library item.disassociateLibraryItemReview
(DisassociateLibraryItemReviewRequest disassociateLibraryItemReviewRequest) Removes a rating or review previously submitted by the user for a library item.disassociateQAppFromUser
(Consumer<DisassociateQAppFromUserRequest.Builder> disassociateQAppFromUserRequest) Disassociates a Q App from a user removing the user's access to run the Q App.disassociateQAppFromUser
(DisassociateQAppFromUserRequest disassociateQAppFromUserRequest) Disassociates a Q App from a user removing the user's access to run the Q App.exportQAppSessionData
(Consumer<ExportQAppSessionDataRequest.Builder> exportQAppSessionDataRequest) Exports the collected data of a Q App data collection session.exportQAppSessionData
(ExportQAppSessionDataRequest exportQAppSessionDataRequest) Exports the collected data of a Q App data collection session.default CompletableFuture
<GetLibraryItemResponse> getLibraryItem
(Consumer<GetLibraryItemRequest.Builder> getLibraryItemRequest) Retrieves details about a library item for an Amazon Q App, including its metadata, categories, ratings, and usage statistics.default CompletableFuture
<GetLibraryItemResponse> getLibraryItem
(GetLibraryItemRequest getLibraryItemRequest) Retrieves details about a library item for an Amazon Q App, including its metadata, categories, ratings, and usage statistics.default CompletableFuture
<GetQAppResponse> getQApp
(Consumer<GetQAppRequest.Builder> getQAppRequest) Retrieves the full details of an Q App, including its definition specifying the cards and flow.default CompletableFuture
<GetQAppResponse> getQApp
(GetQAppRequest getQAppRequest) Retrieves the full details of an Q App, including its definition specifying the cards and flow.default CompletableFuture
<GetQAppSessionResponse> getQAppSession
(Consumer<GetQAppSessionRequest.Builder> getQAppSessionRequest) Retrieves the current state and results for an active session of an Amazon Q App.default CompletableFuture
<GetQAppSessionResponse> getQAppSession
(GetQAppSessionRequest getQAppSessionRequest) Retrieves the current state and results for an active session of an Amazon Q App.getQAppSessionMetadata
(Consumer<GetQAppSessionMetadataRequest.Builder> getQAppSessionMetadataRequest) Retrieves the current configuration of a Q App session.getQAppSessionMetadata
(GetQAppSessionMetadataRequest getQAppSessionMetadataRequest) Retrieves the current configuration of a Q App session.default CompletableFuture
<ImportDocumentResponse> importDocument
(Consumer<ImportDocumentRequest.Builder> importDocumentRequest) Uploads a file that can then be used either as a default in aFileUploadCard
from Q App definition or as a file that is used inside a single Q App run.default CompletableFuture
<ImportDocumentResponse> importDocument
(ImportDocumentRequest importDocumentRequest) Uploads a file that can then be used either as a default in aFileUploadCard
from Q App definition or as a file that is used inside a single Q App run.default CompletableFuture
<ListCategoriesResponse> listCategories
(Consumer<ListCategoriesRequest.Builder> listCategoriesRequest) Lists the categories of a Amazon Q Business application environment instance.default CompletableFuture
<ListCategoriesResponse> listCategories
(ListCategoriesRequest listCategoriesRequest) Lists the categories of a Amazon Q Business application environment instance.listLibraryItems
(Consumer<ListLibraryItemsRequest.Builder> listLibraryItemsRequest) Lists the library items for Amazon Q Apps that are published and available for users in your Amazon Web Services account.listLibraryItems
(ListLibraryItemsRequest listLibraryItemsRequest) Lists the library items for Amazon Q Apps that are published and available for users in your Amazon Web Services account.default ListLibraryItemsPublisher
listLibraryItemsPaginator
(Consumer<ListLibraryItemsRequest.Builder> listLibraryItemsRequest) This is a variant oflistLibraryItems(software.amazon.awssdk.services.qapps.model.ListLibraryItemsRequest)
operation.default ListLibraryItemsPublisher
listLibraryItemsPaginator
(ListLibraryItemsRequest listLibraryItemsRequest) This is a variant oflistLibraryItems(software.amazon.awssdk.services.qapps.model.ListLibraryItemsRequest)
operation.default CompletableFuture
<ListQAppsResponse> listQApps
(Consumer<ListQAppsRequest.Builder> listQAppsRequest) Lists the Amazon Q Apps owned by or associated with the user either because they created it or because they used it from the library in the past.default CompletableFuture
<ListQAppsResponse> listQApps
(ListQAppsRequest listQAppsRequest) Lists the Amazon Q Apps owned by or associated with the user either because they created it or because they used it from the library in the past.listQAppSessionData
(Consumer<ListQAppSessionDataRequest.Builder> listQAppSessionDataRequest) Lists the collected data of a Q App data collection session.listQAppSessionData
(ListQAppSessionDataRequest listQAppSessionDataRequest) Lists the collected data of a Q App data collection session.default ListQAppsPublisher
listQAppsPaginator
(Consumer<ListQAppsRequest.Builder> listQAppsRequest) This is a variant oflistQApps(software.amazon.awssdk.services.qapps.model.ListQAppsRequest)
operation.default ListQAppsPublisher
listQAppsPaginator
(ListQAppsRequest listQAppsRequest) This is a variant oflistQApps(software.amazon.awssdk.services.qapps.model.ListQAppsRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags associated with an Amazon Q Apps resource.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags associated with an Amazon Q Apps resource.default CompletableFuture
<PredictQAppResponse> predictQApp
(Consumer<PredictQAppRequest.Builder> predictQAppRequest) Generates an Amazon Q App definition based on either a conversation or a problem statement provided as input.The resulting app definition can be used to callCreateQApp
.default CompletableFuture
<PredictQAppResponse> predictQApp
(PredictQAppRequest predictQAppRequest) Generates an Amazon Q App definition based on either a conversation or a problem statement provided as input.The resulting app definition can be used to callCreateQApp
.default QAppsServiceClientConfiguration
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartQAppSession
(Consumer<StartQAppSessionRequest.Builder> startQAppSessionRequest) Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run.startQAppSession
(StartQAppSessionRequest startQAppSessionRequest) Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run.default CompletableFuture
<StopQAppSessionResponse> stopQAppSession
(Consumer<StopQAppSessionRequest.Builder> stopQAppSessionRequest) Stops an active session for an Amazon Q App.This deletes all data related to the session and makes it invalid for future uses.default CompletableFuture
<StopQAppSessionResponse> stopQAppSession
(StopQAppSessionRequest stopQAppSessionRequest) Stops an active session for an Amazon Q App.This deletes all data related to the session and makes it invalid for future uses.default CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates tags with an Amazon Q Apps resource.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Associates tags with an Amazon Q Apps resource.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Disassociates tags from an Amazon Q Apps resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Disassociates tags from an Amazon Q Apps resource.updateLibraryItem
(Consumer<UpdateLibraryItemRequest.Builder> updateLibraryItemRequest) Updates the library item for an Amazon Q App.updateLibraryItem
(UpdateLibraryItemRequest updateLibraryItemRequest) Updates the library item for an Amazon Q App.updateLibraryItemMetadata
(Consumer<UpdateLibraryItemMetadataRequest.Builder> updateLibraryItemMetadataRequest) Updates the verification status of a library item for an Amazon Q App.updateLibraryItemMetadata
(UpdateLibraryItemMetadataRequest updateLibraryItemMetadataRequest) Updates the verification status of a library item for an Amazon Q App.default CompletableFuture
<UpdateQAppResponse> updateQApp
(Consumer<UpdateQAppRequest.Builder> updateQAppRequest) Updates an existing Amazon Q App, allowing modifications to its title, description, and definition.default CompletableFuture
<UpdateQAppResponse> updateQApp
(UpdateQAppRequest updateQAppRequest) Updates an existing Amazon Q App, allowing modifications to its title, description, and definition.updateQAppPermissions
(Consumer<UpdateQAppPermissionsRequest.Builder> updateQAppPermissionsRequest) Updates read permissions for a Amazon Q App in Amazon Q Business application environment instance.updateQAppPermissions
(UpdateQAppPermissionsRequest updateQAppPermissionsRequest) Updates read permissions for a Amazon Q App in Amazon Q Business application environment instance.updateQAppSession
(Consumer<UpdateQAppSessionRequest.Builder> updateQAppSessionRequest) Updates the session for a given Q AppsessionId
.updateQAppSession
(UpdateQAppSessionRequest updateQAppSessionRequest) Updates the session for a given Q AppsessionId
.updateQAppSessionMetadata
(Consumer<UpdateQAppSessionMetadataRequest.Builder> updateQAppSessionMetadataRequest) Updates the configuration metadata of a session for a given Q AppsessionId
.updateQAppSessionMetadata
(UpdateQAppSessionMetadataRequest updateQAppSessionMetadataRequest) Updates the configuration metadata of a session for a given Q AppsessionId
.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods 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
-
associateLibraryItemReview
default CompletableFuture<AssociateLibraryItemReviewResponse> associateLibraryItemReview(AssociateLibraryItemReviewRequest associateLibraryItemReviewRequest) Associates a rating or review for a library item with the user submitting the request. This increments the rating count for the specified library item.
- Parameters:
associateLibraryItemReviewRequest
-- Returns:
- A Java Future containing the result of the AssociateLibraryItemReview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateLibraryItemReview
default CompletableFuture<AssociateLibraryItemReviewResponse> associateLibraryItemReview(Consumer<AssociateLibraryItemReviewRequest.Builder> associateLibraryItemReviewRequest) Associates a rating or review for a library item with the user submitting the request. This increments the rating count for the specified library item.
This is a convenience which creates an instance of the
AssociateLibraryItemReviewRequest.Builder
avoiding the need to create one manually viaAssociateLibraryItemReviewRequest.builder()
- Parameters:
associateLibraryItemReviewRequest
- AConsumer
that will call methods onAssociateLibraryItemReviewRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AssociateLibraryItemReview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateQAppWithUser
default CompletableFuture<AssociateQAppWithUserResponse> associateQAppWithUser(AssociateQAppWithUserRequest associateQAppWithUserRequest) This operation creates a link between the user's identity calling the operation and a specific Q App. This is useful to mark the Q App as a favorite for the user if the user doesn't own the Amazon Q App so they can still run it and see it in their inventory of Q Apps.
- Parameters:
associateQAppWithUserRequest
-- Returns:
- A Java Future containing the result of the AssociateQAppWithUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateQAppWithUser
default CompletableFuture<AssociateQAppWithUserResponse> associateQAppWithUser(Consumer<AssociateQAppWithUserRequest.Builder> associateQAppWithUserRequest) This operation creates a link between the user's identity calling the operation and a specific Q App. This is useful to mark the Q App as a favorite for the user if the user doesn't own the Amazon Q App so they can still run it and see it in their inventory of Q Apps.
This is a convenience which creates an instance of the
AssociateQAppWithUserRequest.Builder
avoiding the need to create one manually viaAssociateQAppWithUserRequest.builder()
- Parameters:
associateQAppWithUserRequest
- AConsumer
that will call methods onAssociateQAppWithUserRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AssociateQAppWithUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchCreateCategory
default CompletableFuture<BatchCreateCategoryResponse> batchCreateCategory(BatchCreateCategoryRequest batchCreateCategoryRequest) Creates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.
- Parameters:
batchCreateCategoryRequest
-- Returns:
- A Java Future containing the result of the BatchCreateCategory operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchCreateCategory
default CompletableFuture<BatchCreateCategoryResponse> batchCreateCategory(Consumer<BatchCreateCategoryRequest.Builder> batchCreateCategoryRequest) Creates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.
This is a convenience which creates an instance of the
BatchCreateCategoryRequest.Builder
avoiding the need to create one manually viaBatchCreateCategoryRequest.builder()
- Parameters:
batchCreateCategoryRequest
- AConsumer
that will call methods onBatchCreateCategoryRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchCreateCategory operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteCategory
default CompletableFuture<BatchDeleteCategoryResponse> batchDeleteCategory(BatchDeleteCategoryRequest batchDeleteCategoryRequest) Deletes Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.
- Parameters:
batchDeleteCategoryRequest
-- Returns:
- A Java Future containing the result of the BatchDeleteCategory operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteCategory
default CompletableFuture<BatchDeleteCategoryResponse> batchDeleteCategory(Consumer<BatchDeleteCategoryRequest.Builder> batchDeleteCategoryRequest) Deletes Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.
This is a convenience which creates an instance of the
BatchDeleteCategoryRequest.Builder
avoiding the need to create one manually viaBatchDeleteCategoryRequest.builder()
- Parameters:
batchDeleteCategoryRequest
- AConsumer
that will call methods onBatchDeleteCategoryRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchDeleteCategory operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateCategory
default CompletableFuture<BatchUpdateCategoryResponse> batchUpdateCategory(BatchUpdateCategoryRequest batchUpdateCategoryRequest) Updates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.
- Parameters:
batchUpdateCategoryRequest
-- Returns:
- A Java Future containing the result of the BatchUpdateCategory operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateCategory
default CompletableFuture<BatchUpdateCategoryResponse> batchUpdateCategory(Consumer<BatchUpdateCategoryRequest.Builder> batchUpdateCategoryRequest) Updates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.
This is a convenience which creates an instance of the
BatchUpdateCategoryRequest.Builder
avoiding the need to create one manually viaBatchUpdateCategoryRequest.builder()
- Parameters:
batchUpdateCategoryRequest
- AConsumer
that will call methods onBatchUpdateCategoryRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchUpdateCategory operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createLibraryItem
default CompletableFuture<CreateLibraryItemResponse> createLibraryItem(CreateLibraryItemRequest createLibraryItemRequest) Creates a new library item for an Amazon Q App, allowing it to be discovered and used by other allowed users.
- Parameters:
createLibraryItemRequest
-- Returns:
- A Java Future containing the result of the CreateLibraryItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createLibraryItem
default CompletableFuture<CreateLibraryItemResponse> createLibraryItem(Consumer<CreateLibraryItemRequest.Builder> createLibraryItemRequest) Creates a new library item for an Amazon Q App, allowing it to be discovered and used by other allowed users.
This is a convenience which creates an instance of the
CreateLibraryItemRequest.Builder
avoiding the need to create one manually viaCreateLibraryItemRequest.builder()
- Parameters:
createLibraryItemRequest
- AConsumer
that will call methods onCreateLibraryItemRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateLibraryItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPresignedUrl
default CompletableFuture<CreatePresignedUrlResponse> createPresignedUrl(CreatePresignedUrlRequest createPresignedUrlRequest) Creates a presigned URL for an S3 POST operation to upload a file. You can use this URL to set a default file for a
FileUploadCard
in a Q App definition or to provide a file for a single Q App run. Thescope
parameter determines how the file will be used, either at the app definition level or the app session level.- Parameters:
createPresignedUrlRequest
-- Returns:
- A Java Future containing the result of the CreatePresignedUrl operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPresignedUrl
default CompletableFuture<CreatePresignedUrlResponse> createPresignedUrl(Consumer<CreatePresignedUrlRequest.Builder> createPresignedUrlRequest) Creates a presigned URL for an S3 POST operation to upload a file. You can use this URL to set a default file for a
FileUploadCard
in a Q App definition or to provide a file for a single Q App run. Thescope
parameter determines how the file will be used, either at the app definition level or the app session level.
This is a convenience which creates an instance of the
CreatePresignedUrlRequest.Builder
avoiding the need to create one manually viaCreatePresignedUrlRequest.builder()
- Parameters:
createPresignedUrlRequest
- AConsumer
that will call methods onCreatePresignedUrlRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreatePresignedUrl operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createQApp
Creates a new Amazon Q App based on the provided definition. The Q App definition specifies the cards and flow of the Q App. This operation also calculates the dependencies between the cards by inspecting the references in the prompts.
- Parameters:
createQAppRequest
-- Returns:
- A Java Future containing the result of the CreateQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ContentTooLargeException The requested operation could not be completed because the content exceeds the maximum allowed size.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createQApp
default CompletableFuture<CreateQAppResponse> createQApp(Consumer<CreateQAppRequest.Builder> createQAppRequest) Creates a new Amazon Q App based on the provided definition. The Q App definition specifies the cards and flow of the Q App. This operation also calculates the dependencies between the cards by inspecting the references in the prompts.
This is a convenience which creates an instance of the
CreateQAppRequest.Builder
avoiding the need to create one manually viaCreateQAppRequest.builder()
- Parameters:
createQAppRequest
- AConsumer
that will call methods onCreateQAppRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ContentTooLargeException The requested operation could not be completed because the content exceeds the maximum allowed size.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteLibraryItem
default CompletableFuture<DeleteLibraryItemResponse> deleteLibraryItem(DeleteLibraryItemRequest deleteLibraryItemRequest) Deletes a library item for an Amazon Q App, removing it from the library so it can no longer be discovered or used by other users.
- Parameters:
deleteLibraryItemRequest
-- Returns:
- A Java Future containing the result of the DeleteLibraryItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteLibraryItem
default CompletableFuture<DeleteLibraryItemResponse> deleteLibraryItem(Consumer<DeleteLibraryItemRequest.Builder> deleteLibraryItemRequest) Deletes a library item for an Amazon Q App, removing it from the library so it can no longer be discovered or used by other users.
This is a convenience which creates an instance of the
DeleteLibraryItemRequest.Builder
avoiding the need to create one manually viaDeleteLibraryItemRequest.builder()
- Parameters:
deleteLibraryItemRequest
- AConsumer
that will call methods onDeleteLibraryItemRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteLibraryItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteQApp
Deletes an Amazon Q App owned by the user. If the Q App was previously published to the library, it is also removed from the library.
- Parameters:
deleteQAppRequest
-- Returns:
- A Java Future containing the result of the DeleteQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteQApp
default CompletableFuture<DeleteQAppResponse> deleteQApp(Consumer<DeleteQAppRequest.Builder> deleteQAppRequest) Deletes an Amazon Q App owned by the user. If the Q App was previously published to the library, it is also removed from the library.
This is a convenience which creates an instance of the
DeleteQAppRequest.Builder
avoiding the need to create one manually viaDeleteQAppRequest.builder()
- Parameters:
deleteQAppRequest
- AConsumer
that will call methods onDeleteQAppRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeQAppPermissions
default CompletableFuture<DescribeQAppPermissionsResponse> describeQAppPermissions(DescribeQAppPermissionsRequest describeQAppPermissionsRequest) Describes read permissions for a Amazon Q App in Amazon Q Business application environment instance.
- Parameters:
describeQAppPermissionsRequest
-- Returns:
- A Java Future containing the result of the DescribeQAppPermissions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeQAppPermissions
default CompletableFuture<DescribeQAppPermissionsResponse> describeQAppPermissions(Consumer<DescribeQAppPermissionsRequest.Builder> describeQAppPermissionsRequest) Describes read permissions for a Amazon Q App in Amazon Q Business application environment instance.
This is a convenience which creates an instance of the
DescribeQAppPermissionsRequest.Builder
avoiding the need to create one manually viaDescribeQAppPermissionsRequest.builder()
- Parameters:
describeQAppPermissionsRequest
- AConsumer
that will call methods onDescribeQAppPermissionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeQAppPermissions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateLibraryItemReview
default CompletableFuture<DisassociateLibraryItemReviewResponse> disassociateLibraryItemReview(DisassociateLibraryItemReviewRequest disassociateLibraryItemReviewRequest) Removes a rating or review previously submitted by the user for a library item.
- Parameters:
disassociateLibraryItemReviewRequest
-- Returns:
- A Java Future containing the result of the DisassociateLibraryItemReview operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateLibraryItemReview
default CompletableFuture<DisassociateLibraryItemReviewResponse> disassociateLibraryItemReview(Consumer<DisassociateLibraryItemReviewRequest.Builder> disassociateLibraryItemReviewRequest) Removes a rating or review previously submitted by the user for a library item.
This is a convenience which creates an instance of the
DisassociateLibraryItemReviewRequest.Builder
avoiding the need to create one manually viaDisassociateLibraryItemReviewRequest.builder()
- Parameters:
disassociateLibraryItemReviewRequest
- AConsumer
that will call methods onDisassociateLibraryItemReviewRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateLibraryItemReview operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateQAppFromUser
default CompletableFuture<DisassociateQAppFromUserResponse> disassociateQAppFromUser(DisassociateQAppFromUserRequest disassociateQAppFromUserRequest) Disassociates a Q App from a user removing the user's access to run the Q App.
- Parameters:
disassociateQAppFromUserRequest
-- Returns:
- A Java Future containing the result of the DisassociateQAppFromUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateQAppFromUser
default CompletableFuture<DisassociateQAppFromUserResponse> disassociateQAppFromUser(Consumer<DisassociateQAppFromUserRequest.Builder> disassociateQAppFromUserRequest) Disassociates a Q App from a user removing the user's access to run the Q App.
This is a convenience which creates an instance of the
DisassociateQAppFromUserRequest.Builder
avoiding the need to create one manually viaDisassociateQAppFromUserRequest.builder()
- Parameters:
disassociateQAppFromUserRequest
- AConsumer
that will call methods onDisassociateQAppFromUserRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateQAppFromUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
exportQAppSessionData
default CompletableFuture<ExportQAppSessionDataResponse> exportQAppSessionData(ExportQAppSessionDataRequest exportQAppSessionDataRequest) Exports the collected data of a Q App data collection session.
- Parameters:
exportQAppSessionDataRequest
-- Returns:
- A Java Future containing the result of the ExportQAppSessionData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
exportQAppSessionData
default CompletableFuture<ExportQAppSessionDataResponse> exportQAppSessionData(Consumer<ExportQAppSessionDataRequest.Builder> exportQAppSessionDataRequest) Exports the collected data of a Q App data collection session.
This is a convenience which creates an instance of the
ExportQAppSessionDataRequest.Builder
avoiding the need to create one manually viaExportQAppSessionDataRequest.builder()
- Parameters:
exportQAppSessionDataRequest
- AConsumer
that will call methods onExportQAppSessionDataRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ExportQAppSessionData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getLibraryItem
default CompletableFuture<GetLibraryItemResponse> getLibraryItem(GetLibraryItemRequest getLibraryItemRequest) Retrieves details about a library item for an Amazon Q App, including its metadata, categories, ratings, and usage statistics.
- Parameters:
getLibraryItemRequest
-- Returns:
- A Java Future containing the result of the GetLibraryItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getLibraryItem
default CompletableFuture<GetLibraryItemResponse> getLibraryItem(Consumer<GetLibraryItemRequest.Builder> getLibraryItemRequest) Retrieves details about a library item for an Amazon Q App, including its metadata, categories, ratings, and usage statistics.
This is a convenience which creates an instance of the
GetLibraryItemRequest.Builder
avoiding the need to create one manually viaGetLibraryItemRequest.builder()
- Parameters:
getLibraryItemRequest
- AConsumer
that will call methods onGetLibraryItemRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetLibraryItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getQApp
Retrieves the full details of an Q App, including its definition specifying the cards and flow.
- Parameters:
getQAppRequest
-- Returns:
- A Java Future containing the result of the GetQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getQApp
Retrieves the full details of an Q App, including its definition specifying the cards and flow.
This is a convenience which creates an instance of the
GetQAppRequest.Builder
avoiding the need to create one manually viaGetQAppRequest.builder()
- Parameters:
getQAppRequest
- AConsumer
that will call methods onGetQAppRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getQAppSession
default CompletableFuture<GetQAppSessionResponse> getQAppSession(GetQAppSessionRequest getQAppSessionRequest) Retrieves the current state and results for an active session of an Amazon Q App.
- Parameters:
getQAppSessionRequest
-- Returns:
- A Java Future containing the result of the GetQAppSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getQAppSession
default CompletableFuture<GetQAppSessionResponse> getQAppSession(Consumer<GetQAppSessionRequest.Builder> getQAppSessionRequest) Retrieves the current state and results for an active session of an Amazon Q App.
This is a convenience which creates an instance of the
GetQAppSessionRequest.Builder
avoiding the need to create one manually viaGetQAppSessionRequest.builder()
- Parameters:
getQAppSessionRequest
- AConsumer
that will call methods onGetQAppSessionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetQAppSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getQAppSessionMetadata
default CompletableFuture<GetQAppSessionMetadataResponse> getQAppSessionMetadata(GetQAppSessionMetadataRequest getQAppSessionMetadataRequest) Retrieves the current configuration of a Q App session.
- Parameters:
getQAppSessionMetadataRequest
-- Returns:
- A Java Future containing the result of the GetQAppSessionMetadata operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getQAppSessionMetadata
default CompletableFuture<GetQAppSessionMetadataResponse> getQAppSessionMetadata(Consumer<GetQAppSessionMetadataRequest.Builder> getQAppSessionMetadataRequest) Retrieves the current configuration of a Q App session.
This is a convenience which creates an instance of the
GetQAppSessionMetadataRequest.Builder
avoiding the need to create one manually viaGetQAppSessionMetadataRequest.builder()
- Parameters:
getQAppSessionMetadataRequest
- AConsumer
that will call methods onGetQAppSessionMetadataRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetQAppSessionMetadata operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
importDocument
default CompletableFuture<ImportDocumentResponse> importDocument(ImportDocumentRequest importDocumentRequest) Uploads a file that can then be used either as a default in a
FileUploadCard
from Q App definition or as a file that is used inside a single Q App run. The purpose of the document is determined by a scope parameter that indicates whether it is at the app definition level or at the app session level.- Parameters:
importDocumentRequest
-- Returns:
- A Java Future containing the result of the ImportDocument operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ContentTooLargeException The requested operation could not be completed because the content exceeds the maximum allowed size.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
importDocument
default CompletableFuture<ImportDocumentResponse> importDocument(Consumer<ImportDocumentRequest.Builder> importDocumentRequest) Uploads a file that can then be used either as a default in a
FileUploadCard
from Q App definition or as a file that is used inside a single Q App run. The purpose of the document is determined by a scope parameter that indicates whether it is at the app definition level or at the app session level.
This is a convenience which creates an instance of the
ImportDocumentRequest.Builder
avoiding the need to create one manually viaImportDocumentRequest.builder()
- Parameters:
importDocumentRequest
- AConsumer
that will call methods onImportDocumentRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ImportDocument operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ContentTooLargeException The requested operation could not be completed because the content exceeds the maximum allowed size.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCategories
default CompletableFuture<ListCategoriesResponse> listCategories(ListCategoriesRequest listCategoriesRequest) Lists the categories of a Amazon Q Business application environment instance. For more information, see Custom labels for Amazon Q Apps.
- Parameters:
listCategoriesRequest
-- Returns:
- A Java Future containing the result of the ListCategories operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCategories
default CompletableFuture<ListCategoriesResponse> listCategories(Consumer<ListCategoriesRequest.Builder> listCategoriesRequest) Lists the categories of a Amazon Q Business application environment instance. For more information, see Custom labels for Amazon Q Apps.
This is a convenience which creates an instance of the
ListCategoriesRequest.Builder
avoiding the need to create one manually viaListCategoriesRequest.builder()
- Parameters:
listCategoriesRequest
- AConsumer
that will call methods onListCategoriesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListCategories operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listLibraryItems
default CompletableFuture<ListLibraryItemsResponse> listLibraryItems(ListLibraryItemsRequest listLibraryItemsRequest) Lists the library items for Amazon Q Apps that are published and available for users in your Amazon Web Services account.
- Parameters:
listLibraryItemsRequest
-- Returns:
- A Java Future containing the result of the ListLibraryItems operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listLibraryItems
default CompletableFuture<ListLibraryItemsResponse> listLibraryItems(Consumer<ListLibraryItemsRequest.Builder> listLibraryItemsRequest) Lists the library items for Amazon Q Apps that are published and available for users in your Amazon Web Services account.
This is a convenience which creates an instance of the
ListLibraryItemsRequest.Builder
avoiding the need to create one manually viaListLibraryItemsRequest.builder()
- Parameters:
listLibraryItemsRequest
- AConsumer
that will call methods onListLibraryItemsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListLibraryItems operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listLibraryItemsPaginator
default ListLibraryItemsPublisher listLibraryItemsPaginator(ListLibraryItemsRequest listLibraryItemsRequest) This is a variant of
listLibraryItems(software.amazon.awssdk.services.qapps.model.ListLibraryItemsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.qapps.paginators.ListLibraryItemsPublisher publisher = client.listLibraryItemsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.qapps.paginators.ListLibraryItemsPublisher publisher = client.listLibraryItemsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.qapps.model.ListLibraryItemsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.qapps.model.ListLibraryItemsResponse response) { //... }; });
Please notice that the configuration of limit 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
listLibraryItems(software.amazon.awssdk.services.qapps.model.ListLibraryItemsRequest)
operation.- Parameters:
listLibraryItemsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listLibraryItemsPaginator
default ListLibraryItemsPublisher listLibraryItemsPaginator(Consumer<ListLibraryItemsRequest.Builder> listLibraryItemsRequest) This is a variant of
listLibraryItems(software.amazon.awssdk.services.qapps.model.ListLibraryItemsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.qapps.paginators.ListLibraryItemsPublisher publisher = client.listLibraryItemsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.qapps.paginators.ListLibraryItemsPublisher publisher = client.listLibraryItemsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.qapps.model.ListLibraryItemsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.qapps.model.ListLibraryItemsResponse response) { //... }; });
Please notice that the configuration of limit 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
listLibraryItems(software.amazon.awssdk.services.qapps.model.ListLibraryItemsRequest)
operation.
This is a convenience which creates an instance of the
ListLibraryItemsRequest.Builder
avoiding the need to create one manually viaListLibraryItemsRequest.builder()
- Parameters:
listLibraryItemsRequest
- AConsumer
that will call methods onListLibraryItemsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listQAppSessionData
default CompletableFuture<ListQAppSessionDataResponse> listQAppSessionData(ListQAppSessionDataRequest listQAppSessionDataRequest) Lists the collected data of a Q App data collection session.
- Parameters:
listQAppSessionDataRequest
-- Returns:
- A Java Future containing the result of the ListQAppSessionData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listQAppSessionData
default CompletableFuture<ListQAppSessionDataResponse> listQAppSessionData(Consumer<ListQAppSessionDataRequest.Builder> listQAppSessionDataRequest) Lists the collected data of a Q App data collection session.
This is a convenience which creates an instance of the
ListQAppSessionDataRequest.Builder
avoiding the need to create one manually viaListQAppSessionDataRequest.builder()
- Parameters:
listQAppSessionDataRequest
- AConsumer
that will call methods onListQAppSessionDataRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListQAppSessionData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listQApps
Lists the Amazon Q Apps owned by or associated with the user either because they created it or because they used it from the library in the past. The user identity is extracted from the credentials used to invoke this operation..
- Parameters:
listQAppsRequest
-- Returns:
- A Java Future containing the result of the ListQApps operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listQApps
default CompletableFuture<ListQAppsResponse> listQApps(Consumer<ListQAppsRequest.Builder> listQAppsRequest) Lists the Amazon Q Apps owned by or associated with the user either because they created it or because they used it from the library in the past. The user identity is extracted from the credentials used to invoke this operation..
This is a convenience which creates an instance of the
ListQAppsRequest.Builder
avoiding the need to create one manually viaListQAppsRequest.builder()
- Parameters:
listQAppsRequest
- AConsumer
that will call methods onListQAppsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListQApps operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listQAppsPaginator
This is a variant of
listQApps(software.amazon.awssdk.services.qapps.model.ListQAppsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.qapps.paginators.ListQAppsPublisher publisher = client.listQAppsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.qapps.paginators.ListQAppsPublisher publisher = client.listQAppsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.qapps.model.ListQAppsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.qapps.model.ListQAppsResponse response) { //... }; });
Please notice that the configuration of limit 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
listQApps(software.amazon.awssdk.services.qapps.model.ListQAppsRequest)
operation.- Parameters:
listQAppsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listQAppsPaginator
This is a variant of
listQApps(software.amazon.awssdk.services.qapps.model.ListQAppsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.qapps.paginators.ListQAppsPublisher publisher = client.listQAppsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.qapps.paginators.ListQAppsPublisher publisher = client.listQAppsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.qapps.model.ListQAppsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.qapps.model.ListQAppsResponse response) { //... }; });
Please notice that the configuration of limit 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
listQApps(software.amazon.awssdk.services.qapps.model.ListQAppsRequest)
operation.
This is a convenience which creates an instance of the
ListQAppsRequest.Builder
avoiding the need to create one manually viaListQAppsRequest.builder()
- Parameters:
listQAppsRequest
- AConsumer
that will call methods onListQAppsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags associated with an Amazon Q Apps resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags associated with an Amazon Q Apps resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
predictQApp
Generates an Amazon Q App definition based on either a conversation or a problem statement provided as input.The resulting app definition can be used to call
CreateQApp
. This API doesn't create Amazon Q Apps directly.- Parameters:
predictQAppRequest
-- Returns:
- A Java Future containing the result of the PredictQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
predictQApp
default CompletableFuture<PredictQAppResponse> predictQApp(Consumer<PredictQAppRequest.Builder> predictQAppRequest) Generates an Amazon Q App definition based on either a conversation or a problem statement provided as input.The resulting app definition can be used to call
CreateQApp
. This API doesn't create Amazon Q Apps directly.
This is a convenience which creates an instance of the
PredictQAppRequest.Builder
avoiding the need to create one manually viaPredictQAppRequest.builder()
- Parameters:
predictQAppRequest
- AConsumer
that will call methods onPredictQAppRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PredictQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startQAppSession
default CompletableFuture<StartQAppSessionResponse> startQAppSession(StartQAppSessionRequest startQAppSessionRequest) Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run.
Each Q App session will be condensed into a single conversation in the web experience.
- Parameters:
startQAppSessionRequest
-- Returns:
- A Java Future containing the result of the StartQAppSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startQAppSession
default CompletableFuture<StartQAppSessionResponse> startQAppSession(Consumer<StartQAppSessionRequest.Builder> startQAppSessionRequest) Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run.
Each Q App session will be condensed into a single conversation in the web experience.
This is a convenience which creates an instance of the
StartQAppSessionRequest.Builder
avoiding the need to create one manually viaStartQAppSessionRequest.builder()
- Parameters:
startQAppSessionRequest
- AConsumer
that will call methods onStartQAppSessionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartQAppSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopQAppSession
default CompletableFuture<StopQAppSessionResponse> stopQAppSession(StopQAppSessionRequest stopQAppSessionRequest) Stops an active session for an Amazon Q App.This deletes all data related to the session and makes it invalid for future uses. The results of the session will be persisted as part of the conversation.
- Parameters:
stopQAppSessionRequest
-- Returns:
- A Java Future containing the result of the StopQAppSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopQAppSession
default CompletableFuture<StopQAppSessionResponse> stopQAppSession(Consumer<StopQAppSessionRequest.Builder> stopQAppSessionRequest) Stops an active session for an Amazon Q App.This deletes all data related to the session and makes it invalid for future uses. The results of the session will be persisted as part of the conversation.
This is a convenience which creates an instance of the
StopQAppSessionRequest.Builder
avoiding the need to create one manually viaStopQAppSessionRequest.builder()
- Parameters:
stopQAppSessionRequest
- AConsumer
that will call methods onStopQAppSessionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StopQAppSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Associates tags with an Amazon Q Apps resource.
- Parameters:
tagResourceRequest
-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates tags with an Amazon Q Apps resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Disassociates tags from an Amazon Q Apps resource.
- Parameters:
untagResourceRequest
-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Disassociates tags from an Amazon Q Apps resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateLibraryItem
default CompletableFuture<UpdateLibraryItemResponse> updateLibraryItem(UpdateLibraryItemRequest updateLibraryItemRequest) Updates the library item for an Amazon Q App.
- Parameters:
updateLibraryItemRequest
-- Returns:
- A Java Future containing the result of the UpdateLibraryItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateLibraryItem
default CompletableFuture<UpdateLibraryItemResponse> updateLibraryItem(Consumer<UpdateLibraryItemRequest.Builder> updateLibraryItemRequest) Updates the library item for an Amazon Q App.
This is a convenience which creates an instance of the
UpdateLibraryItemRequest.Builder
avoiding the need to create one manually viaUpdateLibraryItemRequest.builder()
- Parameters:
updateLibraryItemRequest
- AConsumer
that will call methods onUpdateLibraryItemRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateLibraryItem operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateLibraryItemMetadata
default CompletableFuture<UpdateLibraryItemMetadataResponse> updateLibraryItemMetadata(UpdateLibraryItemMetadataRequest updateLibraryItemMetadataRequest) Updates the verification status of a library item for an Amazon Q App.
- Parameters:
updateLibraryItemMetadataRequest
-- Returns:
- A Java Future containing the result of the UpdateLibraryItemMetadata operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateLibraryItemMetadata
default CompletableFuture<UpdateLibraryItemMetadataResponse> updateLibraryItemMetadata(Consumer<UpdateLibraryItemMetadataRequest.Builder> updateLibraryItemMetadataRequest) Updates the verification status of a library item for an Amazon Q App.
This is a convenience which creates an instance of the
UpdateLibraryItemMetadataRequest.Builder
avoiding the need to create one manually viaUpdateLibraryItemMetadataRequest.builder()
- Parameters:
updateLibraryItemMetadataRequest
- AConsumer
that will call methods onUpdateLibraryItemMetadataRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateLibraryItemMetadata operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ConflictException The requested operation could not be completed due to a conflict with the current state of the resource.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateQApp
Updates an existing Amazon Q App, allowing modifications to its title, description, and definition.
- Parameters:
updateQAppRequest
-- Returns:
- A Java Future containing the result of the UpdateQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ContentTooLargeException The requested operation could not be completed because the content exceeds the maximum allowed size.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateQApp
default CompletableFuture<UpdateQAppResponse> updateQApp(Consumer<UpdateQAppRequest.Builder> updateQAppRequest) Updates an existing Amazon Q App, allowing modifications to its title, description, and definition.
This is a convenience which creates an instance of the
UpdateQAppRequest.Builder
avoiding the need to create one manually viaUpdateQAppRequest.builder()
- Parameters:
updateQAppRequest
- AConsumer
that will call methods onUpdateQAppRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateQApp operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ContentTooLargeException The requested operation could not be completed because the content exceeds the maximum allowed size.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateQAppPermissions
default CompletableFuture<UpdateQAppPermissionsResponse> updateQAppPermissions(UpdateQAppPermissionsRequest updateQAppPermissionsRequest) Updates read permissions for a Amazon Q App in Amazon Q Business application environment instance.
- Parameters:
updateQAppPermissionsRequest
-- Returns:
- A Java Future containing the result of the UpdateQAppPermissions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateQAppPermissions
default CompletableFuture<UpdateQAppPermissionsResponse> updateQAppPermissions(Consumer<UpdateQAppPermissionsRequest.Builder> updateQAppPermissionsRequest) Updates read permissions for a Amazon Q App in Amazon Q Business application environment instance.
This is a convenience which creates an instance of the
UpdateQAppPermissionsRequest.Builder
avoiding the need to create one manually viaUpdateQAppPermissionsRequest.builder()
- Parameters:
updateQAppPermissionsRequest
- AConsumer
that will call methods onUpdateQAppPermissionsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateQAppPermissions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateQAppSession
default CompletableFuture<UpdateQAppSessionResponse> updateQAppSession(UpdateQAppSessionRequest updateQAppSessionRequest) Updates the session for a given Q App
sessionId
. This is only valid when at least one card of the session is in theWAITING
state. Data for eachWAITING
card can be provided as input. If inputs are not provided, the call will be accepted but session will not move forward. Inputs for cards that are not in theWAITING
status will be ignored.- Parameters:
updateQAppSessionRequest
-- Returns:
- A Java Future containing the result of the UpdateQAppSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateQAppSession
default CompletableFuture<UpdateQAppSessionResponse> updateQAppSession(Consumer<UpdateQAppSessionRequest.Builder> updateQAppSessionRequest) Updates the session for a given Q App
sessionId
. This is only valid when at least one card of the session is in theWAITING
state. Data for eachWAITING
card can be provided as input. If inputs are not provided, the call will be accepted but session will not move forward. Inputs for cards that are not in theWAITING
status will be ignored.
This is a convenience which creates an instance of the
UpdateQAppSessionRequest.Builder
avoiding the need to create one manually viaUpdateQAppSessionRequest.builder()
- Parameters:
updateQAppSessionRequest
- AConsumer
that will call methods onUpdateQAppSessionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateQAppSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateQAppSessionMetadata
default CompletableFuture<UpdateQAppSessionMetadataResponse> updateQAppSessionMetadata(UpdateQAppSessionMetadataRequest updateQAppSessionMetadataRequest) Updates the configuration metadata of a session for a given Q App
sessionId
.- Parameters:
updateQAppSessionMetadataRequest
-- Returns:
- A Java Future containing the result of the UpdateQAppSessionMetadata operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateQAppSessionMetadata
default CompletableFuture<UpdateQAppSessionMetadataResponse> updateQAppSessionMetadata(Consumer<UpdateQAppSessionMetadataRequest.Builder> updateQAppSessionMetadataRequest) Updates the configuration metadata of a session for a given Q App
sessionId
.
This is a convenience which creates an instance of the
UpdateQAppSessionMetadataRequest.Builder
avoiding the need to create one manually viaUpdateQAppSessionMetadataRequest.builder()
- Parameters:
updateQAppSessionMetadataRequest
- AConsumer
that will call methods onUpdateQAppSessionMetadataRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateQAppSessionMetadata operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The requested resource could not be found.
- AccessDeniedException The client is not authorized to perform the requested operation.
- ValidationException The input failed to satisfy the constraints specified by the service.
- InternalServerException An internal service error occurred while processing the request.
- UnauthorizedException The client is not authenticated or authorized to perform the requested operation.
- ServiceQuotaExceededException The requested operation could not be completed because it would exceed the service's quota or limit.
- ThrottlingException The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- QAppsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aQAppsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aQAppsAsyncClient
.
-