Interface TrustedAdvisorAsyncClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface TrustedAdvisorAsyncClient extends AwsClient
Service client for accessing TrustedAdvisor Public API asynchronously. This can be created using the staticbuilder()method.TrustedAdvisor Public API
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.- 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:
- AWS API Documentation
-
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.Builderavoiding the need to create one manually viaGetOrganizationRecommendationRequest.builder()- Parameters:
getOrganizationRecommendationRequest- AConsumerthat will call methods onGetOrganizationRecommendationRequest.Builderto 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.- 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:
- AWS API Documentation
-
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.- 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:
- AWS API Documentation
-
getRecommendation
default CompletableFuture<GetRecommendationResponse> getRecommendation(Consumer<GetRecommendationRequest.Builder> getRecommendationRequest)
Get a specific Recommendation
This is a convenience which creates an instance of the
GetRecommendationRequest.Builderavoiding the need to create one manually viaGetRecommendationRequest.builder()- Parameters:
getRecommendationRequest- AConsumerthat will call methods onGetRecommendationRequest.Builderto 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.- 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:
- AWS API Documentation
-
listChecks
default CompletableFuture<ListChecksResponse> listChecks(ListChecksRequest listChecksRequest)
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.- 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:
- AWS API Documentation
-
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.Builderavoiding the need to create one manually viaListChecksRequest.builder()- Parameters:
listChecksRequest- AConsumerthat will call methods onListChecksRequest.Builderto 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.- 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:
- AWS API Documentation
-
listChecksPaginator
default ListChecksPublisher listChecksPaginator(ListChecksRequest listChecksRequest)
List a filterable set of Checks
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksPublisher publisher = client.listChecksPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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:
- AWS API Documentation
-
listChecksPaginator
default ListChecksPublisher listChecksPaginator(Consumer<ListChecksRequest.Builder> listChecksRequest)
List a filterable set of Checks
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksPublisher publisher = client.listChecksPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListChecksRequest.builder()- Parameters:
listChecksRequest- AConsumerthat will call methods onListChecksRequest.Builderto 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.- 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:
- AWS API Documentation
-
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.- 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:
- AWS API Documentation
-
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.Builderavoiding the need to create one manually viaListOrganizationRecommendationAccountsRequest.builder()- Parameters:
listOrganizationRecommendationAccountsRequest- AConsumerthat will call methods onListOrganizationRecommendationAccountsRequest.Builderto 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.- 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:
- AWS API Documentation
-
listOrganizationRecommendationAccountsPaginator
default ListOrganizationRecommendationAccountsPublisher listOrganizationRecommendationAccountsPaginator(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest)
Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsPublisher publisher = client.listOrganizationRecommendationAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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:
- AWS API Documentation
-
listOrganizationRecommendationAccountsPaginator
default ListOrganizationRecommendationAccountsPublisher listOrganizationRecommendationAccountsPaginator(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 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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsPublisher publisher = client.listOrganizationRecommendationAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListOrganizationRecommendationAccountsRequest.builder()- Parameters:
listOrganizationRecommendationAccountsRequest- AConsumerthat will call methods onListOrganizationRecommendationAccountsRequest.Builderto 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.- 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:
- AWS API Documentation
-
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.- 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:
- AWS API Documentation
-
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.Builderavoiding the need to create one manually viaListOrganizationRecommendationResourcesRequest.builder()- Parameters:
listOrganizationRecommendationResourcesRequest- AConsumerthat will call methods onListOrganizationRecommendationResourcesRequest.Builderto 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.- 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:
- AWS API Documentation
-
listOrganizationRecommendationResourcesPaginator
default ListOrganizationRecommendationResourcesPublisher listOrganizationRecommendationResourcesPaginator(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest)
List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesPublisher publisher = client.listOrganizationRecommendationResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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:
- AWS API Documentation
-
listOrganizationRecommendationResourcesPaginator
default ListOrganizationRecommendationResourcesPublisher listOrganizationRecommendationResourcesPaginator(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest)
List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesPublisher publisher = client.listOrganizationRecommendationResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListOrganizationRecommendationResourcesRequest.builder()- Parameters:
listOrganizationRecommendationResourcesRequest- AConsumerthat will call methods onListOrganizationRecommendationResourcesRequest.Builderto 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.- 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:
- AWS API Documentation
-
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.- 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:
- AWS API Documentation
-
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.Builderavoiding the need to create one manually viaListOrganizationRecommendationsRequest.builder()- Parameters:
listOrganizationRecommendationsRequest- AConsumerthat will call methods onListOrganizationRecommendationsRequest.Builderto 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.- 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:
- AWS API Documentation
-
listOrganizationRecommendationsPaginator
default ListOrganizationRecommendationsPublisher listOrganizationRecommendationsPaginator(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest)
List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsPublisher publisher = client.listOrganizationRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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:
- AWS API Documentation
-
listOrganizationRecommendationsPaginator
default ListOrganizationRecommendationsPublisher listOrganizationRecommendationsPaginator(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest)
List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsPublisher publisher = client.listOrganizationRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListOrganizationRecommendationsRequest.builder()- Parameters:
listOrganizationRecommendationsRequest- AConsumerthat will call methods onListOrganizationRecommendationsRequest.Builderto 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.- 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:
- AWS API Documentation
-
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.- 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:
- AWS API Documentation
-
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.Builderavoiding the need to create one manually viaListRecommendationResourcesRequest.builder()- Parameters:
listRecommendationResourcesRequest- AConsumerthat will call methods onListRecommendationResourcesRequest.Builderto 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.- 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:
- AWS API Documentation
-
listRecommendationResourcesPaginator
default ListRecommendationResourcesPublisher listRecommendationResourcesPaginator(ListRecommendationResourcesRequest listRecommendationResourcesRequest)
List Resources of a Recommendation
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesPublisher publisher = client.listRecommendationResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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:
- AWS API Documentation
-
listRecommendationResourcesPaginator
default ListRecommendationResourcesPublisher listRecommendationResourcesPaginator(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest)
List Resources of a Recommendation
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesPublisher publisher = client.listRecommendationResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListRecommendationResourcesRequest.builder()- Parameters:
listRecommendationResourcesRequest- AConsumerthat will call methods onListRecommendationResourcesRequest.Builderto 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.- 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:
- AWS API Documentation
-
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.- 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:
- AWS API Documentation
-
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.Builderavoiding the need to create one manually viaListRecommendationsRequest.builder()- Parameters:
listRecommendationsRequest- AConsumerthat will call methods onListRecommendationsRequest.Builderto 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.- 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:
- AWS API Documentation
-
listRecommendationsPaginator
default ListRecommendationsPublisher listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest)
List a filterable set of Recommendations
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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:
- AWS API Documentation
-
listRecommendationsPaginator
default ListRecommendationsPublisher listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest)
List a filterable set of Recommendations
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 newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListRecommendationsRequest.builder()- Parameters:
listRecommendationsRequest- AConsumerthat will call methods onListRecommendationsRequest.Builderto 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.- 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:
- AWS API Documentation
-
updateOrganizationRecommendationLifecycle
default CompletableFuture<UpdateOrganizationRecommendationLifecycleResponse> updateOrganizationRecommendationLifecycle(UpdateOrganizationRecommendationLifecycleRequest updateOrganizationRecommendationLifecycleRequest)
Update the lifecyle 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.- 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:
- AWS API Documentation
-
updateOrganizationRecommendationLifecycle
default CompletableFuture<UpdateOrganizationRecommendationLifecycleResponse> updateOrganizationRecommendationLifecycle(Consumer<UpdateOrganizationRecommendationLifecycleRequest.Builder> updateOrganizationRecommendationLifecycleRequest)
Update the lifecyle of a Recommendation within an Organization. This API only supports prioritized recommendations.
This is a convenience which creates an instance of the
UpdateOrganizationRecommendationLifecycleRequest.Builderavoiding the need to create one manually viaUpdateOrganizationRecommendationLifecycleRequest.builder()- Parameters:
updateOrganizationRecommendationLifecycleRequest- AConsumerthat will call methods onUpdateOrganizationRecommendationLifecycleRequest.Builderto 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.- 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:
- AWS API Documentation
-
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.- 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:
- AWS API Documentation
-
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.Builderavoiding the need to create one manually viaUpdateRecommendationLifecycleRequest.builder()- Parameters:
updateRecommendationLifecycleRequest- AConsumerthat will call methods onUpdateRecommendationLifecycleRequest.Builderto 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.- 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:
- AWS API Documentation
-
serviceClientConfiguration
default TrustedAdvisorServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
create
static TrustedAdvisorAsyncClient create()
Create aTrustedAdvisorAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static TrustedAdvisorAsyncClientBuilder builder()
Create a builder that can be used to configure and create aTrustedAdvisorAsyncClient.
-
-