@Generated(value="software.amazon.awssdk:codegen") public interface MediaConnectAsyncClient extends SdkClient
builder()
method.
API for AWS Elemental MediaConnectModifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
serviceName
close
static final String SERVICE_NAME
static MediaConnectAsyncClient create()
MediaConnectAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static MediaConnectAsyncClientBuilder builder()
MediaConnectAsyncClient
.default CompletableFuture<AddFlowOutputsResponse> addFlowOutputs(AddFlowOutputsRequest addFlowOutputsRequest)
addFlowOutputsRequest
- A request to add outputs to the specified flow.default CompletableFuture<AddFlowOutputsResponse> addFlowOutputs(Consumer<AddFlowOutputsRequest.Builder> addFlowOutputsRequest)
This is a convenience which creates an instance of the AddFlowOutputsRequest.Builder
avoiding the need to
create one manually via AddFlowOutputsRequest.builder()
addFlowOutputsRequest
- A Consumer
that will call methods on AddFlowOutputsRequest.Builder
to create a request. A
request to add outputs to the specified flow.default CompletableFuture<CreateFlowResponse> createFlow(CreateFlowRequest createFlowRequest)
createFlowRequest
- Creates a new flow. The request must include one source. The request optionally can include outputs (up to
20) and entitlements (up to 50).default CompletableFuture<CreateFlowResponse> createFlow(Consumer<CreateFlowRequest.Builder> createFlowRequest)
This is a convenience which creates an instance of the CreateFlowRequest.Builder
avoiding the need to
create one manually via CreateFlowRequest.builder()
createFlowRequest
- A Consumer
that will call methods on CreateFlowRequest.Builder
to create a request.
Creates a new flow. The request must include one source. The request optionally can include outputs (up to
20) and entitlements (up to 50).default CompletableFuture<DeleteFlowResponse> deleteFlow(DeleteFlowRequest deleteFlowRequest)
deleteFlowRequest
- default CompletableFuture<DeleteFlowResponse> deleteFlow(Consumer<DeleteFlowRequest.Builder> deleteFlowRequest)
This is a convenience which creates an instance of the DeleteFlowRequest.Builder
avoiding the need to
create one manually via DeleteFlowRequest.builder()
deleteFlowRequest
- A Consumer
that will call methods on DeleteFlowRequest.Builder
to create a request.default CompletableFuture<DescribeFlowResponse> describeFlow(DescribeFlowRequest describeFlowRequest)
describeFlowRequest
- default CompletableFuture<DescribeFlowResponse> describeFlow(Consumer<DescribeFlowRequest.Builder> describeFlowRequest)
This is a convenience which creates an instance of the DescribeFlowRequest.Builder
avoiding the need to
create one manually via DescribeFlowRequest.builder()
describeFlowRequest
- A Consumer
that will call methods on DescribeFlowRequest.Builder
to create a request.default CompletableFuture<GrantFlowEntitlementsResponse> grantFlowEntitlements(GrantFlowEntitlementsRequest grantFlowEntitlementsRequest)
grantFlowEntitlementsRequest
- A request to grant entitlements on a flow.default CompletableFuture<GrantFlowEntitlementsResponse> grantFlowEntitlements(Consumer<GrantFlowEntitlementsRequest.Builder> grantFlowEntitlementsRequest)
This is a convenience which creates an instance of the GrantFlowEntitlementsRequest.Builder
avoiding the
need to create one manually via GrantFlowEntitlementsRequest.builder()
grantFlowEntitlementsRequest
- A Consumer
that will call methods on GrantFlowEntitlementsRequest.Builder
to create a
request. A request to grant entitlements on a flow.default CompletableFuture<ListEntitlementsResponse> listEntitlements(ListEntitlementsRequest listEntitlementsRequest)
listEntitlementsRequest
- default CompletableFuture<ListEntitlementsResponse> listEntitlements(Consumer<ListEntitlementsRequest.Builder> listEntitlementsRequest)
This is a convenience which creates an instance of the ListEntitlementsRequest.Builder
avoiding the need
to create one manually via ListEntitlementsRequest.builder()
listEntitlementsRequest
- A Consumer
that will call methods on ListEntitlementsRequest.Builder
to create a request.default CompletableFuture<ListEntitlementsResponse> listEntitlements()
default CompletableFuture<ListFlowsResponse> listFlows(ListFlowsRequest listFlowsRequest)
listFlowsRequest
- default CompletableFuture<ListFlowsResponse> listFlows(Consumer<ListFlowsRequest.Builder> listFlowsRequest)
This is a convenience which creates an instance of the ListFlowsRequest.Builder
avoiding the need to
create one manually via ListFlowsRequest.builder()
listFlowsRequest
- A Consumer
that will call methods on ListFlowsRequest.Builder
to create a request.default CompletableFuture<ListFlowsResponse> listFlows()
default ListFlowsPublisher listFlowsPaginator()
This is a variant of listFlows(software.amazon.awssdk.services.mediaconnect.model.ListFlowsRequest)
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.mediaconnect.paginators.ListFlowsPublisher publisher = client.listFlowsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediaconnect.paginators.ListFlowsPublisher publisher = client.listFlowsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediaconnect.model.ListFlowsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediaconnect.model.ListFlowsResponse 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
listFlows(software.amazon.awssdk.services.mediaconnect.model.ListFlowsRequest)
operation.
default ListFlowsPublisher listFlowsPaginator(ListFlowsRequest listFlowsRequest)
This is a variant of listFlows(software.amazon.awssdk.services.mediaconnect.model.ListFlowsRequest)
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.mediaconnect.paginators.ListFlowsPublisher publisher = client.listFlowsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediaconnect.paginators.ListFlowsPublisher publisher = client.listFlowsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediaconnect.model.ListFlowsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediaconnect.model.ListFlowsResponse 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
listFlows(software.amazon.awssdk.services.mediaconnect.model.ListFlowsRequest)
operation.
listFlowsRequest
- default ListFlowsPublisher listFlowsPaginator(Consumer<ListFlowsRequest.Builder> listFlowsRequest)
This is a variant of listFlows(software.amazon.awssdk.services.mediaconnect.model.ListFlowsRequest)
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.mediaconnect.paginators.ListFlowsPublisher publisher = client.listFlowsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediaconnect.paginators.ListFlowsPublisher publisher = client.listFlowsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediaconnect.model.ListFlowsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediaconnect.model.ListFlowsResponse 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
listFlows(software.amazon.awssdk.services.mediaconnect.model.ListFlowsRequest)
operation.
This is a convenience which creates an instance of the ListFlowsRequest.Builder
avoiding the need to
create one manually via ListFlowsRequest.builder()
listFlowsRequest
- A Consumer
that will call methods on ListFlowsRequest.Builder
to create a request.default CompletableFuture<RemoveFlowOutputResponse> removeFlowOutput(RemoveFlowOutputRequest removeFlowOutputRequest)
removeFlowOutputRequest
- default CompletableFuture<RemoveFlowOutputResponse> removeFlowOutput(Consumer<RemoveFlowOutputRequest.Builder> removeFlowOutputRequest)
This is a convenience which creates an instance of the RemoveFlowOutputRequest.Builder
avoiding the need
to create one manually via RemoveFlowOutputRequest.builder()
removeFlowOutputRequest
- A Consumer
that will call methods on RemoveFlowOutputRequest.Builder
to create a request.default CompletableFuture<RevokeFlowEntitlementResponse> revokeFlowEntitlement(RevokeFlowEntitlementRequest revokeFlowEntitlementRequest)
revokeFlowEntitlementRequest
- default CompletableFuture<RevokeFlowEntitlementResponse> revokeFlowEntitlement(Consumer<RevokeFlowEntitlementRequest.Builder> revokeFlowEntitlementRequest)
This is a convenience which creates an instance of the RevokeFlowEntitlementRequest.Builder
avoiding the
need to create one manually via RevokeFlowEntitlementRequest.builder()
revokeFlowEntitlementRequest
- A Consumer
that will call methods on RevokeFlowEntitlementRequest.Builder
to create a
request.default CompletableFuture<StartFlowResponse> startFlow(StartFlowRequest startFlowRequest)
startFlowRequest
- default CompletableFuture<StartFlowResponse> startFlow(Consumer<StartFlowRequest.Builder> startFlowRequest)
This is a convenience which creates an instance of the StartFlowRequest.Builder
avoiding the need to
create one manually via StartFlowRequest.builder()
startFlowRequest
- A Consumer
that will call methods on StartFlowRequest.Builder
to create a request.default CompletableFuture<StopFlowResponse> stopFlow(StopFlowRequest stopFlowRequest)
stopFlowRequest
- default CompletableFuture<StopFlowResponse> stopFlow(Consumer<StopFlowRequest.Builder> stopFlowRequest)
This is a convenience which creates an instance of the StopFlowRequest.Builder
avoiding the need to
create one manually via StopFlowRequest.builder()
stopFlowRequest
- A Consumer
that will call methods on StopFlowRequest.Builder
to create a request.default CompletableFuture<UpdateFlowEntitlementResponse> updateFlowEntitlement(UpdateFlowEntitlementRequest updateFlowEntitlementRequest)
updateFlowEntitlementRequest
- The entitlement fields that you want to update.default CompletableFuture<UpdateFlowEntitlementResponse> updateFlowEntitlement(Consumer<UpdateFlowEntitlementRequest.Builder> updateFlowEntitlementRequest)
This is a convenience which creates an instance of the UpdateFlowEntitlementRequest.Builder
avoiding the
need to create one manually via UpdateFlowEntitlementRequest.builder()
updateFlowEntitlementRequest
- A Consumer
that will call methods on UpdateFlowEntitlementRequest.Builder
to create a
request. The entitlement fields that you want to update.default CompletableFuture<UpdateFlowOutputResponse> updateFlowOutput(UpdateFlowOutputRequest updateFlowOutputRequest)
updateFlowOutputRequest
- The fields that you want to update in the output.default CompletableFuture<UpdateFlowOutputResponse> updateFlowOutput(Consumer<UpdateFlowOutputRequest.Builder> updateFlowOutputRequest)
This is a convenience which creates an instance of the UpdateFlowOutputRequest.Builder
avoiding the need
to create one manually via UpdateFlowOutputRequest.builder()
updateFlowOutputRequest
- A Consumer
that will call methods on UpdateFlowOutputRequest.Builder
to create a request.
The fields that you want to update in the output.default CompletableFuture<UpdateFlowSourceResponse> updateFlowSource(UpdateFlowSourceRequest updateFlowSourceRequest)
updateFlowSourceRequest
- A request to update the source of a flow.default CompletableFuture<UpdateFlowSourceResponse> updateFlowSource(Consumer<UpdateFlowSourceRequest.Builder> updateFlowSourceRequest)
This is a convenience which creates an instance of the UpdateFlowSourceRequest.Builder
avoiding the need
to create one manually via UpdateFlowSourceRequest.builder()
updateFlowSourceRequest
- A Consumer
that will call methods on UpdateFlowSourceRequest.Builder
to create a request.
A request to update the source of a flow.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.