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 static 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 Details

  • 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 invoke Throwable.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 via BatchUpdateRecommendationResourceExclusionRequest.builder()

      Parameters:
      batchUpdateRecommendationResourceExclusionRequest - A Consumer that will call methods on BatchUpdateRecommendationResourceExclusionRequest.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 invoke Throwable.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 invoke Throwable.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 via GetOrganizationRecommendationRequest.builder()

      Parameters:
      getOrganizationRecommendationRequest - A Consumer that will call methods on GetOrganizationRecommendationRequest.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 invoke Throwable.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 invoke Throwable.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 via GetRecommendationRequest.builder()

      Parameters:
      getRecommendationRequest - A Consumer that will call methods on GetRecommendationRequest.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 invoke Throwable.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

      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 via ListChecksRequest.builder()

      Parameters:
      listChecksRequest - A Consumer that will call methods on ListChecksRequest.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 invoke Throwable.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(ListChecksRequest 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksPublisher publisher = client.listChecksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksPublisher publisher = client.listChecksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 via ListChecksRequest.builder()

      Parameters:
      listChecksRequest - A Consumer that will call methods on ListChecksRequest.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 invoke Throwable.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 invoke Throwable.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 via ListOrganizationRecommendationAccountsRequest.builder()

      Parameters:
      listOrganizationRecommendationAccountsRequest - A Consumer that will call methods on ListOrganizationRecommendationAccountsRequest.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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsPublisher publisher = client.listOrganizationRecommendationAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsPublisher publisher = client.listOrganizationRecommendationAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 via ListOrganizationRecommendationAccountsRequest.builder()

      Parameters:
      listOrganizationRecommendationAccountsRequest - A Consumer that will call methods on ListOrganizationRecommendationAccountsRequest.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 invoke Throwable.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 invoke Throwable.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 via ListOrganizationRecommendationResourcesRequest.builder()

      Parameters:
      listOrganizationRecommendationResourcesRequest - A Consumer that will call methods on ListOrganizationRecommendationResourcesRequest.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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesPublisher publisher = client.listOrganizationRecommendationResourcesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesPublisher publisher = client.listOrganizationRecommendationResourcesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 via ListOrganizationRecommendationResourcesRequest.builder()

      Parameters:
      listOrganizationRecommendationResourcesRequest - A Consumer that will call methods on ListOrganizationRecommendationResourcesRequest.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 invoke Throwable.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 invoke Throwable.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 via ListOrganizationRecommendationsRequest.builder()

      Parameters:
      listOrganizationRecommendationsRequest - A Consumer that will call methods on ListOrganizationRecommendationsRequest.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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsPublisher publisher = client.listOrganizationRecommendationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsPublisher publisher = client.listOrganizationRecommendationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 via ListOrganizationRecommendationsRequest.builder()

      Parameters:
      listOrganizationRecommendationsRequest - A Consumer that will call methods on ListOrganizationRecommendationsRequest.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 invoke Throwable.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 invoke Throwable.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 via ListRecommendationResourcesRequest.builder()

      Parameters:
      listRecommendationResourcesRequest - A Consumer that will call methods on ListRecommendationResourcesRequest.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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesPublisher publisher = client.listRecommendationResourcesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesPublisher publisher = client.listRecommendationResourcesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 via ListRecommendationResourcesRequest.builder()

      Parameters:
      listRecommendationResourcesRequest - A Consumer that will call methods on ListRecommendationResourcesRequest.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 invoke Throwable.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 invoke Throwable.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 via ListRecommendationsRequest.builder()

      Parameters:
      listRecommendationsRequest - A Consumer that will call methods on ListRecommendationsRequest.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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 via ListRecommendationsRequest.builder()

      Parameters:
      listRecommendationsRequest - A Consumer that will call methods on ListRecommendationsRequest.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 invoke Throwable.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 invoke Throwable.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 via UpdateOrganizationRecommendationLifecycleRequest.builder()

      Parameters:
      updateOrganizationRecommendationLifecycleRequest - A Consumer that will call methods on UpdateOrganizationRecommendationLifecycleRequest.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 invoke Throwable.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 invoke Throwable.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 via UpdateRecommendationLifecycleRequest.builder()

      Parameters:
      updateRecommendationLifecycleRequest - A Consumer that will call methods on UpdateRecommendationLifecycleRequest.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 invoke Throwable.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

      default TrustedAdvisorServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static TrustedAdvisorAsyncClient create()
      Create a TrustedAdvisorAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a TrustedAdvisorAsyncClient.