Interface TrustedAdvisorAsyncClient
- 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.
TrustedAdvisor Public API
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbatchUpdateRecommendationResourceExclusion
(Consumer<BatchUpdateRecommendationResourceExclusionRequest.Builder> batchUpdateRecommendationResourceExclusionRequest) Update one or more exclusion status for a list of recommendation resourcesbatchUpdateRecommendationResourceExclusion
(BatchUpdateRecommendationResourceExclusionRequest batchUpdateRecommendationResourceExclusionRequest) Update one or more exclusion status for a list of recommendation resourcesbuilder()
Create a builder that can be used to configure and create aTrustedAdvisorAsyncClient
.static TrustedAdvisorAsyncClient
create()
Create aTrustedAdvisorAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.getOrganizationRecommendation
(Consumer<GetOrganizationRecommendationRequest.Builder> getOrganizationRecommendationRequest) Get a specific recommendation within an AWS Organizations organization.getOrganizationRecommendation
(GetOrganizationRecommendationRequest getOrganizationRecommendationRequest) Get a specific recommendation within an AWS Organizations organization.getRecommendation
(Consumer<GetRecommendationRequest.Builder> getRecommendationRequest) Get a specific RecommendationgetRecommendation
(GetRecommendationRequest getRecommendationRequest) Get a specific Recommendationdefault CompletableFuture
<ListChecksResponse> listChecks
(Consumer<ListChecksRequest.Builder> listChecksRequest) List a filterable set of Checksdefault CompletableFuture
<ListChecksResponse> listChecks
(ListChecksRequest listChecksRequest) List a filterable set of Checksdefault ListChecksPublisher
listChecksPaginator
(Consumer<ListChecksRequest.Builder> listChecksRequest) This is a variant oflistChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation.default ListChecksPublisher
listChecksPaginator
(ListChecksRequest listChecksRequest) This is a variant oflistChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation.listOrganizationRecommendationAccounts
(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) Lists the accounts that own the resources for an organization aggregate recommendation.listOrganizationRecommendationAccounts
(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) Lists the accounts that own the resources for an organization aggregate recommendation.listOrganizationRecommendationAccountsPaginator
(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) listOrganizationRecommendationAccountsPaginator
(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) listOrganizationRecommendationResources
(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) List Resources of a Recommendation within an Organization.listOrganizationRecommendationResources
(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) List Resources of a Recommendation within an Organization.listOrganizationRecommendationResourcesPaginator
(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) listOrganizationRecommendationResourcesPaginator
(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) listOrganizationRecommendations
(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) List a filterable set of Recommendations within an Organization.listOrganizationRecommendations
(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) List a filterable set of Recommendations within an Organization.listOrganizationRecommendationsPaginator
(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) This is a variant oflistOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation.listOrganizationRecommendationsPaginator
(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) This is a variant oflistOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation.listRecommendationResources
(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) List Resources of a RecommendationlistRecommendationResources
(ListRecommendationResourcesRequest listRecommendationResourcesRequest) List Resources of a RecommendationlistRecommendationResourcesPaginator
(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) This is a variant oflistRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation.listRecommendationResourcesPaginator
(ListRecommendationResourcesRequest listRecommendationResourcesRequest) This is a variant oflistRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation.listRecommendations
(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) List a filterable set of RecommendationslistRecommendations
(ListRecommendationsRequest listRecommendationsRequest) List a filterable set of Recommendationsdefault ListRecommendationsPublisher
listRecommendationsPaginator
(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) This is a variant oflistRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation.default ListRecommendationsPublisher
listRecommendationsPaginator
(ListRecommendationsRequest listRecommendationsRequest) This is a variant oflistRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationupdateOrganizationRecommendationLifecycle
(Consumer<UpdateOrganizationRecommendationLifecycleRequest.Builder> updateOrganizationRecommendationLifecycleRequest) Update the lifecycle of a Recommendation within an Organization.updateOrganizationRecommendationLifecycle
(UpdateOrganizationRecommendationLifecycleRequest updateOrganizationRecommendationLifecycleRequest) Update the lifecycle of a Recommendation within an Organization.updateRecommendationLifecycle
(Consumer<UpdateRecommendationLifecycleRequest.Builder> updateRecommendationLifecycleRequest) Update the lifecyle of a Recommendation.updateRecommendationLifecycle
(UpdateRecommendationLifecycleRequest updateRecommendationLifecycleRequest) Update the lifecyle of a Recommendation.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
-
batchUpdateRecommendationResourceExclusion
default CompletableFuture<BatchUpdateRecommendationResourceExclusionResponse> batchUpdateRecommendationResourceExclusion(BatchUpdateRecommendationResourceExclusionRequest batchUpdateRecommendationResourceExclusionRequest) Update one or more exclusion status for a list of recommendation resources
- Parameters:
batchUpdateRecommendationResourceExclusionRequest
-- Returns:
- A Java Future containing the result of the BatchUpdateRecommendationResourceExclusion 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 Exception that access has been denied due to insufficient access
- ConflictException Exception that the request was denied due to conflictions in state
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateRecommendationResourceExclusion
default CompletableFuture<BatchUpdateRecommendationResourceExclusionResponse> batchUpdateRecommendationResourceExclusion(Consumer<BatchUpdateRecommendationResourceExclusionRequest.Builder> batchUpdateRecommendationResourceExclusionRequest) Update one or more exclusion status for a list of recommendation resources
This is a convenience which creates an instance of the
BatchUpdateRecommendationResourceExclusionRequest.Builder
avoiding the need to create one manually viaBatchUpdateRecommendationResourceExclusionRequest.builder()
- Parameters:
batchUpdateRecommendationResourceExclusionRequest
- AConsumer
that will call methods onBatchUpdateRecommendationResourceExclusionRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchUpdateRecommendationResourceExclusion 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 Exception that access has been denied due to insufficient access
- ConflictException Exception that the request was denied due to conflictions in state
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOrganizationRecommendation
default CompletableFuture<GetOrganizationRecommendationResponse> getOrganizationRecommendation(GetOrganizationRecommendationRequest getOrganizationRecommendationRequest) Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations.
- Parameters:
getOrganizationRecommendationRequest
-- Returns:
- A Java Future containing the result of the GetOrganizationRecommendation 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOrganizationRecommendation
default CompletableFuture<GetOrganizationRecommendationResponse> getOrganizationRecommendation(Consumer<GetOrganizationRecommendationRequest.Builder> getOrganizationRecommendationRequest) Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations.
This is a convenience which creates an instance of the
GetOrganizationRecommendationRequest.Builder
avoiding the need to create one manually viaGetOrganizationRecommendationRequest.builder()
- Parameters:
getOrganizationRecommendationRequest
- AConsumer
that will call methods onGetOrganizationRecommendationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetOrganizationRecommendation 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRecommendation
default CompletableFuture<GetRecommendationResponse> getRecommendation(GetRecommendationRequest getRecommendationRequest) Get a specific Recommendation
- Parameters:
getRecommendationRequest
-- Returns:
- A Java Future containing the result of the GetRecommendation 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRecommendation
default CompletableFuture<GetRecommendationResponse> getRecommendation(Consumer<GetRecommendationRequest.Builder> getRecommendationRequest) Get a specific Recommendation
This is a convenience which creates an instance of the
GetRecommendationRequest.Builder
avoiding the need to create one manually viaGetRecommendationRequest.builder()
- Parameters:
getRecommendationRequest
- AConsumer
that will call methods onGetRecommendationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetRecommendation 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChecks
List a filterable set of Checks
- Parameters:
listChecksRequest
-- Returns:
- A Java Future containing the result of the ListChecks 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChecks
default CompletableFuture<ListChecksResponse> listChecks(Consumer<ListChecksRequest.Builder> listChecksRequest) List a filterable set of Checks
This is a convenience which creates an instance of the
ListChecksRequest.Builder
avoiding the need to create one manually viaListChecksRequest.builder()
- Parameters:
listChecksRequest
- AConsumer
that will call methods onListChecksRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListChecks 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChecksPaginator
This is a variant of
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
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.trustedadvisor.paginators.ListChecksPublisher publisher = client.listChecksPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksPublisher publisher = client.listChecksPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation.- Parameters:
listChecksRequest
-- 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChecksPaginator
default ListChecksPublisher listChecksPaginator(Consumer<ListChecksRequest.Builder> listChecksRequest) This is a variant of
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
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.trustedadvisor.paginators.ListChecksPublisher publisher = client.listChecksPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksPublisher publisher = client.listChecksPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)
operation.
This is a convenience which creates an instance of the
ListChecksRequest.Builder
avoiding the need to create one manually viaListChecksRequest.builder()
- Parameters:
listChecksRequest
- AConsumer
that will call methods onListChecksRequest.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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationAccounts
default CompletableFuture<ListOrganizationRecommendationAccountsResponse> listOrganizationRecommendationAccounts(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationAccountsRequest
-- Returns:
- A Java Future containing the result of the ListOrganizationRecommendationAccounts 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationAccounts
default CompletableFuture<ListOrganizationRecommendationAccountsResponse> listOrganizationRecommendationAccounts(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
ListOrganizationRecommendationAccountsRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationAccountsRequest.builder()
- Parameters:
listOrganizationRecommendationAccountsRequest
- AConsumer
that will call methods onListOrganizationRecommendationAccountsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListOrganizationRecommendationAccounts 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationAccountsPaginator
default ListOrganizationRecommendationAccountsPublisher listOrganizationRecommendationAccountsPaginator(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) This is a variant of
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)
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.trustedadvisor.paginators.ListOrganizationRecommendationAccountsPublisher publisher = client.listOrganizationRecommendationAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsPublisher publisher = client.listOrganizationRecommendationAccountsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)
operation.- Parameters:
listOrganizationRecommendationAccountsRequest
-- 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationAccountsPaginator
default ListOrganizationRecommendationAccountsPublisher listOrganizationRecommendationAccountsPaginator(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) This is a variant of
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)
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.trustedadvisor.paginators.ListOrganizationRecommendationAccountsPublisher publisher = client.listOrganizationRecommendationAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsPublisher publisher = client.listOrganizationRecommendationAccountsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)
operation.
This is a convenience which creates an instance of the
ListOrganizationRecommendationAccountsRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationAccountsRequest.builder()
- Parameters:
listOrganizationRecommendationAccountsRequest
- AConsumer
that will call methods onListOrganizationRecommendationAccountsRequest.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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationResources
default CompletableFuture<ListOrganizationRecommendationResourcesResponse> listOrganizationRecommendationResources(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationResourcesRequest
-- Returns:
- A Java Future containing the result of the ListOrganizationRecommendationResources 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationResources
default CompletableFuture<ListOrganizationRecommendationResourcesResponse> listOrganizationRecommendationResources(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
ListOrganizationRecommendationResourcesRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationResourcesRequest.builder()
- Parameters:
listOrganizationRecommendationResourcesRequest
- AConsumer
that will call methods onListOrganizationRecommendationResourcesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListOrganizationRecommendationResources 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationResourcesPaginator
default ListOrganizationRecommendationResourcesPublisher listOrganizationRecommendationResourcesPaginator(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) This is a variant of
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)
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.trustedadvisor.paginators.ListOrganizationRecommendationResourcesPublisher publisher = client.listOrganizationRecommendationResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesPublisher publisher = client.listOrganizationRecommendationResourcesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)
operation.- Parameters:
listOrganizationRecommendationResourcesRequest
-- 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationResourcesPaginator
default ListOrganizationRecommendationResourcesPublisher listOrganizationRecommendationResourcesPaginator(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) This is a variant of
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)
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.trustedadvisor.paginators.ListOrganizationRecommendationResourcesPublisher publisher = client.listOrganizationRecommendationResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesPublisher publisher = client.listOrganizationRecommendationResourcesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)
operation.
This is a convenience which creates an instance of the
ListOrganizationRecommendationResourcesRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationResourcesRequest.builder()
- Parameters:
listOrganizationRecommendationResourcesRequest
- AConsumer
that will call methods onListOrganizationRecommendationResourcesRequest.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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendations
default CompletableFuture<ListOrganizationRecommendationsResponse> listOrganizationRecommendations(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationsRequest
-- Returns:
- A Java Future containing the result of the ListOrganizationRecommendations 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendations
default CompletableFuture<ListOrganizationRecommendationsResponse> listOrganizationRecommendations(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
ListOrganizationRecommendationsRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationsRequest.builder()
- Parameters:
listOrganizationRecommendationsRequest
- AConsumer
that will call methods onListOrganizationRecommendationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListOrganizationRecommendations 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationsPaginator
default ListOrganizationRecommendationsPublisher listOrganizationRecommendationsPaginator(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) This is a variant of
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
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.trustedadvisor.paginators.ListOrganizationRecommendationsPublisher publisher = client.listOrganizationRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsPublisher publisher = client.listOrganizationRecommendationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation.- Parameters:
listOrganizationRecommendationsRequest
-- 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOrganizationRecommendationsPaginator
default ListOrganizationRecommendationsPublisher listOrganizationRecommendationsPaginator(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) This is a variant of
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
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.trustedadvisor.paginators.ListOrganizationRecommendationsPublisher publisher = client.listOrganizationRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsPublisher publisher = client.listOrganizationRecommendationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)
operation.
This is a convenience which creates an instance of the
ListOrganizationRecommendationsRequest.Builder
avoiding the need to create one manually viaListOrganizationRecommendationsRequest.builder()
- Parameters:
listOrganizationRecommendationsRequest
- AConsumer
that will call methods onListOrganizationRecommendationsRequest.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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationResources
default CompletableFuture<ListRecommendationResourcesResponse> listRecommendationResources(ListRecommendationResourcesRequest listRecommendationResourcesRequest) List Resources of a Recommendation
- Parameters:
listRecommendationResourcesRequest
-- Returns:
- A Java Future containing the result of the ListRecommendationResources 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationResources
default CompletableFuture<ListRecommendationResourcesResponse> listRecommendationResources(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) List Resources of a Recommendation
This is a convenience which creates an instance of the
ListRecommendationResourcesRequest.Builder
avoiding the need to create one manually viaListRecommendationResourcesRequest.builder()
- Parameters:
listRecommendationResourcesRequest
- AConsumer
that will call methods onListRecommendationResourcesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListRecommendationResources 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationResourcesPaginator
default ListRecommendationResourcesPublisher listRecommendationResourcesPaginator(ListRecommendationResourcesRequest listRecommendationResourcesRequest) This is a variant of
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
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.trustedadvisor.paginators.ListRecommendationResourcesPublisher publisher = client.listRecommendationResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesPublisher publisher = client.listRecommendationResourcesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation.- Parameters:
listRecommendationResourcesRequest
-- 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationResourcesPaginator
default ListRecommendationResourcesPublisher listRecommendationResourcesPaginator(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) This is a variant of
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
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.trustedadvisor.paginators.ListRecommendationResourcesPublisher publisher = client.listRecommendationResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesPublisher publisher = client.listRecommendationResourcesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)
operation.
This is a convenience which creates an instance of the
ListRecommendationResourcesRequest.Builder
avoiding the need to create one manually viaListRecommendationResourcesRequest.builder()
- Parameters:
listRecommendationResourcesRequest
- AConsumer
that will call methods onListRecommendationResourcesRequest.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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendations
default CompletableFuture<ListRecommendationsResponse> listRecommendations(ListRecommendationsRequest listRecommendationsRequest) List a filterable set of Recommendations
- Parameters:
listRecommendationsRequest
-- Returns:
- A Java Future containing the result of the ListRecommendations 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendations
default CompletableFuture<ListRecommendationsResponse> listRecommendations(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) List a filterable set of Recommendations
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builder
avoiding the need to create one manually viaListRecommendationsRequest.builder()
- Parameters:
listRecommendationsRequest
- AConsumer
that will call methods onListRecommendationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListRecommendations 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationsPaginator
default ListRecommendationsPublisher listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest) This is a variant of
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
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.trustedadvisor.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation.- Parameters:
listRecommendationsRequest
-- 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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationsPaginator
default ListRecommendationsPublisher listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) This is a variant of
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
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.trustedadvisor.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)
operation.
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builder
avoiding the need to create one manually viaListRecommendationsRequest.builder()
- Parameters:
listRecommendationsRequest
- AConsumer
that will call methods onListRecommendationsRequest.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 Exception that access has been denied due to insufficient access
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateOrganizationRecommendationLifecycle
default CompletableFuture<UpdateOrganizationRecommendationLifecycleResponse> updateOrganizationRecommendationLifecycle(UpdateOrganizationRecommendationLifecycleRequest updateOrganizationRecommendationLifecycleRequest) Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations.
- Parameters:
updateOrganizationRecommendationLifecycleRequest
-- Returns:
- A Java Future containing the result of the UpdateOrganizationRecommendationLifecycle 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 Exception that access has been denied due to insufficient access
- ConflictException Exception that the request was denied due to conflictions in state
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateOrganizationRecommendationLifecycle
default CompletableFuture<UpdateOrganizationRecommendationLifecycleResponse> updateOrganizationRecommendationLifecycle(Consumer<UpdateOrganizationRecommendationLifecycleRequest.Builder> updateOrganizationRecommendationLifecycleRequest) Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
UpdateOrganizationRecommendationLifecycleRequest.Builder
avoiding the need to create one manually viaUpdateOrganizationRecommendationLifecycleRequest.builder()
- Parameters:
updateOrganizationRecommendationLifecycleRequest
- AConsumer
that will call methods onUpdateOrganizationRecommendationLifecycleRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateOrganizationRecommendationLifecycle 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 Exception that access has been denied due to insufficient access
- ConflictException Exception that the request was denied due to conflictions in state
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRecommendationLifecycle
default CompletableFuture<UpdateRecommendationLifecycleResponse> updateRecommendationLifecycle(UpdateRecommendationLifecycleRequest updateRecommendationLifecycleRequest) Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
- Parameters:
updateRecommendationLifecycleRequest
-- Returns:
- A Java Future containing the result of the UpdateRecommendationLifecycle 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 Exception that access has been denied due to insufficient access
- ConflictException Exception that the request was denied due to conflictions in state
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRecommendationLifecycle
default CompletableFuture<UpdateRecommendationLifecycleResponse> updateRecommendationLifecycle(Consumer<UpdateRecommendationLifecycleRequest.Builder> updateRecommendationLifecycleRequest) Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
UpdateRecommendationLifecycleRequest.Builder
avoiding the need to create one manually viaUpdateRecommendationLifecycleRequest.builder()
- Parameters:
updateRecommendationLifecycleRequest
- AConsumer
that will call methods onUpdateRecommendationLifecycleRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateRecommendationLifecycle 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 Exception that access has been denied due to insufficient access
- ConflictException Exception that the request was denied due to conflictions in state
- InternalServerException Exception to notify that an unexpected internal error occurred during processing of the request
- ValidationException Exception that the request failed to satisfy service constraints
- ResourceNotFoundException Exception that the requested resource has not been found
- ThrottlingException Exception to notify that requests are being throttled
- 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.
- TrustedAdvisorException 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 aTrustedAdvisorAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aTrustedAdvisorAsyncClient
.
-