@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface WellArchitectedAsyncClient extends SdkClient
builder()
method.
This is the AWS Well-Architected Tool API Reference. The AWS Well-Architected Tool API provides programmatic access to the AWS Well-Architected Tool in the AWS Management Console. For information about the AWS Well-Architected Tool, see the AWS Well-Architected Tool User Guide.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static WellArchitectedAsyncClient create()
WellArchitectedAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static WellArchitectedAsyncClientBuilder builder()
WellArchitectedAsyncClient.default CompletableFuture<AssociateLensesResponse> associateLenses(AssociateLensesRequest associateLensesRequest)
Associate a lens to a workload.
associateLensesRequest - Input to associate lens reviews.default CompletableFuture<AssociateLensesResponse> associateLenses(Consumer<AssociateLensesRequest.Builder> associateLensesRequest)
Associate a lens to a workload.
This is a convenience which creates an instance of the AssociateLensesRequest.Builder avoiding the need
to create one manually via AssociateLensesRequest.builder()
associateLensesRequest - A Consumer that will call methods on AssociateLensesInput.Builder to create a request.
Input to associate lens reviews.default CompletableFuture<CreateMilestoneResponse> createMilestone(CreateMilestoneRequest createMilestoneRequest)
Create a milestone for an existing workload.
createMilestoneRequest - Input for milestone creation.default CompletableFuture<CreateMilestoneResponse> createMilestone(Consumer<CreateMilestoneRequest.Builder> createMilestoneRequest)
Create a milestone for an existing workload.
This is a convenience which creates an instance of the CreateMilestoneRequest.Builder avoiding the need
to create one manually via CreateMilestoneRequest.builder()
createMilestoneRequest - A Consumer that will call methods on CreateMilestoneInput.Builder to create a request.
Input for milestone creation.default CompletableFuture<CreateWorkloadResponse> createWorkload(CreateWorkloadRequest createWorkloadRequest)
Create a new workload.
The owner of a workload can share the workload with other AWS accounts and IAM users in the same AWS Region. Only the owner of a workload can delete it.
For more information, see Defining a Workload in the AWS Well-Architected Tool User Guide.
createWorkloadRequest - Input for workload creation.default CompletableFuture<CreateWorkloadResponse> createWorkload(Consumer<CreateWorkloadRequest.Builder> createWorkloadRequest)
Create a new workload.
The owner of a workload can share the workload with other AWS accounts and IAM users in the same AWS Region. Only the owner of a workload can delete it.
For more information, see Defining a Workload in the AWS Well-Architected Tool User Guide.
This is a convenience which creates an instance of the CreateWorkloadRequest.Builder avoiding the need to
create one manually via CreateWorkloadRequest.builder()
createWorkloadRequest - A Consumer that will call methods on CreateWorkloadInput.Builder to create a request.
Input for workload creation.default CompletableFuture<CreateWorkloadShareResponse> createWorkloadShare(CreateWorkloadShareRequest createWorkloadShareRequest)
Create a workload share.
The owner of a workload can share it with other AWS accounts and IAM users in the same AWS Region. Shared access to a workload is not removed until the workload invitation is deleted.
For more information, see Sharing a Workload in the AWS Well-Architected Tool User Guide.
createWorkloadShareRequest - Input for Create Workload Sharedefault CompletableFuture<CreateWorkloadShareResponse> createWorkloadShare(Consumer<CreateWorkloadShareRequest.Builder> createWorkloadShareRequest)
Create a workload share.
The owner of a workload can share it with other AWS accounts and IAM users in the same AWS Region. Shared access to a workload is not removed until the workload invitation is deleted.
For more information, see Sharing a Workload in the AWS Well-Architected Tool User Guide.
This is a convenience which creates an instance of the CreateWorkloadShareRequest.Builder avoiding the
need to create one manually via CreateWorkloadShareRequest.builder()
createWorkloadShareRequest - A Consumer that will call methods on CreateWorkloadShareInput.Builder to create a request.
Input for Create Workload Sharedefault CompletableFuture<DeleteWorkloadResponse> deleteWorkload(DeleteWorkloadRequest deleteWorkloadRequest)
Delete an existing workload.
deleteWorkloadRequest - Input for workload deletion.default CompletableFuture<DeleteWorkloadResponse> deleteWorkload(Consumer<DeleteWorkloadRequest.Builder> deleteWorkloadRequest)
Delete an existing workload.
This is a convenience which creates an instance of the DeleteWorkloadRequest.Builder avoiding the need to
create one manually via DeleteWorkloadRequest.builder()
deleteWorkloadRequest - A Consumer that will call methods on DeleteWorkloadInput.Builder to create a request.
Input for workload deletion.default CompletableFuture<DeleteWorkloadShareResponse> deleteWorkloadShare(DeleteWorkloadShareRequest deleteWorkloadShareRequest)
Delete a workload share.
deleteWorkloadShareRequest - Input for Delete Workload Sharedefault CompletableFuture<DeleteWorkloadShareResponse> deleteWorkloadShare(Consumer<DeleteWorkloadShareRequest.Builder> deleteWorkloadShareRequest)
Delete a workload share.
This is a convenience which creates an instance of the DeleteWorkloadShareRequest.Builder avoiding the
need to create one manually via DeleteWorkloadShareRequest.builder()
deleteWorkloadShareRequest - A Consumer that will call methods on DeleteWorkloadShareInput.Builder to create a request.
Input for Delete Workload Sharedefault CompletableFuture<DisassociateLensesResponse> disassociateLenses(DisassociateLensesRequest disassociateLensesRequest)
Disassociate a lens from a workload.
The AWS Well-Architected Framework lens (wellarchitected) cannot be removed from a workload.
disassociateLensesRequest - Input to disassociate lens reviews.default CompletableFuture<DisassociateLensesResponse> disassociateLenses(Consumer<DisassociateLensesRequest.Builder> disassociateLensesRequest)
Disassociate a lens from a workload.
The AWS Well-Architected Framework lens (wellarchitected) cannot be removed from a workload.
This is a convenience which creates an instance of the DisassociateLensesRequest.Builder avoiding the
need to create one manually via DisassociateLensesRequest.builder()
disassociateLensesRequest - A Consumer that will call methods on DisassociateLensesInput.Builder to create a request.
Input to disassociate lens reviews.default CompletableFuture<GetAnswerResponse> getAnswer(GetAnswerRequest getAnswerRequest)
Get lens review.
getAnswerRequest - Input to get answer.default CompletableFuture<GetAnswerResponse> getAnswer(Consumer<GetAnswerRequest.Builder> getAnswerRequest)
Get lens review.
This is a convenience which creates an instance of the GetAnswerRequest.Builder avoiding the need to
create one manually via GetAnswerRequest.builder()
getAnswerRequest - A Consumer that will call methods on GetAnswerInput.Builder to create a request. Input to
get answer.default CompletableFuture<GetLensReviewResponse> getLensReview(GetLensReviewRequest getLensReviewRequest)
Get lens review.
getLensReviewRequest - Input to get lens review.default CompletableFuture<GetLensReviewResponse> getLensReview(Consumer<GetLensReviewRequest.Builder> getLensReviewRequest)
Get lens review.
This is a convenience which creates an instance of the GetLensReviewRequest.Builder avoiding the need to
create one manually via GetLensReviewRequest.builder()
getLensReviewRequest - A Consumer that will call methods on GetLensReviewInput.Builder to create a request. Input
to get lens review.default CompletableFuture<GetLensReviewReportResponse> getLensReviewReport(GetLensReviewReportRequest getLensReviewReportRequest)
Get lens review report.
getLensReviewReportRequest - Input to get lens review report.default CompletableFuture<GetLensReviewReportResponse> getLensReviewReport(Consumer<GetLensReviewReportRequest.Builder> getLensReviewReportRequest)
Get lens review report.
This is a convenience which creates an instance of the GetLensReviewReportRequest.Builder avoiding the
need to create one manually via GetLensReviewReportRequest.builder()
getLensReviewReportRequest - A Consumer that will call methods on GetLensReviewReportInput.Builder to create a request.
Input to get lens review report.default CompletableFuture<GetLensVersionDifferenceResponse> getLensVersionDifference(GetLensVersionDifferenceRequest getLensVersionDifferenceRequest)
Get lens version differences.
getLensVersionDifferenceRequest - default CompletableFuture<GetLensVersionDifferenceResponse> getLensVersionDifference(Consumer<GetLensVersionDifferenceRequest.Builder> getLensVersionDifferenceRequest)
Get lens version differences.
This is a convenience which creates an instance of the GetLensVersionDifferenceRequest.Builder avoiding
the need to create one manually via GetLensVersionDifferenceRequest.builder()
getLensVersionDifferenceRequest - A Consumer that will call methods on GetLensVersionDifferenceInput.Builder to create a
request.default CompletableFuture<GetMilestoneResponse> getMilestone(GetMilestoneRequest getMilestoneRequest)
Get a milestone for an existing workload.
getMilestoneRequest - Input to get a milestone.default CompletableFuture<GetMilestoneResponse> getMilestone(Consumer<GetMilestoneRequest.Builder> getMilestoneRequest)
Get a milestone for an existing workload.
This is a convenience which creates an instance of the GetMilestoneRequest.Builder avoiding the need to
create one manually via GetMilestoneRequest.builder()
getMilestoneRequest - A Consumer that will call methods on GetMilestoneInput.Builder to create a request. Input
to get a milestone.default CompletableFuture<GetWorkloadResponse> getWorkload(GetWorkloadRequest getWorkloadRequest)
Get an existing workload.
getWorkloadRequest - Input to get a workload.default CompletableFuture<GetWorkloadResponse> getWorkload(Consumer<GetWorkloadRequest.Builder> getWorkloadRequest)
Get an existing workload.
This is a convenience which creates an instance of the GetWorkloadRequest.Builder avoiding the need to
create one manually via GetWorkloadRequest.builder()
getWorkloadRequest - A Consumer that will call methods on GetWorkloadInput.Builder to create a request. Input
to get a workload.default CompletableFuture<ListAnswersResponse> listAnswers(ListAnswersRequest listAnswersRequest)
List of answers.
listAnswersRequest - Input to list answers.default CompletableFuture<ListAnswersResponse> listAnswers(Consumer<ListAnswersRequest.Builder> listAnswersRequest)
List of answers.
This is a convenience which creates an instance of the ListAnswersRequest.Builder avoiding the need to
create one manually via ListAnswersRequest.builder()
listAnswersRequest - A Consumer that will call methods on ListAnswersInput.Builder to create a request. Input
to list answers.default ListAnswersPublisher listAnswersPaginator(ListAnswersRequest listAnswersRequest)
List of answers.
This is a variant of
listAnswers(software.amazon.awssdk.services.wellarchitected.model.ListAnswersRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListAnswersPublisher publisher = client.listAnswersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListAnswersPublisher publisher = client.listAnswersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListAnswersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListAnswersResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnswers(software.amazon.awssdk.services.wellarchitected.model.ListAnswersRequest) operation.
listAnswersRequest - Input to list answers.default ListAnswersPublisher listAnswersPaginator(Consumer<ListAnswersRequest.Builder> listAnswersRequest)
List of answers.
This is a variant of
listAnswers(software.amazon.awssdk.services.wellarchitected.model.ListAnswersRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListAnswersPublisher publisher = client.listAnswersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListAnswersPublisher publisher = client.listAnswersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListAnswersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListAnswersResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAnswers(software.amazon.awssdk.services.wellarchitected.model.ListAnswersRequest) operation.
This is a convenience which creates an instance of the ListAnswersRequest.Builder avoiding the need to
create one manually via ListAnswersRequest.builder()
listAnswersRequest - A Consumer that will call methods on ListAnswersInput.Builder to create a request. Input
to list answers.default CompletableFuture<ListLensReviewImprovementsResponse> listLensReviewImprovements(ListLensReviewImprovementsRequest listLensReviewImprovementsRequest)
List lens review improvements.
listLensReviewImprovementsRequest - Input to list lens review improvements.default CompletableFuture<ListLensReviewImprovementsResponse> listLensReviewImprovements(Consumer<ListLensReviewImprovementsRequest.Builder> listLensReviewImprovementsRequest)
List lens review improvements.
This is a convenience which creates an instance of the ListLensReviewImprovementsRequest.Builder avoiding
the need to create one manually via ListLensReviewImprovementsRequest.builder()
listLensReviewImprovementsRequest - A Consumer that will call methods on ListLensReviewImprovementsInput.Builder to create a
request. Input to list lens review improvements.default ListLensReviewImprovementsPublisher listLensReviewImprovementsPaginator(ListLensReviewImprovementsRequest listLensReviewImprovementsRequest)
List lens review improvements.
This is a variant of
listLensReviewImprovements(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewImprovementsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListLensReviewImprovementsPublisher publisher = client.listLensReviewImprovementsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListLensReviewImprovementsPublisher publisher = client.listLensReviewImprovementsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListLensReviewImprovementsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewImprovementsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLensReviewImprovements(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewImprovementsRequest)
operation.
listLensReviewImprovementsRequest - Input to list lens review improvements.default ListLensReviewImprovementsPublisher listLensReviewImprovementsPaginator(Consumer<ListLensReviewImprovementsRequest.Builder> listLensReviewImprovementsRequest)
List lens review improvements.
This is a variant of
listLensReviewImprovements(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewImprovementsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListLensReviewImprovementsPublisher publisher = client.listLensReviewImprovementsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListLensReviewImprovementsPublisher publisher = client.listLensReviewImprovementsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListLensReviewImprovementsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewImprovementsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLensReviewImprovements(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewImprovementsRequest)
operation.
This is a convenience which creates an instance of the ListLensReviewImprovementsRequest.Builder avoiding
the need to create one manually via ListLensReviewImprovementsRequest.builder()
listLensReviewImprovementsRequest - A Consumer that will call methods on ListLensReviewImprovementsInput.Builder to create a
request. Input to list lens review improvements.default CompletableFuture<ListLensReviewsResponse> listLensReviews(ListLensReviewsRequest listLensReviewsRequest)
List lens reviews.
listLensReviewsRequest - Input to list lens reviews.default CompletableFuture<ListLensReviewsResponse> listLensReviews(Consumer<ListLensReviewsRequest.Builder> listLensReviewsRequest)
List lens reviews.
This is a convenience which creates an instance of the ListLensReviewsRequest.Builder avoiding the need
to create one manually via ListLensReviewsRequest.builder()
listLensReviewsRequest - A Consumer that will call methods on ListLensReviewsInput.Builder to create a request.
Input to list lens reviews.default ListLensReviewsPublisher listLensReviewsPaginator(ListLensReviewsRequest listLensReviewsRequest)
List lens reviews.
This is a variant of
listLensReviews(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewsRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListLensReviewsPublisher publisher = client.listLensReviewsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListLensReviewsPublisher publisher = client.listLensReviewsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListLensReviewsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLensReviews(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewsRequest)
operation.
listLensReviewsRequest - Input to list lens reviews.default ListLensReviewsPublisher listLensReviewsPaginator(Consumer<ListLensReviewsRequest.Builder> listLensReviewsRequest)
List lens reviews.
This is a variant of
listLensReviews(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewsRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListLensReviewsPublisher publisher = client.listLensReviewsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListLensReviewsPublisher publisher = client.listLensReviewsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListLensReviewsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLensReviews(software.amazon.awssdk.services.wellarchitected.model.ListLensReviewsRequest)
operation.
This is a convenience which creates an instance of the ListLensReviewsRequest.Builder avoiding the need
to create one manually via ListLensReviewsRequest.builder()
listLensReviewsRequest - A Consumer that will call methods on ListLensReviewsInput.Builder to create a request.
Input to list lens reviews.default CompletableFuture<ListLensesResponse> listLenses(ListLensesRequest listLensesRequest)
List the available lenses.
listLensesRequest - Input to list lenses.default CompletableFuture<ListLensesResponse> listLenses(Consumer<ListLensesRequest.Builder> listLensesRequest)
List the available lenses.
This is a convenience which creates an instance of the ListLensesRequest.Builder avoiding the need to
create one manually via ListLensesRequest.builder()
listLensesRequest - A Consumer that will call methods on ListLensesInput.Builder to create a request. Input to
list lenses.default ListLensesPublisher listLensesPaginator(ListLensesRequest listLensesRequest)
List the available lenses.
This is a variant of listLenses(software.amazon.awssdk.services.wellarchitected.model.ListLensesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListLensesPublisher publisher = client.listLensesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListLensesPublisher publisher = client.listLensesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListLensesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListLensesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLenses(software.amazon.awssdk.services.wellarchitected.model.ListLensesRequest) operation.
listLensesRequest - Input to list lenses.default ListLensesPublisher listLensesPaginator(Consumer<ListLensesRequest.Builder> listLensesRequest)
List the available lenses.
This is a variant of listLenses(software.amazon.awssdk.services.wellarchitected.model.ListLensesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListLensesPublisher publisher = client.listLensesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListLensesPublisher publisher = client.listLensesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListLensesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListLensesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLenses(software.amazon.awssdk.services.wellarchitected.model.ListLensesRequest) operation.
This is a convenience which creates an instance of the ListLensesRequest.Builder avoiding the need to
create one manually via ListLensesRequest.builder()
listLensesRequest - A Consumer that will call methods on ListLensesInput.Builder to create a request. Input to
list lenses.default CompletableFuture<ListMilestonesResponse> listMilestones(ListMilestonesRequest listMilestonesRequest)
List all milestones for an existing workload.
listMilestonesRequest - Input to list all milestones for a workload.default CompletableFuture<ListMilestonesResponse> listMilestones(Consumer<ListMilestonesRequest.Builder> listMilestonesRequest)
List all milestones for an existing workload.
This is a convenience which creates an instance of the ListMilestonesRequest.Builder avoiding the need to
create one manually via ListMilestonesRequest.builder()
listMilestonesRequest - A Consumer that will call methods on ListMilestonesInput.Builder to create a request.
Input to list all milestones for a workload.default ListMilestonesPublisher listMilestonesPaginator(ListMilestonesRequest listMilestonesRequest)
List all milestones for an existing workload.
This is a variant of
listMilestones(software.amazon.awssdk.services.wellarchitected.model.ListMilestonesRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListMilestonesPublisher publisher = client.listMilestonesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListMilestonesPublisher publisher = client.listMilestonesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListMilestonesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListMilestonesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMilestones(software.amazon.awssdk.services.wellarchitected.model.ListMilestonesRequest)
operation.
listMilestonesRequest - Input to list all milestones for a workload.default ListMilestonesPublisher listMilestonesPaginator(Consumer<ListMilestonesRequest.Builder> listMilestonesRequest)
List all milestones for an existing workload.
This is a variant of
listMilestones(software.amazon.awssdk.services.wellarchitected.model.ListMilestonesRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListMilestonesPublisher publisher = client.listMilestonesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListMilestonesPublisher publisher = client.listMilestonesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListMilestonesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListMilestonesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMilestones(software.amazon.awssdk.services.wellarchitected.model.ListMilestonesRequest)
operation.
This is a convenience which creates an instance of the ListMilestonesRequest.Builder avoiding the need to
create one manually via ListMilestonesRequest.builder()
listMilestonesRequest - A Consumer that will call methods on ListMilestonesInput.Builder to create a request.
Input to list all milestones for a workload.default CompletableFuture<ListNotificationsResponse> listNotifications(ListNotificationsRequest listNotificationsRequest)
List lens notifications.
listNotificationsRequest - default CompletableFuture<ListNotificationsResponse> listNotifications(Consumer<ListNotificationsRequest.Builder> listNotificationsRequest)
List lens notifications.
This is a convenience which creates an instance of the ListNotificationsRequest.Builder avoiding the need
to create one manually via ListNotificationsRequest.builder()
listNotificationsRequest - A Consumer that will call methods on ListNotificationsInput.Builder to create a request.default ListNotificationsPublisher listNotificationsPaginator(ListNotificationsRequest listNotificationsRequest)
List lens notifications.
This is a variant of
listNotifications(software.amazon.awssdk.services.wellarchitected.model.ListNotificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListNotificationsPublisher publisher = client.listNotificationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListNotificationsPublisher publisher = client.listNotificationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListNotificationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListNotificationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNotifications(software.amazon.awssdk.services.wellarchitected.model.ListNotificationsRequest)
operation.
listNotificationsRequest - default ListNotificationsPublisher listNotificationsPaginator(Consumer<ListNotificationsRequest.Builder> listNotificationsRequest)
List lens notifications.
This is a variant of
listNotifications(software.amazon.awssdk.services.wellarchitected.model.ListNotificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListNotificationsPublisher publisher = client.listNotificationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListNotificationsPublisher publisher = client.listNotificationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListNotificationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListNotificationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNotifications(software.amazon.awssdk.services.wellarchitected.model.ListNotificationsRequest)
operation.
This is a convenience which creates an instance of the ListNotificationsRequest.Builder avoiding the need
to create one manually via ListNotificationsRequest.builder()
listNotificationsRequest - A Consumer that will call methods on ListNotificationsInput.Builder to create a request.default CompletableFuture<ListShareInvitationsResponse> listShareInvitations(ListShareInvitationsRequest listShareInvitationsRequest)
List the workload invitations.
listShareInvitationsRequest - Input for List Share Invitationsdefault CompletableFuture<ListShareInvitationsResponse> listShareInvitations(Consumer<ListShareInvitationsRequest.Builder> listShareInvitationsRequest)
List the workload invitations.
This is a convenience which creates an instance of the ListShareInvitationsRequest.Builder avoiding the
need to create one manually via ListShareInvitationsRequest.builder()
listShareInvitationsRequest - A Consumer that will call methods on ListShareInvitationsInput.Builder to create a
request. Input for List Share Invitationsdefault ListShareInvitationsPublisher listShareInvitationsPaginator(ListShareInvitationsRequest listShareInvitationsRequest)
List the workload invitations.
This is a variant of
listShareInvitations(software.amazon.awssdk.services.wellarchitected.model.ListShareInvitationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListShareInvitationsPublisher publisher = client.listShareInvitationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListShareInvitationsPublisher publisher = client.listShareInvitationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListShareInvitationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListShareInvitationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listShareInvitations(software.amazon.awssdk.services.wellarchitected.model.ListShareInvitationsRequest)
operation.
listShareInvitationsRequest - Input for List Share Invitationsdefault ListShareInvitationsPublisher listShareInvitationsPaginator(Consumer<ListShareInvitationsRequest.Builder> listShareInvitationsRequest)
List the workload invitations.
This is a variant of
listShareInvitations(software.amazon.awssdk.services.wellarchitected.model.ListShareInvitationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListShareInvitationsPublisher publisher = client.listShareInvitationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListShareInvitationsPublisher publisher = client.listShareInvitationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListShareInvitationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListShareInvitationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listShareInvitations(software.amazon.awssdk.services.wellarchitected.model.ListShareInvitationsRequest)
operation.
This is a convenience which creates an instance of the ListShareInvitationsRequest.Builder avoiding the
need to create one manually via ListShareInvitationsRequest.builder()
listShareInvitationsRequest - A Consumer that will call methods on ListShareInvitationsInput.Builder to create a
request. Input for List Share Invitationsdefault CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
List the tags for a resource.
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
List the tags for a resource.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceInput.Builder to create a request.default CompletableFuture<ListWorkloadSharesResponse> listWorkloadShares(ListWorkloadSharesRequest listWorkloadSharesRequest)
List the workload shares associated with the workload.
listWorkloadSharesRequest - Input for List Workload Sharedefault CompletableFuture<ListWorkloadSharesResponse> listWorkloadShares(Consumer<ListWorkloadSharesRequest.Builder> listWorkloadSharesRequest)
List the workload shares associated with the workload.
This is a convenience which creates an instance of the ListWorkloadSharesRequest.Builder avoiding the
need to create one manually via ListWorkloadSharesRequest.builder()
listWorkloadSharesRequest - A Consumer that will call methods on ListWorkloadSharesInput.Builder to create a request.
Input for List Workload Sharedefault ListWorkloadSharesPublisher listWorkloadSharesPaginator(ListWorkloadSharesRequest listWorkloadSharesRequest)
List the workload shares associated with the workload.
This is a variant of
listWorkloadShares(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadSharesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListWorkloadSharesPublisher publisher = client.listWorkloadSharesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListWorkloadSharesPublisher publisher = client.listWorkloadSharesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListWorkloadSharesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadSharesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloadShares(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadSharesRequest)
operation.
listWorkloadSharesRequest - Input for List Workload Sharedefault ListWorkloadSharesPublisher listWorkloadSharesPaginator(Consumer<ListWorkloadSharesRequest.Builder> listWorkloadSharesRequest)
List the workload shares associated with the workload.
This is a variant of
listWorkloadShares(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadSharesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListWorkloadSharesPublisher publisher = client.listWorkloadSharesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListWorkloadSharesPublisher publisher = client.listWorkloadSharesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListWorkloadSharesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadSharesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloadShares(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadSharesRequest)
operation.
This is a convenience which creates an instance of the ListWorkloadSharesRequest.Builder avoiding the
need to create one manually via ListWorkloadSharesRequest.builder()
listWorkloadSharesRequest - A Consumer that will call methods on ListWorkloadSharesInput.Builder to create a request.
Input for List Workload Sharedefault CompletableFuture<ListWorkloadsResponse> listWorkloads(ListWorkloadsRequest listWorkloadsRequest)
List workloads. Paginated.
listWorkloadsRequest - Input to list all workloads.default CompletableFuture<ListWorkloadsResponse> listWorkloads(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest)
List workloads. Paginated.
This is a convenience which creates an instance of the ListWorkloadsRequest.Builder avoiding the need to
create one manually via ListWorkloadsRequest.builder()
listWorkloadsRequest - A Consumer that will call methods on ListWorkloadsInput.Builder to create a request. Input
to list all workloads.default ListWorkloadsPublisher listWorkloadsPaginator(ListWorkloadsRequest listWorkloadsRequest)
List workloads. Paginated.
This is a variant of
listWorkloads(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListWorkloadsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloads(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadsRequest) operation.
listWorkloadsRequest - Input to list all workloads.default ListWorkloadsPublisher listWorkloadsPaginator(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest)
List workloads. Paginated.
This is a variant of
listWorkloads(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.wellarchitected.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.wellarchitected.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.wellarchitected.model.ListWorkloadsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloads(software.amazon.awssdk.services.wellarchitected.model.ListWorkloadsRequest) operation.
This is a convenience which creates an instance of the ListWorkloadsRequest.Builder avoiding the need to
create one manually via ListWorkloadsRequest.builder()
listWorkloadsRequest - A Consumer that will call methods on ListWorkloadsInput.Builder to create a request. Input
to list all workloads.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds one or more tags to the specified resource.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds one or more tags to the specified resource.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceInput.Builder to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Deletes specified tags from a resource.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Deletes specified tags from a resource.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceInput.Builder to create a request.default CompletableFuture<UpdateAnswerResponse> updateAnswer(UpdateAnswerRequest updateAnswerRequest)
Update the answer to a specific question in a workload review.
updateAnswerRequest - Input to update answer.default CompletableFuture<UpdateAnswerResponse> updateAnswer(Consumer<UpdateAnswerRequest.Builder> updateAnswerRequest)
Update the answer to a specific question in a workload review.
This is a convenience which creates an instance of the UpdateAnswerRequest.Builder avoiding the need to
create one manually via UpdateAnswerRequest.builder()
updateAnswerRequest - A Consumer that will call methods on UpdateAnswerInput.Builder to create a request. Input
to update answer.default CompletableFuture<UpdateLensReviewResponse> updateLensReview(UpdateLensReviewRequest updateLensReviewRequest)
Update lens review.
updateLensReviewRequest - Input for update lens review.default CompletableFuture<UpdateLensReviewResponse> updateLensReview(Consumer<UpdateLensReviewRequest.Builder> updateLensReviewRequest)
Update lens review.
This is a convenience which creates an instance of the UpdateLensReviewRequest.Builder avoiding the need
to create one manually via UpdateLensReviewRequest.builder()
updateLensReviewRequest - A Consumer that will call methods on UpdateLensReviewInput.Builder to create a request.
Input for update lens review.default CompletableFuture<UpdateShareInvitationResponse> updateShareInvitation(UpdateShareInvitationRequest updateShareInvitationRequest)
Update a workload invitation.
updateShareInvitationRequest - Input for Update Share Invitationdefault CompletableFuture<UpdateShareInvitationResponse> updateShareInvitation(Consumer<UpdateShareInvitationRequest.Builder> updateShareInvitationRequest)
Update a workload invitation.
This is a convenience which creates an instance of the UpdateShareInvitationRequest.Builder avoiding the
need to create one manually via UpdateShareInvitationRequest.builder()
updateShareInvitationRequest - A Consumer that will call methods on UpdateShareInvitationInput.Builder to create a
request. Input for Update Share Invitationdefault CompletableFuture<UpdateWorkloadResponse> updateWorkload(UpdateWorkloadRequest updateWorkloadRequest)
Update an existing workload.
updateWorkloadRequest - Input to update a workload.default CompletableFuture<UpdateWorkloadResponse> updateWorkload(Consumer<UpdateWorkloadRequest.Builder> updateWorkloadRequest)
Update an existing workload.
This is a convenience which creates an instance of the UpdateWorkloadRequest.Builder avoiding the need to
create one manually via UpdateWorkloadRequest.builder()
updateWorkloadRequest - A Consumer that will call methods on UpdateWorkloadInput.Builder to create a request.
Input to update a workload.default CompletableFuture<UpdateWorkloadShareResponse> updateWorkloadShare(UpdateWorkloadShareRequest updateWorkloadShareRequest)
Update a workload share.
updateWorkloadShareRequest - Input for Update Workload Sharedefault CompletableFuture<UpdateWorkloadShareResponse> updateWorkloadShare(Consumer<UpdateWorkloadShareRequest.Builder> updateWorkloadShareRequest)
Update a workload share.
This is a convenience which creates an instance of the UpdateWorkloadShareRequest.Builder avoiding the
need to create one manually via UpdateWorkloadShareRequest.builder()
updateWorkloadShareRequest - A Consumer that will call methods on UpdateWorkloadShareInput.Builder to create a request.
Input for Update Workload Sharedefault CompletableFuture<UpgradeLensReviewResponse> upgradeLensReview(UpgradeLensReviewRequest upgradeLensReviewRequest)
Upgrade lens review.
upgradeLensReviewRequest - default CompletableFuture<UpgradeLensReviewResponse> upgradeLensReview(Consumer<UpgradeLensReviewRequest.Builder> upgradeLensReviewRequest)
Upgrade lens review.
This is a convenience which creates an instance of the UpgradeLensReviewRequest.Builder avoiding the need
to create one manually via UpgradeLensReviewRequest.builder()
upgradeLensReviewRequest - A Consumer that will call methods on UpgradeLensReviewInput.Builder to create a request.Copyright © 2021. All rights reserved.