Interface TrustedAdvisorClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface TrustedAdvisorClient extends AwsClient
Service client for accessing TrustedAdvisor Public API. 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
-
batchUpdateRecommendationResourceExclusion
default BatchUpdateRecommendationResourceExclusionResponse batchUpdateRecommendationResourceExclusion(BatchUpdateRecommendationResourceExclusionRequest batchUpdateRecommendationResourceExclusionRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
Update one or more exclusion status for a list of recommendation resources
- Parameters:
batchUpdateRecommendationResourceExclusionRequest-- Returns:
- Result of the BatchUpdateRecommendationResourceExclusion operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessConflictException- Exception that the request was denied due to conflictions in stateInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
batchUpdateRecommendationResourceExclusion
default BatchUpdateRecommendationResourceExclusionResponse batchUpdateRecommendationResourceExclusion(Consumer<BatchUpdateRecommendationResourceExclusionRequest.Builder> batchUpdateRecommendationResourceExclusionRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
Update one or more exclusion status for a list of recommendation resources
This is a convenience which creates an instance of the
BatchUpdateRecommendationResourceExclusionRequest.Builderavoiding the need to create one manually viaBatchUpdateRecommendationResourceExclusionRequest.builder()- Parameters:
batchUpdateRecommendationResourceExclusionRequest- AConsumerthat will call methods onBatchUpdateRecommendationResourceExclusionRequest.Builderto create a request.- Returns:
- Result of the BatchUpdateRecommendationResourceExclusion operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessConflictException- Exception that the request was denied due to conflictions in stateInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getOrganizationRecommendation
default GetOrganizationRecommendationResponse getOrganizationRecommendation(GetOrganizationRecommendationRequest getOrganizationRecommendationRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations.
- Parameters:
getOrganizationRecommendationRequest-- Returns:
- Result of the GetOrganizationRecommendation operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getOrganizationRecommendation
default GetOrganizationRecommendationResponse getOrganizationRecommendation(Consumer<GetOrganizationRecommendationRequest.Builder> getOrganizationRecommendationRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the GetOrganizationRecommendation operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getRecommendation
default GetRecommendationResponse getRecommendation(GetRecommendationRequest getRecommendationRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
Get a specific Recommendation
- Parameters:
getRecommendationRequest-- Returns:
- Result of the GetRecommendation operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
getRecommendation
default GetRecommendationResponse getRecommendation(Consumer<GetRecommendationRequest.Builder> getRecommendationRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the GetRecommendation operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listChecks
default ListChecksResponse listChecks(ListChecksRequest listChecksRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
List a filterable set of Checks
- Parameters:
listChecksRequest-- Returns:
- Result of the ListChecks operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listChecks
default ListChecksResponse listChecks(Consumer<ListChecksRequest.Builder> listChecksRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the ListChecks operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listChecksPaginator
default ListChecksIterable listChecksPaginator(ListChecksRequest listChecksRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)operation.- Parameters:
listChecksRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listChecksPaginator
default ListChecksIterable listChecksPaginator(Consumer<ListChecksRequest.Builder> listChecksRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationAccounts
default ListOrganizationRecommendationAccountsResponse listOrganizationRecommendationAccounts(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationAccountsRequest-- Returns:
- Result of the ListOrganizationRecommendationAccounts operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationAccounts
default ListOrganizationRecommendationAccountsResponse listOrganizationRecommendationAccounts(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the ListOrganizationRecommendationAccounts operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationAccountsPaginator
default ListOrganizationRecommendationAccountsIterable listOrganizationRecommendationAccountsPaginator(ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client .listOrganizationRecommendationAccountsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)operation.- Parameters:
listOrganizationRecommendationAccountsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationAccountsPaginator
default ListOrganizationRecommendationAccountsIterable listOrganizationRecommendationAccountsPaginator(Consumer<ListOrganizationRecommendationAccountsRequest.Builder> listOrganizationRecommendationAccountsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client .listOrganizationRecommendationAccountsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationResources
default ListOrganizationRecommendationResourcesResponse listOrganizationRecommendationResources(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationResourcesRequest-- Returns:
- Result of the ListOrganizationRecommendationResources operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationResources
default ListOrganizationRecommendationResourcesResponse listOrganizationRecommendationResources(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the ListOrganizationRecommendationResources operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationResourcesPaginator
default ListOrganizationRecommendationResourcesIterable listOrganizationRecommendationResourcesPaginator(ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client .listOrganizationRecommendationResourcesPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)operation.- Parameters:
listOrganizationRecommendationResourcesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationResourcesPaginator
default ListOrganizationRecommendationResourcesIterable listOrganizationRecommendationResourcesPaginator(Consumer<ListOrganizationRecommendationResourcesRequest.Builder> listOrganizationRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client .listOrganizationRecommendationResourcesPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendations
default ListOrganizationRecommendationsResponse listOrganizationRecommendations(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations.
- Parameters:
listOrganizationRecommendationsRequest-- Returns:
- Result of the ListOrganizationRecommendations operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendations
default ListOrganizationRecommendationsResponse listOrganizationRecommendations(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the ListOrganizationRecommendations operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationsPaginator
default ListOrganizationRecommendationsIterable listOrganizationRecommendationsPaginator(ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client .listOrganizationRecommendationsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)operation.- Parameters:
listOrganizationRecommendationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationRecommendationsPaginator
default ListOrganizationRecommendationsIterable listOrganizationRecommendationsPaginator(Consumer<ListOrganizationRecommendationsRequest.Builder> listOrganizationRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client .listOrganizationRecommendationsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationResources
default ListRecommendationResourcesResponse listRecommendationResources(ListRecommendationResourcesRequest listRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
List Resources of a Recommendation
- Parameters:
listRecommendationResourcesRequest-- Returns:
- Result of the ListRecommendationResources operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationResources
default ListRecommendationResourcesResponse listRecommendationResources(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the ListRecommendationResources operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationResourcesPaginator
default ListRecommendationResourcesIterable listRecommendationResourcesPaginator(ListRecommendationResourcesRequest listRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client .listRecommendationResourcesPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)operation.- Parameters:
listRecommendationResourcesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationResourcesPaginator
default ListRecommendationResourcesIterable listRecommendationResourcesPaginator(Consumer<ListRecommendationResourcesRequest.Builder> listRecommendationResourcesRequest) throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client .listRecommendationResourcesPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendations
default ListRecommendationsResponse listRecommendations(ListRecommendationsRequest listRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
List a filterable set of Recommendations
- Parameters:
listRecommendationsRequest-- Returns:
- Result of the ListRecommendations operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendations
default ListRecommendationsResponse listRecommendations(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the ListRecommendations operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationsPaginator
default ListRecommendationsIterable listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client .listRecommendationsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)operation.- Parameters:
listRecommendationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationsPaginator
default ListRecommendationsIterable listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
This is a variant of
listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client .listRecommendationsPaginator(request); for (software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateOrganizationRecommendationLifecycle
default UpdateOrganizationRecommendationLifecycleResponse updateOrganizationRecommendationLifecycle(UpdateOrganizationRecommendationLifecycleRequest updateOrganizationRecommendationLifecycleRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations.
- Parameters:
updateOrganizationRecommendationLifecycleRequest-- Returns:
- Result of the UpdateOrganizationRecommendationLifecycle operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessConflictException- Exception that the request was denied due to conflictions in stateInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateOrganizationRecommendationLifecycle
default UpdateOrganizationRecommendationLifecycleResponse updateOrganizationRecommendationLifecycle(Consumer<UpdateOrganizationRecommendationLifecycleRequest.Builder> updateOrganizationRecommendationLifecycleRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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.Builderavoiding the need to create one manually viaUpdateOrganizationRecommendationLifecycleRequest.builder()- Parameters:
updateOrganizationRecommendationLifecycleRequest- AConsumerthat will call methods onUpdateOrganizationRecommendationLifecycleRequest.Builderto create a request.- Returns:
- Result of the UpdateOrganizationRecommendationLifecycle operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessConflictException- Exception that the request was denied due to conflictions in stateInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateRecommendationLifecycle
default UpdateRecommendationLifecycleResponse updateRecommendationLifecycle(UpdateRecommendationLifecycleRequest updateRecommendationLifecycleRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
- Parameters:
updateRecommendationLifecycleRequest-- Returns:
- Result of the UpdateRecommendationLifecycle operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessConflictException- Exception that the request was denied due to conflictions in stateInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
updateRecommendationLifecycle
default UpdateRecommendationLifecycleResponse updateRecommendationLifecycle(Consumer<UpdateRecommendationLifecycleRequest.Builder> updateRecommendationLifecycleRequest) throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException
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:
- Result of the UpdateRecommendationLifecycle operation returned by the service.
- Throws:
AccessDeniedException- Exception that access has been denied due to insufficient accessConflictException- Exception that the request was denied due to conflictions in stateInternalServerException- Exception to notify that an unexpected internal error occurred during processing of the requestValidationException- Exception that the request failed to satisfy service constraintsResourceNotFoundException- Exception that the requested resource has not been foundThrottlingException- Exception to notify that requests are being throttledSdkException- 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.AwsServiceException- See Also:
- AWS API Documentation
-
create
static TrustedAdvisorClient create()
Create aTrustedAdvisorClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static TrustedAdvisorClientBuilder builder()
Create a builder that can be used to configure and create aTrustedAdvisorClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default TrustedAdvisorServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-