@Generated(value="software.amazon.awssdk:codegen") public interface Cloud9AsyncClient extends SdkClient
builder()
method.
AWS Cloud9 is a collection of tools that you can use to code, build, run, test, debug, and release software in the cloud.
In the background, these tools are available through development environments running on Amazon Elastic Compute Cloud (Amazon EC2) instances (known as Amazon EC2 environments), your own servers (known as SSH environments), or a combination. This enables you to create and switch between multiple environments, with each environment set up for a specific development project.
For more information about AWS Cloud9, see the AWS Cloud9 User Guide.
AWS Cloud9 supports these operations:
CreateEnvironmentEC2
: Creates an AWS Cloud9 development environment, launches an Amazon EC2 instance,
and then hosts the environment on the instance.
CreateEnvironmentMembership
: Adds an environment member to an environment.
DeleteEnvironment
: Deletes an environment. If the environment is hosted on an Amazon EC2 instance, also
terminates the instance.
DeleteEnvironmentMembership
: Deletes an environment member from an environment.
DescribeEnvironmentMemberships
: Gets information about environment members for an environment.
DescribeEnvironments
: Gets information about environments.
DescribeEnvironmentStatus
: Gets status information for an environment.
ListEnvironments
: Gets a list of environment identifiers.
UpdateEnvironment
: Changes the settings of an existing environment.
UpdateEnvironmentMembership
: Changes the settings of an existing environment member for an environment.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static Cloud9AsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
Cloud9AsyncClient . |
static Cloud9AsyncClient |
create()
Create a
Cloud9AsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<CreateEnvironmentEc2Response> |
createEnvironmentEC2(Consumer<CreateEnvironmentEc2Request.Builder> createEnvironmentEc2Request)
Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance,
and then hosts the environment on the instance.
|
default CompletableFuture<CreateEnvironmentEc2Response> |
createEnvironmentEC2(CreateEnvironmentEc2Request createEnvironmentEc2Request)
Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance,
and then hosts the environment on the instance.
|
default CompletableFuture<CreateEnvironmentMembershipResponse> |
createEnvironmentMembership(Consumer<CreateEnvironmentMembershipRequest.Builder> createEnvironmentMembershipRequest)
Adds an environment member to an AWS Cloud9 development environment.
|
default CompletableFuture<CreateEnvironmentMembershipResponse> |
createEnvironmentMembership(CreateEnvironmentMembershipRequest createEnvironmentMembershipRequest)
Adds an environment member to an AWS Cloud9 development environment.
|
default CompletableFuture<DeleteEnvironmentResponse> |
deleteEnvironment(Consumer<DeleteEnvironmentRequest.Builder> deleteEnvironmentRequest)
Deletes an AWS Cloud9 development environment.
|
default CompletableFuture<DeleteEnvironmentResponse> |
deleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest)
Deletes an AWS Cloud9 development environment.
|
default CompletableFuture<DeleteEnvironmentMembershipResponse> |
deleteEnvironmentMembership(Consumer<DeleteEnvironmentMembershipRequest.Builder> deleteEnvironmentMembershipRequest)
Deletes an environment member from an AWS Cloud9 development environment.
|
default CompletableFuture<DeleteEnvironmentMembershipResponse> |
deleteEnvironmentMembership(DeleteEnvironmentMembershipRequest deleteEnvironmentMembershipRequest)
Deletes an environment member from an AWS Cloud9 development environment.
|
default CompletableFuture<DescribeEnvironmentMembershipsResponse> |
describeEnvironmentMemberships()
Gets information about environment members for an AWS Cloud9 development environment.
|
default CompletableFuture<DescribeEnvironmentMembershipsResponse> |
describeEnvironmentMemberships(Consumer<DescribeEnvironmentMembershipsRequest.Builder> describeEnvironmentMembershipsRequest)
Gets information about environment members for an AWS Cloud9 development environment.
|
default CompletableFuture<DescribeEnvironmentMembershipsResponse> |
describeEnvironmentMemberships(DescribeEnvironmentMembershipsRequest describeEnvironmentMembershipsRequest)
Gets information about environment members for an AWS Cloud9 development environment.
|
default DescribeEnvironmentMembershipsPublisher |
describeEnvironmentMembershipsPaginator()
Gets information about environment members for an AWS Cloud9 development environment.
|
default DescribeEnvironmentMembershipsPublisher |
describeEnvironmentMembershipsPaginator(Consumer<DescribeEnvironmentMembershipsRequest.Builder> describeEnvironmentMembershipsRequest)
Gets information about environment members for an AWS Cloud9 development environment.
|
default DescribeEnvironmentMembershipsPublisher |
describeEnvironmentMembershipsPaginator(DescribeEnvironmentMembershipsRequest describeEnvironmentMembershipsRequest)
Gets information about environment members for an AWS Cloud9 development environment.
|
default CompletableFuture<DescribeEnvironmentsResponse> |
describeEnvironments(Consumer<DescribeEnvironmentsRequest.Builder> describeEnvironmentsRequest)
Gets information about AWS Cloud9 development environments.
|
default CompletableFuture<DescribeEnvironmentsResponse> |
describeEnvironments(DescribeEnvironmentsRequest describeEnvironmentsRequest)
Gets information about AWS Cloud9 development environments.
|
default CompletableFuture<DescribeEnvironmentStatusResponse> |
describeEnvironmentStatus(Consumer<DescribeEnvironmentStatusRequest.Builder> describeEnvironmentStatusRequest)
Gets status information for an AWS Cloud9 development environment.
|
default CompletableFuture<DescribeEnvironmentStatusResponse> |
describeEnvironmentStatus(DescribeEnvironmentStatusRequest describeEnvironmentStatusRequest)
Gets status information for an AWS Cloud9 development environment.
|
default CompletableFuture<ListEnvironmentsResponse> |
listEnvironments()
Gets a list of AWS Cloud9 development environment identifiers.
|
default CompletableFuture<ListEnvironmentsResponse> |
listEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest)
Gets a list of AWS Cloud9 development environment identifiers.
|
default CompletableFuture<ListEnvironmentsResponse> |
listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest)
Gets a list of AWS Cloud9 development environment identifiers.
|
default ListEnvironmentsPublisher |
listEnvironmentsPaginator()
Gets a list of AWS Cloud9 development environment identifiers.
|
default ListEnvironmentsPublisher |
listEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest)
Gets a list of AWS Cloud9 development environment identifiers.
|
default ListEnvironmentsPublisher |
listEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest)
Gets a list of AWS Cloud9 development environment identifiers.
|
default CompletableFuture<UpdateEnvironmentResponse> |
updateEnvironment(Consumer<UpdateEnvironmentRequest.Builder> updateEnvironmentRequest)
Changes the settings of an existing AWS Cloud9 development environment.
|
default CompletableFuture<UpdateEnvironmentResponse> |
updateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest)
Changes the settings of an existing AWS Cloud9 development environment.
|
default CompletableFuture<UpdateEnvironmentMembershipResponse> |
updateEnvironmentMembership(Consumer<UpdateEnvironmentMembershipRequest.Builder> updateEnvironmentMembershipRequest)
Changes the settings of an existing environment member for an AWS Cloud9 development environment.
|
default CompletableFuture<UpdateEnvironmentMembershipResponse> |
updateEnvironmentMembership(UpdateEnvironmentMembershipRequest updateEnvironmentMembershipRequest)
Changes the settings of an existing environment member for an AWS Cloud9 development environment.
|
serviceName
close
static final String SERVICE_NAME
static Cloud9AsyncClient create()
Cloud9AsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static Cloud9AsyncClientBuilder builder()
Cloud9AsyncClient
.default CompletableFuture<CreateEnvironmentEc2Response> createEnvironmentEC2(CreateEnvironmentEc2Request createEnvironmentEc2Request)
Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then hosts the environment on the instance.
createEnvironmentEc2Request
- default CompletableFuture<CreateEnvironmentEc2Response> createEnvironmentEC2(Consumer<CreateEnvironmentEc2Request.Builder> createEnvironmentEc2Request)
Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then hosts the environment on the instance.
This is a convenience which creates an instance of the CreateEnvironmentEc2Request.Builder
avoiding the
need to create one manually via CreateEnvironmentEc2Request.builder()
createEnvironmentEc2Request
- A Consumer
that will call methods on CreateEnvironmentEC2Request.Builder
to create a
request.default CompletableFuture<CreateEnvironmentMembershipResponse> createEnvironmentMembership(CreateEnvironmentMembershipRequest createEnvironmentMembershipRequest)
Adds an environment member to an AWS Cloud9 development environment.
createEnvironmentMembershipRequest
- default CompletableFuture<CreateEnvironmentMembershipResponse> createEnvironmentMembership(Consumer<CreateEnvironmentMembershipRequest.Builder> createEnvironmentMembershipRequest)
Adds an environment member to an AWS Cloud9 development environment.
This is a convenience which creates an instance of the CreateEnvironmentMembershipRequest.Builder
avoiding the need to create one manually via CreateEnvironmentMembershipRequest.builder()
createEnvironmentMembershipRequest
- A Consumer
that will call methods on CreateEnvironmentMembershipRequest.Builder
to create
a request.default CompletableFuture<DeleteEnvironmentResponse> deleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest)
Deletes an AWS Cloud9 development environment. If the environment is hosted on an Amazon Elastic Compute Cloud (Amazon EC2) instance, also terminates the instance.
deleteEnvironmentRequest
- default CompletableFuture<DeleteEnvironmentResponse> deleteEnvironment(Consumer<DeleteEnvironmentRequest.Builder> deleteEnvironmentRequest)
Deletes an AWS Cloud9 development environment. If the environment is hosted on an Amazon Elastic Compute Cloud (Amazon EC2) instance, also terminates the instance.
This is a convenience which creates an instance of the DeleteEnvironmentRequest.Builder
avoiding the need
to create one manually via DeleteEnvironmentRequest.builder()
deleteEnvironmentRequest
- A Consumer
that will call methods on DeleteEnvironmentRequest.Builder
to create a request.default CompletableFuture<DeleteEnvironmentMembershipResponse> deleteEnvironmentMembership(DeleteEnvironmentMembershipRequest deleteEnvironmentMembershipRequest)
Deletes an environment member from an AWS Cloud9 development environment.
deleteEnvironmentMembershipRequest
- default CompletableFuture<DeleteEnvironmentMembershipResponse> deleteEnvironmentMembership(Consumer<DeleteEnvironmentMembershipRequest.Builder> deleteEnvironmentMembershipRequest)
Deletes an environment member from an AWS Cloud9 development environment.
This is a convenience which creates an instance of the DeleteEnvironmentMembershipRequest.Builder
avoiding the need to create one manually via DeleteEnvironmentMembershipRequest.builder()
deleteEnvironmentMembershipRequest
- A Consumer
that will call methods on DeleteEnvironmentMembershipRequest.Builder
to create
a request.default CompletableFuture<DescribeEnvironmentMembershipsResponse> describeEnvironmentMemberships(DescribeEnvironmentMembershipsRequest describeEnvironmentMembershipsRequest)
Gets information about environment members for an AWS Cloud9 development environment.
describeEnvironmentMembershipsRequest
- default CompletableFuture<DescribeEnvironmentMembershipsResponse> describeEnvironmentMemberships(Consumer<DescribeEnvironmentMembershipsRequest.Builder> describeEnvironmentMembershipsRequest)
Gets information about environment members for an AWS Cloud9 development environment.
This is a convenience which creates an instance of the DescribeEnvironmentMembershipsRequest.Builder
avoiding the need to create one manually via DescribeEnvironmentMembershipsRequest.builder()
describeEnvironmentMembershipsRequest
- A Consumer
that will call methods on DescribeEnvironmentMembershipsRequest.Builder
to
create a request.default CompletableFuture<DescribeEnvironmentMembershipsResponse> describeEnvironmentMemberships()
Gets information about environment members for an AWS Cloud9 development environment.
default DescribeEnvironmentMembershipsPublisher describeEnvironmentMembershipsPaginator()
Gets information about environment members for an AWS Cloud9 development environment.
This is a variant of
describeEnvironmentMemberships(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsRequest)
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 forEach helper method
software.amazon.awssdk.services.cloud9.paginators.DescribeEnvironmentMembershipsPublisher publisher = client.describeEnvironmentMembershipsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.cloud9.paginators.DescribeEnvironmentMembershipsPublisher publisher = client.describeEnvironmentMembershipsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
describeEnvironmentMemberships(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsRequest)
operation.
default DescribeEnvironmentMembershipsPublisher describeEnvironmentMembershipsPaginator(DescribeEnvironmentMembershipsRequest describeEnvironmentMembershipsRequest)
Gets information about environment members for an AWS Cloud9 development environment.
This is a variant of
describeEnvironmentMemberships(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsRequest)
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 forEach helper method
software.amazon.awssdk.services.cloud9.paginators.DescribeEnvironmentMembershipsPublisher publisher = client.describeEnvironmentMembershipsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.cloud9.paginators.DescribeEnvironmentMembershipsPublisher publisher = client.describeEnvironmentMembershipsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
describeEnvironmentMemberships(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsRequest)
operation.
describeEnvironmentMembershipsRequest
- default DescribeEnvironmentMembershipsPublisher describeEnvironmentMembershipsPaginator(Consumer<DescribeEnvironmentMembershipsRequest.Builder> describeEnvironmentMembershipsRequest)
Gets information about environment members for an AWS Cloud9 development environment.
This is a variant of
describeEnvironmentMemberships(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsRequest)
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 forEach helper method
software.amazon.awssdk.services.cloud9.paginators.DescribeEnvironmentMembershipsPublisher publisher = client.describeEnvironmentMembershipsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.cloud9.paginators.DescribeEnvironmentMembershipsPublisher publisher = client.describeEnvironmentMembershipsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
describeEnvironmentMemberships(software.amazon.awssdk.services.cloud9.model.DescribeEnvironmentMembershipsRequest)
operation.
This is a convenience which creates an instance of the DescribeEnvironmentMembershipsRequest.Builder
avoiding the need to create one manually via DescribeEnvironmentMembershipsRequest.builder()
describeEnvironmentMembershipsRequest
- A Consumer
that will call methods on DescribeEnvironmentMembershipsRequest.Builder
to
create a request.default CompletableFuture<DescribeEnvironmentStatusResponse> describeEnvironmentStatus(DescribeEnvironmentStatusRequest describeEnvironmentStatusRequest)
Gets status information for an AWS Cloud9 development environment.
describeEnvironmentStatusRequest
- default CompletableFuture<DescribeEnvironmentStatusResponse> describeEnvironmentStatus(Consumer<DescribeEnvironmentStatusRequest.Builder> describeEnvironmentStatusRequest)
Gets status information for an AWS Cloud9 development environment.
This is a convenience which creates an instance of the DescribeEnvironmentStatusRequest.Builder
avoiding
the need to create one manually via DescribeEnvironmentStatusRequest.builder()
describeEnvironmentStatusRequest
- A Consumer
that will call methods on DescribeEnvironmentStatusRequest.Builder
to create a
request.default CompletableFuture<DescribeEnvironmentsResponse> describeEnvironments(DescribeEnvironmentsRequest describeEnvironmentsRequest)
Gets information about AWS Cloud9 development environments.
describeEnvironmentsRequest
- default CompletableFuture<DescribeEnvironmentsResponse> describeEnvironments(Consumer<DescribeEnvironmentsRequest.Builder> describeEnvironmentsRequest)
Gets information about AWS Cloud9 development environments.
This is a convenience which creates an instance of the DescribeEnvironmentsRequest.Builder
avoiding the
need to create one manually via DescribeEnvironmentsRequest.builder()
describeEnvironmentsRequest
- A Consumer
that will call methods on DescribeEnvironmentsRequest.Builder
to create a
request.default CompletableFuture<ListEnvironmentsResponse> listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest)
Gets a list of AWS Cloud9 development environment identifiers.
listEnvironmentsRequest
- default CompletableFuture<ListEnvironmentsResponse> listEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest)
Gets a list of AWS Cloud9 development environment identifiers.
This is a convenience which creates an instance of the ListEnvironmentsRequest.Builder
avoiding the need
to create one manually via ListEnvironmentsRequest.builder()
listEnvironmentsRequest
- A Consumer
that will call methods on ListEnvironmentsRequest.Builder
to create a request.default CompletableFuture<ListEnvironmentsResponse> listEnvironments()
Gets a list of AWS Cloud9 development environment identifiers.
default ListEnvironmentsPublisher listEnvironmentsPaginator()
Gets a list of AWS Cloud9 development environment identifiers.
This is a variant of
listEnvironments(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsRequest)
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 forEach helper method
software.amazon.awssdk.services.cloud9.paginators.ListEnvironmentsPublisher publisher = client.listEnvironmentsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.cloud9.paginators.ListEnvironmentsPublisher publisher = client.listEnvironmentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.cloud9.model.ListEnvironmentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listEnvironments(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsRequest)
operation.
default ListEnvironmentsPublisher listEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest)
Gets a list of AWS Cloud9 development environment identifiers.
This is a variant of
listEnvironments(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsRequest)
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 forEach helper method
software.amazon.awssdk.services.cloud9.paginators.ListEnvironmentsPublisher publisher = client.listEnvironmentsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.cloud9.paginators.ListEnvironmentsPublisher publisher = client.listEnvironmentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.cloud9.model.ListEnvironmentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listEnvironments(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsRequest)
operation.
listEnvironmentsRequest
- default ListEnvironmentsPublisher listEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest)
Gets a list of AWS Cloud9 development environment identifiers.
This is a variant of
listEnvironments(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsRequest)
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 forEach helper method
software.amazon.awssdk.services.cloud9.paginators.ListEnvironmentsPublisher publisher = client.listEnvironmentsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.cloud9.paginators.ListEnvironmentsPublisher publisher = client.listEnvironmentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.cloud9.model.ListEnvironmentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listEnvironments(software.amazon.awssdk.services.cloud9.model.ListEnvironmentsRequest)
operation.
This is a convenience which creates an instance of the ListEnvironmentsRequest.Builder
avoiding the need
to create one manually via ListEnvironmentsRequest.builder()
listEnvironmentsRequest
- A Consumer
that will call methods on ListEnvironmentsRequest.Builder
to create a request.default CompletableFuture<UpdateEnvironmentResponse> updateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest)
Changes the settings of an existing AWS Cloud9 development environment.
updateEnvironmentRequest
- default CompletableFuture<UpdateEnvironmentResponse> updateEnvironment(Consumer<UpdateEnvironmentRequest.Builder> updateEnvironmentRequest)
Changes the settings of an existing AWS Cloud9 development environment.
This is a convenience which creates an instance of the UpdateEnvironmentRequest.Builder
avoiding the need
to create one manually via UpdateEnvironmentRequest.builder()
updateEnvironmentRequest
- A Consumer
that will call methods on UpdateEnvironmentRequest.Builder
to create a request.default CompletableFuture<UpdateEnvironmentMembershipResponse> updateEnvironmentMembership(UpdateEnvironmentMembershipRequest updateEnvironmentMembershipRequest)
Changes the settings of an existing environment member for an AWS Cloud9 development environment.
updateEnvironmentMembershipRequest
- default CompletableFuture<UpdateEnvironmentMembershipResponse> updateEnvironmentMembership(Consumer<UpdateEnvironmentMembershipRequest.Builder> updateEnvironmentMembershipRequest)
Changes the settings of an existing environment member for an AWS Cloud9 development environment.
This is a convenience which creates an instance of the UpdateEnvironmentMembershipRequest.Builder
avoiding the need to create one manually via UpdateEnvironmentMembershipRequest.builder()
updateEnvironmentMembershipRequest
- A Consumer
that will call methods on UpdateEnvironmentMembershipRequest.Builder
to create
a request.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.