software.amazon.awssdk.services.trustedadvisor.TrustedAdvisorClient Maven / Gradle / Ivy
Show all versions of trustedadvisor Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.trustedadvisor;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.trustedadvisor.model.AccessDeniedException;
import software.amazon.awssdk.services.trustedadvisor.model.BatchUpdateRecommendationResourceExclusionRequest;
import software.amazon.awssdk.services.trustedadvisor.model.BatchUpdateRecommendationResourceExclusionResponse;
import software.amazon.awssdk.services.trustedadvisor.model.ConflictException;
import software.amazon.awssdk.services.trustedadvisor.model.GetOrganizationRecommendationRequest;
import software.amazon.awssdk.services.trustedadvisor.model.GetOrganizationRecommendationResponse;
import software.amazon.awssdk.services.trustedadvisor.model.GetRecommendationRequest;
import software.amazon.awssdk.services.trustedadvisor.model.GetRecommendationResponse;
import software.amazon.awssdk.services.trustedadvisor.model.InternalServerException;
import software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest;
import software.amazon.awssdk.services.trustedadvisor.model.ListChecksResponse;
import software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest;
import software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsResponse;
import software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest;
import software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesResponse;
import software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest;
import software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsResponse;
import software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest;
import software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesResponse;
import software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest;
import software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsResponse;
import software.amazon.awssdk.services.trustedadvisor.model.ResourceNotFoundException;
import software.amazon.awssdk.services.trustedadvisor.model.ThrottlingException;
import software.amazon.awssdk.services.trustedadvisor.model.TrustedAdvisorException;
import software.amazon.awssdk.services.trustedadvisor.model.UpdateOrganizationRecommendationLifecycleRequest;
import software.amazon.awssdk.services.trustedadvisor.model.UpdateOrganizationRecommendationLifecycleResponse;
import software.amazon.awssdk.services.trustedadvisor.model.UpdateRecommendationLifecycleRequest;
import software.amazon.awssdk.services.trustedadvisor.model.UpdateRecommendationLifecycleResponse;
import software.amazon.awssdk.services.trustedadvisor.model.ValidationException;
import software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable;
import software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable;
import software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable;
import software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable;
import software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable;
import software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable;
/**
* Service client for accessing TrustedAdvisor Public API. This can be created using the static {@link #builder()}
* method.
*
*
* TrustedAdvisor Public API
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface TrustedAdvisorClient extends AwsClient {
String SERVICE_NAME = "trustedadvisor";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "trustedadvisor";
/**
*
* Update one or more exclusion status for a list of recommendation resources
*
*
* @param batchUpdateRecommendationResourceExclusionRequest
* @return Result of the BatchUpdateRecommendationResourceExclusion operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws ConflictException
* Exception that the request was denied due to conflictions in state
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.BatchUpdateRecommendationResourceExclusion
* @see AWS API Documentation
*/
default BatchUpdateRecommendationResourceExclusionResponse batchUpdateRecommendationResourceExclusion(
BatchUpdateRecommendationResourceExclusionRequest batchUpdateRecommendationResourceExclusionRequest)
throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ThrottlingException,
AwsServiceException, SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* Update one or more exclusion status for a list of recommendation resources
*
*
*
* This is a convenience which creates an instance of the
* {@link BatchUpdateRecommendationResourceExclusionRequest.Builder} avoiding the need to create one manually via
* {@link BatchUpdateRecommendationResourceExclusionRequest#builder()}
*
*
* @param batchUpdateRecommendationResourceExclusionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.BatchUpdateRecommendationResourceExclusionRequest.Builder}
* to create a request.
* @return Result of the BatchUpdateRecommendationResourceExclusion operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws ConflictException
* Exception that the request was denied due to conflictions in state
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.BatchUpdateRecommendationResourceExclusion
* @see AWS API Documentation
*/
default BatchUpdateRecommendationResourceExclusionResponse batchUpdateRecommendationResourceExclusion(
Consumer batchUpdateRecommendationResourceExclusionRequest)
throws AccessDeniedException, ConflictException, InternalServerException, ValidationException, ThrottlingException,
AwsServiceException, SdkClientException, TrustedAdvisorException {
return batchUpdateRecommendationResourceExclusion(BatchUpdateRecommendationResourceExclusionRequest.builder()
.applyMutation(batchUpdateRecommendationResourceExclusionRequest).build());
}
/**
*
* Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized
* recommendations.
*
*
* @param getOrganizationRecommendationRequest
* @return Result of the GetOrganizationRecommendation operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.GetOrganizationRecommendation
* @see AWS API Documentation
*/
default GetOrganizationRecommendationResponse getOrganizationRecommendation(
GetOrganizationRecommendationRequest getOrganizationRecommendationRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException,
SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link GetOrganizationRecommendationRequest.Builder}
* avoiding the need to create one manually via {@link GetOrganizationRecommendationRequest#builder()}
*
*
* @param getOrganizationRecommendationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.GetOrganizationRecommendationRequest.Builder}
* to create a request.
* @return Result of the GetOrganizationRecommendation operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.GetOrganizationRecommendation
* @see AWS API Documentation
*/
default GetOrganizationRecommendationResponse getOrganizationRecommendation(
Consumer getOrganizationRecommendationRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return getOrganizationRecommendation(GetOrganizationRecommendationRequest.builder()
.applyMutation(getOrganizationRecommendationRequest).build());
}
/**
*
* Get a specific Recommendation
*
*
* @param getRecommendationRequest
* @return Result of the GetRecommendation operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.GetRecommendation
* @see AWS API Documentation
*/
default GetRecommendationResponse getRecommendation(GetRecommendationRequest getRecommendationRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* Get a specific Recommendation
*
*
*
* This is a convenience which creates an instance of the {@link GetRecommendationRequest.Builder} avoiding the need
* to create one manually via {@link GetRecommendationRequest#builder()}
*
*
* @param getRecommendationRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.GetRecommendationRequest.Builder} to create a
* request.
* @return Result of the GetRecommendation operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.GetRecommendation
* @see AWS API Documentation
*/
default GetRecommendationResponse getRecommendation(Consumer getRecommendationRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return getRecommendation(GetRecommendationRequest.builder().applyMutation(getRecommendationRequest).build());
}
/**
*
* List a filterable set of Checks
*
*
* @param listChecksRequest
* @return Result of the ListChecks operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListChecks
* @see AWS API
* Documentation
*/
default ListChecksResponse listChecks(ListChecksRequest listChecksRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException,
TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* List a filterable set of Checks
*
*
*
* This is a convenience which creates an instance of the {@link ListChecksRequest.Builder} avoiding the need to
* create one manually via {@link ListChecksRequest#builder()}
*
*
* @param listChecksRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest.Builder} to create a
* request.
* @return Result of the ListChecks operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListChecks
* @see AWS API
* Documentation
*/
default ListChecksResponse listChecks(Consumer listChecksRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException,
TrustedAdvisorException {
return listChecks(ListChecksRequest.builder().applyMutation(listChecksRequest).build());
}
/**
*
* This is a variant of {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)} operation.
*
*
* @param listChecksRequest
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListChecks
* @see AWS API
* Documentation
*/
default ListChecksIterable listChecksPaginator(ListChecksRequest listChecksRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException,
TrustedAdvisorException {
return new ListChecksIterable(this, listChecksRequest);
}
/**
*
* This is a variant of {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListChecksIterable responses = client.listChecksPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listChecks(software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListChecksRequest.Builder} avoiding the need to
* create one manually via {@link ListChecksRequest#builder()}
*
*
* @param listChecksRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListChecksRequest.Builder} to create a
* request.
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListChecks
* @see AWS API
* Documentation
*/
default ListChecksIterable listChecksPaginator(Consumer listChecksRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException,
SdkClientException, TrustedAdvisorException {
return listChecksPaginator(ListChecksRequest.builder().applyMutation(listChecksRequest).build());
}
/**
*
* Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports
* prioritized recommendations.
*
*
* @param listOrganizationRecommendationAccountsRequest
* @return Result of the ListOrganizationRecommendationAccounts operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendationAccounts
* @see AWS API Documentation
*/
default ListOrganizationRecommendationAccountsResponse listOrganizationRecommendationAccounts(
ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* 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
* {@link ListOrganizationRecommendationAccountsRequest.Builder} avoiding the need to create one manually via
* {@link ListOrganizationRecommendationAccountsRequest#builder()}
*
*
* @param listOrganizationRecommendationAccountsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest.Builder}
* to create a request.
* @return Result of the ListOrganizationRecommendationAccounts operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendationAccounts
* @see AWS API Documentation
*/
default ListOrganizationRecommendationAccountsResponse listOrganizationRecommendationAccounts(
Consumer listOrganizationRecommendationAccountsRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return listOrganizationRecommendationAccounts(ListOrganizationRecommendationAccountsRequest.builder()
.applyMutation(listOrganizationRecommendationAccountsRequest).build());
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)}
* operation.
*
*
* @param listOrganizationRecommendationAccountsRequest
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendationAccounts
* @see AWS API Documentation
*/
default ListOrganizationRecommendationAccountsIterable listOrganizationRecommendationAccountsPaginator(
ListOrganizationRecommendationAccountsRequest listOrganizationRecommendationAccountsRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return new ListOrganizationRecommendationAccountsIterable(this, listOrganizationRecommendationAccountsRequest);
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationAccountsIterable responses = client.listOrganizationRecommendationAccountsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listOrganizationRecommendationAccounts(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the
* {@link ListOrganizationRecommendationAccountsRequest.Builder} avoiding the need to create one manually via
* {@link ListOrganizationRecommendationAccountsRequest#builder()}
*
*
* @param listOrganizationRecommendationAccountsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationAccountsRequest.Builder}
* to create a request.
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendationAccounts
* @see AWS API Documentation
*/
default ListOrganizationRecommendationAccountsIterable listOrganizationRecommendationAccountsPaginator(
Consumer listOrganizationRecommendationAccountsRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return listOrganizationRecommendationAccountsPaginator(ListOrganizationRecommendationAccountsRequest.builder()
.applyMutation(listOrganizationRecommendationAccountsRequest).build());
}
/**
*
* List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
*
*
* @param listOrganizationRecommendationResourcesRequest
* @return Result of the ListOrganizationRecommendationResources operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendationResources
* @see AWS API Documentation
*/
default ListOrganizationRecommendationResourcesResponse listOrganizationRecommendationResources(
ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* List Resources of a Recommendation within an Organization. This API only supports prioritized recommendations.
*
*
*
* This is a convenience which creates an instance of the
* {@link ListOrganizationRecommendationResourcesRequest.Builder} avoiding the need to create one manually via
* {@link ListOrganizationRecommendationResourcesRequest#builder()}
*
*
* @param listOrganizationRecommendationResourcesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest.Builder}
* to create a request.
* @return Result of the ListOrganizationRecommendationResources operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendationResources
* @see AWS API Documentation
*/
default ListOrganizationRecommendationResourcesResponse listOrganizationRecommendationResources(
Consumer listOrganizationRecommendationResourcesRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return listOrganizationRecommendationResources(ListOrganizationRecommendationResourcesRequest.builder()
.applyMutation(listOrganizationRecommendationResourcesRequest).build());
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)}
* operation.
*
*
* @param listOrganizationRecommendationResourcesRequest
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendationResources
* @see AWS API Documentation
*/
default ListOrganizationRecommendationResourcesIterable listOrganizationRecommendationResourcesPaginator(
ListOrganizationRecommendationResourcesRequest listOrganizationRecommendationResourcesRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return new ListOrganizationRecommendationResourcesIterable(this, listOrganizationRecommendationResourcesRequest);
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationResourcesIterable responses = client.listOrganizationRecommendationResourcesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listOrganizationRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the
* {@link ListOrganizationRecommendationResourcesRequest.Builder} avoiding the need to create one manually via
* {@link ListOrganizationRecommendationResourcesRequest#builder()}
*
*
* @param listOrganizationRecommendationResourcesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationResourcesRequest.Builder}
* to create a request.
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendationResources
* @see AWS API Documentation
*/
default ListOrganizationRecommendationResourcesIterable listOrganizationRecommendationResourcesPaginator(
Consumer listOrganizationRecommendationResourcesRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return listOrganizationRecommendationResourcesPaginator(ListOrganizationRecommendationResourcesRequest.builder()
.applyMutation(listOrganizationRecommendationResourcesRequest).build());
}
/**
*
* List a filterable set of Recommendations within an Organization. This API only supports prioritized
* recommendations.
*
*
* @param listOrganizationRecommendationsRequest
* @return Result of the ListOrganizationRecommendations operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendations
* @see AWS API Documentation
*/
default ListOrganizationRecommendationsResponse listOrganizationRecommendations(
ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException,
TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* 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 {@link ListOrganizationRecommendationsRequest.Builder}
* avoiding the need to create one manually via {@link ListOrganizationRecommendationsRequest#builder()}
*
*
* @param listOrganizationRecommendationsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest.Builder}
* to create a request.
* @return Result of the ListOrganizationRecommendations operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendations
* @see AWS API Documentation
*/
default ListOrganizationRecommendationsResponse listOrganizationRecommendations(
Consumer listOrganizationRecommendationsRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException,
SdkClientException, TrustedAdvisorException {
return listOrganizationRecommendations(ListOrganizationRecommendationsRequest.builder()
.applyMutation(listOrganizationRecommendationsRequest).build());
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)}
* operation.
*
*
* @param listOrganizationRecommendationsRequest
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendations
* @see AWS API Documentation
*/
default ListOrganizationRecommendationsIterable listOrganizationRecommendationsPaginator(
ListOrganizationRecommendationsRequest listOrganizationRecommendationsRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException,
TrustedAdvisorException {
return new ListOrganizationRecommendationsIterable(this, listOrganizationRecommendationsRequest);
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListOrganizationRecommendationsIterable responses = client.listOrganizationRecommendationsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listOrganizationRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListOrganizationRecommendationsRequest.Builder}
* avoiding the need to create one manually via {@link ListOrganizationRecommendationsRequest#builder()}
*
*
* @param listOrganizationRecommendationsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListOrganizationRecommendationsRequest.Builder}
* to create a request.
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListOrganizationRecommendations
* @see AWS API Documentation
*/
default ListOrganizationRecommendationsIterable listOrganizationRecommendationsPaginator(
Consumer listOrganizationRecommendationsRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException,
SdkClientException, TrustedAdvisorException {
return listOrganizationRecommendationsPaginator(ListOrganizationRecommendationsRequest.builder()
.applyMutation(listOrganizationRecommendationsRequest).build());
}
/**
*
* List Resources of a Recommendation
*
*
* @param listRecommendationResourcesRequest
* @return Result of the ListRecommendationResources operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListRecommendationResources
* @see AWS API Documentation
*/
default ListRecommendationResourcesResponse listRecommendationResources(
ListRecommendationResourcesRequest listRecommendationResourcesRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException,
SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* List Resources of a Recommendation
*
*
*
* This is a convenience which creates an instance of the {@link ListRecommendationResourcesRequest.Builder}
* avoiding the need to create one manually via {@link ListRecommendationResourcesRequest#builder()}
*
*
* @param listRecommendationResourcesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest.Builder} to
* create a request.
* @return Result of the ListRecommendationResources operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListRecommendationResources
* @see AWS API Documentation
*/
default ListRecommendationResourcesResponse listRecommendationResources(
Consumer listRecommendationResourcesRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return listRecommendationResources(ListRecommendationResourcesRequest.builder()
.applyMutation(listRecommendationResourcesRequest).build());
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)}
* operation.
*
*
* @param listRecommendationResourcesRequest
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListRecommendationResources
* @see AWS API Documentation
*/
default ListRecommendationResourcesIterable listRecommendationResourcesPaginator(
ListRecommendationResourcesRequest listRecommendationResourcesRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException, AwsServiceException,
SdkClientException, TrustedAdvisorException {
return new ListRecommendationResourcesIterable(this, listRecommendationResourcesRequest);
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationResourcesIterable responses = client.listRecommendationResourcesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listRecommendationResources(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListRecommendationResourcesRequest.Builder}
* avoiding the need to create one manually via {@link ListRecommendationResourcesRequest#builder()}
*
*
* @param listRecommendationResourcesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationResourcesRequest.Builder} to
* create a request.
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListRecommendationResources
* @see AWS API Documentation
*/
default ListRecommendationResourcesIterable listRecommendationResourcesPaginator(
Consumer listRecommendationResourcesRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return listRecommendationResourcesPaginator(ListRecommendationResourcesRequest.builder()
.applyMutation(listRecommendationResourcesRequest).build());
}
/**
*
* List a filterable set of Recommendations
*
*
* @param listRecommendationsRequest
* @return Result of the ListRecommendations operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListRecommendations
* @see AWS API Documentation
*/
default ListRecommendationsResponse listRecommendations(ListRecommendationsRequest listRecommendationsRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException,
SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* List a filterable set of Recommendations
*
*
*
* This is a convenience which creates an instance of the {@link ListRecommendationsRequest.Builder} avoiding the
* need to create one manually via {@link ListRecommendationsRequest#builder()}
*
*
* @param listRecommendationsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest.Builder} to create
* a request.
* @return Result of the ListRecommendations operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListRecommendations
* @see AWS API Documentation
*/
default ListRecommendationsResponse listRecommendations(
Consumer listRecommendationsRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException,
TrustedAdvisorException {
return listRecommendations(ListRecommendationsRequest.builder().applyMutation(listRecommendationsRequest).build());
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)}
* operation.
*
*
* @param listRecommendationsRequest
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListRecommendations
* @see AWS API Documentation
*/
default ListRecommendationsIterable listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest)
throws AccessDeniedException, InternalServerException, ValidationException, ThrottlingException, AwsServiceException,
SdkClientException, TrustedAdvisorException {
return new ListRecommendationsIterable(this, listRecommendationsRequest);
}
/**
*
* This is a variant of
* {@link #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
*
*
* {@code
* software.amazon.awssdk.services.trustedadvisor.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @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 directly
*
*
* {@code
* software.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
* {@link #listRecommendations(software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListRecommendationsRequest.Builder} avoiding the
* need to create one manually via {@link ListRecommendationsRequest#builder()}
*
*
* @param listRecommendationsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.ListRecommendationsRequest.Builder} to create
* a request.
* @return 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 access
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.ListRecommendations
* @see AWS API Documentation
*/
default ListRecommendationsIterable listRecommendationsPaginator(
Consumer listRecommendationsRequest) throws AccessDeniedException,
InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException,
TrustedAdvisorException {
return listRecommendationsPaginator(ListRecommendationsRequest.builder().applyMutation(listRecommendationsRequest)
.build());
}
/**
*
* Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized
* recommendations.
*
*
* @param updateOrganizationRecommendationLifecycleRequest
* @return Result of the UpdateOrganizationRecommendationLifecycle operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws ConflictException
* Exception that the request was denied due to conflictions in state
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.UpdateOrganizationRecommendationLifecycle
* @see AWS API Documentation
*/
default UpdateOrganizationRecommendationLifecycleResponse updateOrganizationRecommendationLifecycle(
UpdateOrganizationRecommendationLifecycleRequest updateOrganizationRecommendationLifecycleRequest)
throws AccessDeniedException, ConflictException, InternalServerException, ValidationException,
ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* 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
* {@link UpdateOrganizationRecommendationLifecycleRequest.Builder} avoiding the need to create one manually via
* {@link UpdateOrganizationRecommendationLifecycleRequest#builder()}
*
*
* @param updateOrganizationRecommendationLifecycleRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.UpdateOrganizationRecommendationLifecycleRequest.Builder}
* to create a request.
* @return Result of the UpdateOrganizationRecommendationLifecycle operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws ConflictException
* Exception that the request was denied due to conflictions in state
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.UpdateOrganizationRecommendationLifecycle
* @see AWS API Documentation
*/
default UpdateOrganizationRecommendationLifecycleResponse updateOrganizationRecommendationLifecycle(
Consumer updateOrganizationRecommendationLifecycleRequest)
throws AccessDeniedException, ConflictException, InternalServerException, ValidationException,
ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return updateOrganizationRecommendationLifecycle(UpdateOrganizationRecommendationLifecycleRequest.builder()
.applyMutation(updateOrganizationRecommendationLifecycleRequest).build());
}
/**
*
* Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
*
*
* @param updateRecommendationLifecycleRequest
* @return Result of the UpdateRecommendationLifecycle operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws ConflictException
* Exception that the request was denied due to conflictions in state
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.UpdateRecommendationLifecycle
* @see AWS API Documentation
*/
default UpdateRecommendationLifecycleResponse updateRecommendationLifecycle(
UpdateRecommendationLifecycleRequest updateRecommendationLifecycleRequest) throws AccessDeniedException,
ConflictException, InternalServerException, ValidationException, ResourceNotFoundException, ThrottlingException,
AwsServiceException, SdkClientException, TrustedAdvisorException {
throw new UnsupportedOperationException();
}
/**
*
* Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateRecommendationLifecycleRequest.Builder}
* avoiding the need to create one manually via {@link UpdateRecommendationLifecycleRequest#builder()}
*
*
* @param updateRecommendationLifecycleRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.trustedadvisor.model.UpdateRecommendationLifecycleRequest.Builder}
* to create a request.
* @return Result of the UpdateRecommendationLifecycle operation returned by the service.
* @throws AccessDeniedException
* Exception that access has been denied due to insufficient access
* @throws ConflictException
* Exception that the request was denied due to conflictions in state
* @throws InternalServerException
* Exception to notify that an unexpected internal error occurred during processing of the request
* @throws ValidationException
* Exception that the request failed to satisfy service constraints
* @throws ResourceNotFoundException
* Exception that the requested resource has not been found
* @throws ThrottlingException
* Exception to notify that requests are being throttled
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws TrustedAdvisorException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample TrustedAdvisorClient.UpdateRecommendationLifecycle
* @see AWS API Documentation
*/
default UpdateRecommendationLifecycleResponse updateRecommendationLifecycle(
Consumer updateRecommendationLifecycleRequest)
throws AccessDeniedException, ConflictException, InternalServerException, ValidationException,
ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TrustedAdvisorException {
return updateRecommendationLifecycle(UpdateRecommendationLifecycleRequest.builder()
.applyMutation(updateRecommendationLifecycleRequest).build());
}
/**
* Create a {@link TrustedAdvisorClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static TrustedAdvisorClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link TrustedAdvisorClient}.
*/
static TrustedAdvisorClientBuilder builder() {
return new DefaultTrustedAdvisorClientBuilder();
}
static ServiceMetadata serviceMetadata() {
return ServiceMetadata.of(SERVICE_METADATA_ID);
}
@Override
default TrustedAdvisorServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
}