Interface LaunchWizardClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic LaunchWizardClientBuilder
builder()
Create a builder that can be used to configure and create aLaunchWizardClient
.static LaunchWizardClient
create()
Create aLaunchWizardClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateDeploymentResponse
createDeployment
(Consumer<CreateDeploymentRequest.Builder> createDeploymentRequest) Creates a deployment for the given workload.default CreateDeploymentResponse
createDeployment
(CreateDeploymentRequest createDeploymentRequest) Creates a deployment for the given workload.default DeleteDeploymentResponse
deleteDeployment
(Consumer<DeleteDeploymentRequest.Builder> deleteDeploymentRequest) Deletes a deployment.default DeleteDeploymentResponse
deleteDeployment
(DeleteDeploymentRequest deleteDeploymentRequest) Deletes a deployment.default GetDeploymentResponse
getDeployment
(Consumer<GetDeploymentRequest.Builder> getDeploymentRequest) Returns information about the deployment.default GetDeploymentResponse
getDeployment
(GetDeploymentRequest getDeploymentRequest) Returns information about the deployment.default GetWorkloadResponse
getWorkload
(Consumer<GetWorkloadRequest.Builder> getWorkloadRequest) Returns information about a workload.default GetWorkloadResponse
getWorkload
(GetWorkloadRequest getWorkloadRequest) Returns information about a workload.default ListDeploymentEventsResponse
listDeploymentEvents
(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) Lists the events of a deployment.default ListDeploymentEventsResponse
listDeploymentEvents
(ListDeploymentEventsRequest listDeploymentEventsRequest) Lists the events of a deployment.default ListDeploymentEventsIterable
listDeploymentEventsPaginator
(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) This is a variant oflistDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation.default ListDeploymentEventsIterable
listDeploymentEventsPaginator
(ListDeploymentEventsRequest listDeploymentEventsRequest) This is a variant oflistDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation.default ListDeploymentsResponse
listDeployments
(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) Lists the deployments that have been created.default ListDeploymentsResponse
listDeployments
(ListDeploymentsRequest listDeploymentsRequest) Lists the deployments that have been created.default ListDeploymentsIterable
listDeploymentsPaginator
(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) This is a variant oflistDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation.default ListDeploymentsIterable
listDeploymentsPaginator
(ListDeploymentsRequest listDeploymentsRequest) This is a variant oflistDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation.listWorkloadDeploymentPatterns
(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.listWorkloadDeploymentPatterns
(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.listWorkloadDeploymentPatternsPaginator
(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) This is a variant oflistWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation.listWorkloadDeploymentPatternsPaginator
(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) This is a variant oflistWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation.default ListWorkloadsResponse
listWorkloads
(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) Lists the workloads.default ListWorkloadsResponse
listWorkloads
(ListWorkloadsRequest listWorkloadsRequest) Lists the workloads.default ListWorkloadsIterable
listWorkloadsPaginator
(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) This is a variant oflistWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation.default ListWorkloadsIterable
listWorkloadsPaginator
(ListWorkloadsRequest listWorkloadsRequest) This is a variant oflistWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
createDeployment
default CreateDeploymentResponse createDeployment(CreateDeploymentRequest createDeploymentRequest) throws ResourceLimitException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException 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.- Parameters:
createDeploymentRequest
-- Returns:
- Result of the CreateDeployment operation returned by the service.
- See Also:
-
createDeployment
default CreateDeploymentResponse createDeployment(Consumer<CreateDeploymentRequest.Builder> createDeploymentRequest) throws ResourceLimitException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException 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
CreateDeploymentRequest.Builder
avoiding the need to create one manually viaCreateDeploymentRequest.builder()
- Parameters:
createDeploymentRequest
- AConsumer
that will call methods onCreateDeploymentRequest.Builder
to create a request.- Returns:
- Result of the CreateDeployment operation returned by the service.
- See Also:
-
deleteDeployment
default DeleteDeploymentResponse deleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Deletes a deployment.
- Parameters:
deleteDeploymentRequest
-- Returns:
- Result of the DeleteDeployment operation returned by the service.
- See Also:
-
deleteDeployment
default DeleteDeploymentResponse deleteDeployment(Consumer<DeleteDeploymentRequest.Builder> deleteDeploymentRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Deletes a deployment.
This is a convenience which creates an instance of the
DeleteDeploymentRequest.Builder
avoiding the need to create one manually viaDeleteDeploymentRequest.builder()
- Parameters:
deleteDeploymentRequest
- AConsumer
that will call methods onDeleteDeploymentRequest.Builder
to create a request.- Returns:
- Result of the DeleteDeployment operation returned by the service.
- See Also:
-
getDeployment
default GetDeploymentResponse getDeployment(GetDeploymentRequest getDeploymentRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Returns information about the deployment.
- Parameters:
getDeploymentRequest
-- Returns:
- Result of the GetDeployment operation returned by the service.
- See Also:
-
getDeployment
default GetDeploymentResponse getDeployment(Consumer<GetDeploymentRequest.Builder> getDeploymentRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Returns information about the deployment.
This is a convenience which creates an instance of the
GetDeploymentRequest.Builder
avoiding the need to create one manually viaGetDeploymentRequest.builder()
- Parameters:
getDeploymentRequest
- AConsumer
that will call methods onGetDeploymentRequest.Builder
to create a request.- Returns:
- Result of the GetDeployment operation returned by the service.
- See Also:
-
getWorkload
default GetWorkloadResponse getWorkload(GetWorkloadRequest getWorkloadRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Returns information about a workload.
- Parameters:
getWorkloadRequest
-- Returns:
- Result of the GetWorkload operation returned by the service.
- See Also:
-
getWorkload
default GetWorkloadResponse getWorkload(Consumer<GetWorkloadRequest.Builder> getWorkloadRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Returns information about a workload.
This is a convenience which creates an instance of the
GetWorkloadRequest.Builder
avoiding the need to create one manually viaGetWorkloadRequest.builder()
- Parameters:
getWorkloadRequest
- AConsumer
that will call methods onGetWorkloadRequest.Builder
to create a request.- Returns:
- Result of the GetWorkload operation returned by the service.
- See Also:
-
listDeploymentEvents
default ListDeploymentEventsResponse listDeploymentEvents(ListDeploymentEventsRequest listDeploymentEventsRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Lists the events of a deployment.
- Parameters:
listDeploymentEventsRequest
-- Returns:
- Result of the ListDeploymentEvents operation returned by the service.
- See Also:
-
listDeploymentEvents
default ListDeploymentEventsResponse listDeploymentEvents(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Lists the events of a deployment.
This is a convenience which creates an instance of the
ListDeploymentEventsRequest.Builder
avoiding the need to create one manually viaListDeploymentEventsRequest.builder()
- Parameters:
listDeploymentEventsRequest
- AConsumer
that will call methods onListDeploymentEventsRequest.Builder
to create a request.- Returns:
- Result of the ListDeploymentEvents operation returned by the service.
- See Also:
-
listDeploymentEventsPaginator
default ListDeploymentEventsIterable listDeploymentEventsPaginator(ListDeploymentEventsRequest listDeploymentEventsRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException This is a variant of
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 Streamsoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsIterable responses = client.listDeploymentEventsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation.- Parameters:
listDeploymentEventsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDeploymentEventsPaginator
default ListDeploymentEventsIterable listDeploymentEventsPaginator(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException This is a variant of
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 Streamsoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsIterable responses = client.listDeploymentEventsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation.
This is a convenience which creates an instance of the
ListDeploymentEventsRequest.Builder
avoiding the need to create one manually viaListDeploymentEventsRequest.builder()
- Parameters:
listDeploymentEventsRequest
- AConsumer
that will call methods onListDeploymentEventsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDeployments
default ListDeploymentsResponse listDeployments(ListDeploymentsRequest listDeploymentsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException Lists the deployments that have been created.
- Parameters:
listDeploymentsRequest
-- Returns:
- Result of the ListDeployments operation returned by the service.
- See Also:
-
listDeployments
default ListDeploymentsResponse listDeployments(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException Lists the deployments that have been created.
This is a convenience which creates an instance of the
ListDeploymentsRequest.Builder
avoiding the need to create one manually viaListDeploymentsRequest.builder()
- Parameters:
listDeploymentsRequest
- AConsumer
that will call methods onListDeploymentsRequest.Builder
to create a request.- Returns:
- Result of the ListDeployments operation returned by the service.
- See Also:
-
listDeploymentsPaginator
default ListDeploymentsIterable listDeploymentsPaginator(ListDeploymentsRequest listDeploymentsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException This is a variant of
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 Streamsoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation.- Parameters:
listDeploymentsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDeploymentsPaginator
default ListDeploymentsIterable listDeploymentsPaginator(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException This is a variant of
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 Streamsoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsIterable responses = client.listDeploymentsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation.
This is a convenience which creates an instance of the
ListDeploymentsRequest.Builder
avoiding the need to create one manually viaListDeploymentsRequest.builder()
- Parameters:
listDeploymentsRequest
- AConsumer
that will call methods onListDeploymentsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkloadDeploymentPatterns
default ListWorkloadDeploymentPatternsResponse listWorkloadDeploymentPatterns(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Lists the workload deployment patterns.
- Parameters:
listWorkloadDeploymentPatternsRequest
-- Returns:
- Result of the ListWorkloadDeploymentPatterns operation returned by the service.
- See Also:
-
listWorkloadDeploymentPatterns
default ListWorkloadDeploymentPatternsResponse listWorkloadDeploymentPatterns(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException Lists the workload deployment patterns.
This is a convenience which creates an instance of the
ListWorkloadDeploymentPatternsRequest.Builder
avoiding the need to create one manually viaListWorkloadDeploymentPatternsRequest.builder()
- Parameters:
listWorkloadDeploymentPatternsRequest
- AConsumer
that will call methods onListWorkloadDeploymentPatternsRequest.Builder
to create a request.- Returns:
- Result of the ListWorkloadDeploymentPatterns operation returned by the service.
- See Also:
-
listWorkloadDeploymentPatternsPaginator
default ListWorkloadDeploymentPatternsIterable listWorkloadDeploymentPatternsPaginator(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException This is a variant of
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 Streamsoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable responses = client.listWorkloadDeploymentPatternsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation.- Parameters:
listWorkloadDeploymentPatternsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkloadDeploymentPatternsPaginator
default ListWorkloadDeploymentPatternsIterable listWorkloadDeploymentPatternsPaginator(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, LaunchWizardException This is a variant of
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 Streamsoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsIterable responses = client.listWorkloadDeploymentPatternsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation.
This is a convenience which creates an instance of the
ListWorkloadDeploymentPatternsRequest.Builder
avoiding the need to create one manually viaListWorkloadDeploymentPatternsRequest.builder()
- Parameters:
listWorkloadDeploymentPatternsRequest
- AConsumer
that will call methods onListWorkloadDeploymentPatternsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkloads
default ListWorkloadsResponse listWorkloads(ListWorkloadsRequest listWorkloadsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException Lists the workloads.
- Parameters:
listWorkloadsRequest
-- Returns:
- Result of the ListWorkloads operation returned by the service.
- See Also:
-
listWorkloads
default ListWorkloadsResponse listWorkloads(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException Lists the workloads.
This is a convenience which creates an instance of the
ListWorkloadsRequest.Builder
avoiding the need to create one manually viaListWorkloadsRequest.builder()
- Parameters:
listWorkloadsRequest
- AConsumer
that will call methods onListWorkloadsRequest.Builder
to create a request.- Returns:
- Result of the ListWorkloads operation returned by the service.
- See Also:
-
listWorkloadsPaginator
default ListWorkloadsIterable listWorkloadsPaginator(ListWorkloadsRequest listWorkloadsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException This is a variant of
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 Streamsoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsIterable responses = client.listWorkloadsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation.- Parameters:
listWorkloadsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkloadsPaginator
default ListWorkloadsIterable listWorkloadsPaginator(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, LaunchWizardException This is a variant of
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 Streamsoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsIterable responses = client.listWorkloadsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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
listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation.
This is a convenience which creates an instance of the
ListWorkloadsRequest.Builder
avoiding the need to create one manually viaListWorkloadsRequest.builder()
- Parameters:
listWorkloadsRequest
- AConsumer
that will call methods onListWorkloadsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
create
Create aLaunchWizardClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aLaunchWizardClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-