
software.amazon.awssdk.services.launchwizard.LaunchWizardClient Maven / Gradle / Ivy
/*
* 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.launchwizard;
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.launchwizard.model.CreateDeploymentRequest;
import software.amazon.awssdk.services.launchwizard.model.CreateDeploymentResponse;
import software.amazon.awssdk.services.launchwizard.model.DeleteDeploymentRequest;
import software.amazon.awssdk.services.launchwizard.model.DeleteDeploymentResponse;
import software.amazon.awssdk.services.launchwizard.model.GetDeploymentRequest;
import software.amazon.awssdk.services.launchwizard.model.GetDeploymentResponse;
import software.amazon.awssdk.services.launchwizard.model.GetWorkloadDeploymentPatternRequest;
import software.amazon.awssdk.services.launchwizard.model.GetWorkloadDeploymentPatternResponse;
import software.amazon.awssdk.services.launchwizard.model.GetWorkloadRequest;
import software.amazon.awssdk.services.launchwizard.model.GetWorkloadResponse;
import software.amazon.awssdk.services.launchwizard.model.InternalServerException;
import software.amazon.awssdk.services.launchwizard.model.LaunchWizardException;
import software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest;
import software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse;
import software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest;
import software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse;
import software.amazon.awssdk.services.launchwizard.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.launchwizard.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest;
import software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse;
import software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest;
import software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse;
import software.amazon.awssdk.services.launchwizard.model.ResourceLimitException;
import software.amazon.awssdk.services.launchwizard.model.ResourceNotFoundException;
import software.amazon.awssdk.services.launchwizard.model.TagResourceRequest;
import software.amazon.awssdk.services.launchwizard.model.TagResourceResponse;
import software.amazon.awssdk.services.launchwizard.model.UntagResourceRequest;
import software.amazon.awssdk.services.launchwizard.model.UntagResourceResponse;
import software.amazon.awssdk.services.launchwizard.model.ValidationException;
import software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsIterable;
import software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsIterable;
import software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable;
import software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsIterable;
/**
* Service client for accessing AWS Launch Wizard. This can be created using the static {@link #builder()} method.
*
*
* Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for third party
* applications, such as Microsoft SQL Server Always On and HANA based SAP systems, without the need to manually
* identify and provision individual Amazon Web Services resources.
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface LaunchWizardClient extends AwsClient {
String SERVICE_NAME = "launchwizard";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "launchwizard";
/**
*
* Creates a deployment for the given workload. Deployments created by this operation are not available in the
* Launch Wizard console to use the Clone deployment
action on.
*
*
* @param createDeploymentRequest
* @return Result of the CreateDeployment operation returned by the service.
* @throws ResourceLimitException
* You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in
* progress.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.CreateDeployment
* @see AWS API Documentation
*/
default CreateDeploymentResponse createDeployment(CreateDeploymentRequest createDeploymentRequest)
throws ResourceLimitException, InternalServerException, ValidationException, ResourceNotFoundException,
AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Creates a deployment for the given workload. Deployments created by this operation are not available in the
* Launch Wizard console to use the Clone deployment
action on.
*
*
*
* This is a convenience which creates an instance of the {@link CreateDeploymentRequest.Builder} avoiding the need
* to create one manually via {@link CreateDeploymentRequest#builder()}
*
*
* @param createDeploymentRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.CreateDeploymentRequest.Builder} to create a
* request.
* @return Result of the CreateDeployment operation returned by the service.
* @throws ResourceLimitException
* You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in
* progress.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.CreateDeployment
* @see AWS API Documentation
*/
default CreateDeploymentResponse createDeployment(Consumer createDeploymentRequest)
throws ResourceLimitException, InternalServerException, ValidationException, ResourceNotFoundException,
AwsServiceException, SdkClientException, LaunchWizardException {
return createDeployment(CreateDeploymentRequest.builder().applyMutation(createDeploymentRequest).build());
}
/**
*
* Deletes a deployment.
*
*
* @param deleteDeploymentRequest
* @return Result of the DeleteDeployment operation returned by the service.
* @throws ResourceLimitException
* You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in
* progress.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.DeleteDeployment
* @see AWS API Documentation
*/
default DeleteDeploymentResponse deleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest)
throws ResourceLimitException, InternalServerException, ValidationException, ResourceNotFoundException,
AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a deployment.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteDeploymentRequest.Builder} avoiding the need
* to create one manually via {@link DeleteDeploymentRequest#builder()}
*
*
* @param deleteDeploymentRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.DeleteDeploymentRequest.Builder} to create a
* request.
* @return Result of the DeleteDeployment operation returned by the service.
* @throws ResourceLimitException
* You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in
* progress.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.DeleteDeployment
* @see AWS API Documentation
*/
default DeleteDeploymentResponse deleteDeployment(Consumer deleteDeploymentRequest)
throws ResourceLimitException, InternalServerException, ValidationException, ResourceNotFoundException,
AwsServiceException, SdkClientException, LaunchWizardException {
return deleteDeployment(DeleteDeploymentRequest.builder().applyMutation(deleteDeploymentRequest).build());
}
/**
*
* Returns information about the deployment.
*
*
* @param getDeploymentRequest
* @return Result of the GetDeployment operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.GetDeployment
* @see AWS
* API Documentation
*/
default GetDeploymentResponse getDeployment(GetDeploymentRequest getDeploymentRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Returns information about the deployment.
*
*
*
* This is a convenience which creates an instance of the {@link GetDeploymentRequest.Builder} avoiding the need to
* create one manually via {@link GetDeploymentRequest#builder()}
*
*
* @param getDeploymentRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.GetDeploymentRequest.Builder} to create a
* request.
* @return Result of the GetDeployment operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.GetDeployment
* @see AWS
* API Documentation
*/
default GetDeploymentResponse getDeployment(Consumer getDeploymentRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
return getDeployment(GetDeploymentRequest.builder().applyMutation(getDeploymentRequest).build());
}
/**
*
* Returns information about a workload.
*
*
* @param getWorkloadRequest
* @return Result of the GetWorkload operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.GetWorkload
* @see AWS API
* Documentation
*/
default GetWorkloadResponse getWorkload(GetWorkloadRequest getWorkloadRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Returns information about a workload.
*
*
*
* This is a convenience which creates an instance of the {@link GetWorkloadRequest.Builder} avoiding the need to
* create one manually via {@link GetWorkloadRequest#builder()}
*
*
* @param getWorkloadRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.GetWorkloadRequest.Builder} to create a request.
* @return Result of the GetWorkload operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.GetWorkload
* @see AWS API
* Documentation
*/
default GetWorkloadResponse getWorkload(Consumer getWorkloadRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
return getWorkload(GetWorkloadRequest.builder().applyMutation(getWorkloadRequest).build());
}
/**
*
* Returns details for a given workload and deployment pattern, including the available specifications. You can use
* the ListWorkloads
* operation to discover the available workload names and the ListWorkloadDeploymentPatterns operation to discover the available deployment pattern names of a given
* workload.
*
*
* @param getWorkloadDeploymentPatternRequest
* @return Result of the GetWorkloadDeploymentPattern operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.GetWorkloadDeploymentPattern
* @see AWS API Documentation
*/
default GetWorkloadDeploymentPatternResponse getWorkloadDeploymentPattern(
GetWorkloadDeploymentPatternRequest getWorkloadDeploymentPatternRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Returns details for a given workload and deployment pattern, including the available specifications. You can use
* the ListWorkloads
* operation to discover the available workload names and the ListWorkloadDeploymentPatterns operation to discover the available deployment pattern names of a given
* workload.
*
*
*
* This is a convenience which creates an instance of the {@link GetWorkloadDeploymentPatternRequest.Builder}
* avoiding the need to create one manually via {@link GetWorkloadDeploymentPatternRequest#builder()}
*
*
* @param getWorkloadDeploymentPatternRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.GetWorkloadDeploymentPatternRequest.Builder} to
* create a request.
* @return Result of the GetWorkloadDeploymentPattern operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.GetWorkloadDeploymentPattern
* @see AWS API Documentation
*/
default GetWorkloadDeploymentPatternResponse getWorkloadDeploymentPattern(
Consumer getWorkloadDeploymentPatternRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
return getWorkloadDeploymentPattern(GetWorkloadDeploymentPatternRequest.builder()
.applyMutation(getWorkloadDeploymentPatternRequest).build());
}
/**
*
* Lists the events of a deployment.
*
*
* @param listDeploymentEventsRequest
* @return Result of the ListDeploymentEvents operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListDeploymentEvents
* @see AWS API Documentation
*/
default ListDeploymentEventsResponse listDeploymentEvents(ListDeploymentEventsRequest listDeploymentEventsRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the events of a deployment.
*
*
*
* This is a convenience which creates an instance of the {@link ListDeploymentEventsRequest.Builder} avoiding the
* need to create one manually via {@link ListDeploymentEventsRequest#builder()}
*
*
* @param listDeploymentEventsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest.Builder} to create a
* request.
* @return Result of the ListDeploymentEvents operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListDeploymentEvents
* @see AWS API Documentation
*/
default ListDeploymentEventsResponse listDeploymentEvents(
Consumer listDeploymentEventsRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
return listDeploymentEvents(ListDeploymentEventsRequest.builder().applyMutation(listDeploymentEventsRequest).build());
}
/**
*
* This is a variant of
* {@link #listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)}
* 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.launchwizard.paginators.ListDeploymentEventsIterable responses = client.listDeploymentEventsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsIterable responses = client
* .listDeploymentEventsPaginator(request);
* for (software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsIterable responses = client.listDeploymentEventsPaginator(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 #listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)}
* operation.
*
*
* @param listDeploymentEventsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListDeploymentEvents
* @see AWS API Documentation
*/
default ListDeploymentEventsIterable listDeploymentEventsPaginator(ListDeploymentEventsRequest listDeploymentEventsRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
return new ListDeploymentEventsIterable(this, listDeploymentEventsRequest);
}
/**
*
* This is a variant of
* {@link #listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)}
* 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.launchwizard.paginators.ListDeploymentEventsIterable responses = client.listDeploymentEventsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsIterable responses = client
* .listDeploymentEventsPaginator(request);
* for (software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsIterable responses = client.listDeploymentEventsPaginator(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 #listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListDeploymentEventsRequest.Builder} avoiding the
* need to create one manually via {@link ListDeploymentEventsRequest#builder()}
*
*
* @param listDeploymentEventsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListDeploymentEvents
* @see AWS API Documentation
*/
default ListDeploymentEventsIterable listDeploymentEventsPaginator(
Consumer listDeploymentEventsRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
return listDeploymentEventsPaginator(ListDeploymentEventsRequest.builder().applyMutation(listDeploymentEventsRequest)
.build());
}
/**
*
* Lists the deployments that have been created.
*
*
* @param listDeploymentsRequest
* @return Result of the ListDeployments operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListDeployments
* @see AWS
* API Documentation
*/
default ListDeploymentsResponse listDeployments(ListDeploymentsRequest listDeploymentsRequest)
throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the deployments that have been created.
*
*
*
* This is a convenience which creates an instance of the {@link ListDeploymentsRequest.Builder} avoiding the need
* to create one manually via {@link ListDeploymentsRequest#builder()}
*
*
* @param listDeploymentsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest.Builder} to create a
* request.
* @return Result of the ListDeployments operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListDeployments
* @see AWS
* API Documentation
*/
default ListDeploymentsResponse listDeployments(Consumer listDeploymentsRequest)
throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException {
return listDeployments(ListDeploymentsRequest.builder().applyMutation(listDeploymentsRequest).build());
}
/**
*
* This is a variant of
* {@link #listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)} 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.launchwizard.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsIterable responses = client
* .listDeploymentsPaginator(request);
* for (software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(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 #listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)}
* operation.
*
*
* @param listDeploymentsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListDeployments
* @see AWS
* API Documentation
*/
default ListDeploymentsIterable listDeploymentsPaginator(ListDeploymentsRequest listDeploymentsRequest)
throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException {
return new ListDeploymentsIterable(this, listDeploymentsRequest);
}
/**
*
* This is a variant of
* {@link #listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)} 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.launchwizard.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsIterable responses = client
* .listDeploymentsPaginator(request);
* for (software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(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 #listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListDeploymentsRequest.Builder} avoiding the need
* to create one manually via {@link ListDeploymentsRequest#builder()}
*
*
* @param listDeploymentsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListDeployments
* @see AWS
* API Documentation
*/
default ListDeploymentsIterable listDeploymentsPaginator(Consumer listDeploymentsRequest)
throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException {
return listDeploymentsPaginator(ListDeploymentsRequest.builder().applyMutation(listDeploymentsRequest).build());
}
/**
*
* Lists the tags associated with a specified resource.
*
*
* @param listTagsForResourceRequest
* @return Result of the ListTagsForResource operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the tags associated with a specified resource.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForResourceRequest#builder()}
*
*
* @param listTagsForResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListTagsForResourceRequest.Builder} to create a
* request.
* @return Result of the ListTagsForResource operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(
Consumer listTagsForResourceRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
* Lists the workload deployment patterns for a given workload name. You can use the ListWorkloads
* operation to discover the available workload names.
*
*
* @param listWorkloadDeploymentPatternsRequest
* @return Result of the ListWorkloadDeploymentPatterns operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListWorkloadDeploymentPatterns
* @see AWS API Documentation
*/
default ListWorkloadDeploymentPatternsResponse listWorkloadDeploymentPatterns(
ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the workload deployment patterns for a given workload name. You can use the ListWorkloads
* operation to discover the available workload names.
*
*
*
* This is a convenience which creates an instance of the {@link ListWorkloadDeploymentPatternsRequest.Builder}
* avoiding the need to create one manually via {@link ListWorkloadDeploymentPatternsRequest#builder()}
*
*
* @param listWorkloadDeploymentPatternsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest.Builder}
* to create a request.
* @return Result of the ListWorkloadDeploymentPatterns operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListWorkloadDeploymentPatterns
* @see AWS API Documentation
*/
default ListWorkloadDeploymentPatternsResponse listWorkloadDeploymentPatterns(
Consumer listWorkloadDeploymentPatternsRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
return listWorkloadDeploymentPatterns(ListWorkloadDeploymentPatternsRequest.builder()
.applyMutation(listWorkloadDeploymentPatternsRequest).build());
}
/**
*
* This is a variant of
* {@link #listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)}
* 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.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable responses = client.listWorkloadDeploymentPatternsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable responses = client
* .listWorkloadDeploymentPatternsPaginator(request);
* for (software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable responses = client.listWorkloadDeploymentPatternsPaginator(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 #listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)}
* operation.
*
*
* @param listWorkloadDeploymentPatternsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListWorkloadDeploymentPatterns
* @see AWS API Documentation
*/
default ListWorkloadDeploymentPatternsIterable listWorkloadDeploymentPatternsPaginator(
ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
return new ListWorkloadDeploymentPatternsIterable(this, listWorkloadDeploymentPatternsRequest);
}
/**
*
* This is a variant of
* {@link #listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)}
* 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.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable responses = client.listWorkloadDeploymentPatternsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable responses = client
* .listWorkloadDeploymentPatternsPaginator(request);
* for (software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable responses = client.listWorkloadDeploymentPatternsPaginator(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 #listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListWorkloadDeploymentPatternsRequest.Builder}
* avoiding the need to create one manually via {@link ListWorkloadDeploymentPatternsRequest#builder()}
*
*
* @param listWorkloadDeploymentPatternsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest.Builder}
* to create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListWorkloadDeploymentPatterns
* @see AWS API Documentation
*/
default ListWorkloadDeploymentPatternsIterable listWorkloadDeploymentPatternsPaginator(
Consumer listWorkloadDeploymentPatternsRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
return listWorkloadDeploymentPatternsPaginator(ListWorkloadDeploymentPatternsRequest.builder()
.applyMutation(listWorkloadDeploymentPatternsRequest).build());
}
/**
*
* Lists the available workload names. You can use the ListWorkloadDeploymentPatterns operation to discover the available deployment patterns for a given workload.
*
*
* @param listWorkloadsRequest
* @return Result of the ListWorkloads operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListWorkloads
* @see AWS
* API Documentation
*/
default ListWorkloadsResponse listWorkloads(ListWorkloadsRequest listWorkloadsRequest) throws InternalServerException,
ValidationException, AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Lists the available workload names. You can use the ListWorkloadDeploymentPatterns operation to discover the available deployment patterns for a given workload.
*
*
*
* This is a convenience which creates an instance of the {@link ListWorkloadsRequest.Builder} avoiding the need to
* create one manually via {@link ListWorkloadsRequest#builder()}
*
*
* @param listWorkloadsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest.Builder} to create a
* request.
* @return Result of the ListWorkloads operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListWorkloads
* @see AWS
* API Documentation
*/
default ListWorkloadsResponse listWorkloads(Consumer listWorkloadsRequest)
throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException {
return listWorkloads(ListWorkloadsRequest.builder().applyMutation(listWorkloadsRequest).build());
}
/**
*
* This is a variant of
* {@link #listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)} 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.launchwizard.paginators.ListWorkloadsIterable responses = client.listWorkloadsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsIterable responses = client
* .listWorkloadsPaginator(request);
* for (software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsIterable responses = client.listWorkloadsPaginator(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 #listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)} operation.
*
*
* @param listWorkloadsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListWorkloads
* @see AWS
* API Documentation
*/
default ListWorkloadsIterable listWorkloadsPaginator(ListWorkloadsRequest listWorkloadsRequest)
throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException {
return new ListWorkloadsIterable(this, listWorkloadsRequest);
}
/**
*
* This is a variant of
* {@link #listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)} 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.launchwizard.paginators.ListWorkloadsIterable responses = client.listWorkloadsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsIterable responses = client
* .listWorkloadsPaginator(request);
* for (software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsIterable responses = client.listWorkloadsPaginator(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 #listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListWorkloadsRequest.Builder} avoiding the need to
* create one manually via {@link ListWorkloadsRequest#builder()}
*
*
* @param listWorkloadsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.ListWorkloads
* @see AWS
* API Documentation
*/
default ListWorkloadsIterable listWorkloadsPaginator(Consumer listWorkloadsRequest)
throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException {
return listWorkloadsPaginator(ListWorkloadsRequest.builder().applyMutation(listWorkloadsRequest).build());
}
/**
*
* Adds the specified tags to the given resource.
*
*
* @param tagResourceRequest
* @return Result of the TagResource operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.TagResource
* @see AWS API
* Documentation
*/
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Adds the specified tags to the given resource.
*
*
*
* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
* create one manually via {@link TagResourceRequest#builder()}
*
*
* @param tagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.TagResourceRequest.Builder} to create a request.
* @return Result of the TagResource operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.TagResource
* @see AWS API
* Documentation
*/
default TagResourceResponse tagResource(Consumer tagResourceRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Removes the specified tags from the given resource.
*
*
* @param untagResourceRequest
* @return Result of the UntagResource operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.UntagResource
* @see AWS
* API Documentation
*/
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException,
ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException {
throw new UnsupportedOperationException();
}
/**
*
* Removes the specified tags from the given resource.
*
*
*
* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
* create one manually via {@link UntagResourceRequest#builder()}
*
*
* @param untagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.launchwizard.model.UntagResourceRequest.Builder} to create a
* request.
* @return Result of the UntagResource operation returned by the service.
* @throws InternalServerException
* An internal error has occurred. Retry your request, but if the problem persists, contact us with details
* by posting a question on re:Post.
* @throws ValidationException
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
* @throws ResourceNotFoundException
* The specified workload or deployment resource can't be found.
* @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 LaunchWizardException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample LaunchWizardClient.UntagResource
* @see AWS
* API Documentation
*/
default UntagResourceResponse untagResource(Consumer untagResourceRequest)
throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException,
SdkClientException, LaunchWizardException {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
* Create a {@link LaunchWizardClient} 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 LaunchWizardClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link LaunchWizardClient}.
*/
static LaunchWizardClientBuilder builder() {
return new DefaultLaunchWizardClientBuilder();
}
static ServiceMetadata serviceMetadata() {
return ServiceMetadata.of(SERVICE_METADATA_ID);
}
@Override
default LaunchWizardServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
}