@Generated(value="software.amazon.awssdk:codegen") public interface MediaPackageAsyncClient extends SdkClient, SdkAutoCloseable
builder()
method.
AWS Elemental MediaPackageModifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static MediaPackageAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
MediaPackageAsyncClient . |
static MediaPackageAsyncClient |
create()
Create a
MediaPackageAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from
the DefaultCredentialsProvider . |
default CompletableFuture<CreateChannelResponse> |
createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest)
Creates a new Channel.
This is a convenience which creates an instance of the CreateChannelRequest.Builder avoiding the need to
create one manually via CreateChannelRequest.builder() |
default CompletableFuture<CreateChannelResponse> |
createChannel(CreateChannelRequest createChannelRequest)
Creates a new Channel.
|
default CompletableFuture<CreateOriginEndpointResponse> |
createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest)
Creates a new OriginEndpoint record.
This is a convenience which creates an instance of the CreateOriginEndpointRequest.Builder avoiding the
need to create one manually via CreateOriginEndpointRequest.builder() |
default CompletableFuture<CreateOriginEndpointResponse> |
createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest)
Creates a new OriginEndpoint record.
|
default CompletableFuture<DeleteChannelResponse> |
deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest)
Deletes an existing Channel.
This is a convenience which creates an instance of the DeleteChannelRequest.Builder avoiding the need to
create one manually via DeleteChannelRequest.builder() |
default CompletableFuture<DeleteChannelResponse> |
deleteChannel(DeleteChannelRequest deleteChannelRequest)
Deletes an existing Channel.
|
default CompletableFuture<DeleteOriginEndpointResponse> |
deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest)
Deletes an existing OriginEndpoint.
This is a convenience which creates an instance of the DeleteOriginEndpointRequest.Builder avoiding the
need to create one manually via DeleteOriginEndpointRequest.builder() |
default CompletableFuture<DeleteOriginEndpointResponse> |
deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest)
Deletes an existing OriginEndpoint.
|
default CompletableFuture<DescribeChannelResponse> |
describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest)
Gets details about a Channel.
This is a convenience which creates an instance of the DescribeChannelRequest.Builder avoiding the need
to create one manually via DescribeChannelRequest.builder() |
default CompletableFuture<DescribeChannelResponse> |
describeChannel(DescribeChannelRequest describeChannelRequest)
Gets details about a Channel.
|
default CompletableFuture<DescribeOriginEndpointResponse> |
describeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest)
Gets details about an existing OriginEndpoint.
This is a convenience which creates an instance of the DescribeOriginEndpointRequest.Builder avoiding the
need to create one manually via DescribeOriginEndpointRequest.builder() |
default CompletableFuture<DescribeOriginEndpointResponse> |
describeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest)
Gets details about an existing OriginEndpoint.
|
default CompletableFuture<ListChannelsResponse> |
listChannels()
Returns a collection of Channels.
|
default CompletableFuture<ListChannelsResponse> |
listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest)
Returns a collection of Channels.
This is a convenience which creates an instance of the ListChannelsRequest.Builder avoiding the need to
create one manually via ListChannelsRequest.builder() |
default CompletableFuture<ListChannelsResponse> |
listChannels(ListChannelsRequest listChannelsRequest)
Returns a collection of Channels.
|
default ListChannelsPublisher |
listChannelsPaginator()
Returns a collection of Channels.
|
default ListChannelsPublisher |
listChannelsPaginator(ListChannelsRequest listChannelsRequest)
Returns a collection of Channels.
|
default CompletableFuture<ListOriginEndpointsResponse> |
listOriginEndpoints()
Returns a collection of OriginEndpoint records.
|
default CompletableFuture<ListOriginEndpointsResponse> |
listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest)
Returns a collection of OriginEndpoint records.
This is a convenience which creates an instance of the ListOriginEndpointsRequest.Builder avoiding the
need to create one manually via ListOriginEndpointsRequest.builder() |
default CompletableFuture<ListOriginEndpointsResponse> |
listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest)
Returns a collection of OriginEndpoint records.
|
default ListOriginEndpointsPublisher |
listOriginEndpointsPaginator()
Returns a collection of OriginEndpoint records.
|
default ListOriginEndpointsPublisher |
listOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest)
Returns a collection of OriginEndpoint records.
|
default CompletableFuture<RotateChannelCredentialsResponse> |
rotateChannelCredentials(Consumer<RotateChannelCredentialsRequest.Builder> rotateChannelCredentialsRequest)
Changes the Channel ingest username and password.
This is a convenience which creates an instance of the RotateChannelCredentialsRequest.Builder avoiding
the need to create one manually via RotateChannelCredentialsRequest.builder() |
default CompletableFuture<RotateChannelCredentialsResponse> |
rotateChannelCredentials(RotateChannelCredentialsRequest rotateChannelCredentialsRequest)
Changes the Channel ingest username and password.
|
default CompletableFuture<UpdateChannelResponse> |
updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest)
Updates an existing Channel.
This is a convenience which creates an instance of the UpdateChannelRequest.Builder avoiding the need to
create one manually via UpdateChannelRequest.builder() |
default CompletableFuture<UpdateChannelResponse> |
updateChannel(UpdateChannelRequest updateChannelRequest)
Updates an existing Channel.
|
default CompletableFuture<UpdateOriginEndpointResponse> |
updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest)
Updates an existing OriginEndpoint.
This is a convenience which creates an instance of the UpdateOriginEndpointRequest.Builder avoiding the
need to create one manually via UpdateOriginEndpointRequest.builder() |
default CompletableFuture<UpdateOriginEndpointResponse> |
updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest)
Updates an existing OriginEndpoint.
|
serviceName
close
static final String SERVICE_NAME
static MediaPackageAsyncClient create()
MediaPackageAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from
the DefaultCredentialsProvider
.static MediaPackageAsyncClientBuilder builder()
MediaPackageAsyncClient
.default CompletableFuture<CreateChannelResponse> createChannel(CreateChannelRequest createChannelRequest)
createChannelRequest
- A new Channel configuration.default CompletableFuture<CreateChannelResponse> createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest)
CreateChannelRequest.Builder
avoiding the need to
create one manually via CreateChannelRequest.builder()
createChannelRequest
- a Consumer
that will call methods on CreateChannelRequest.Builder
.default CompletableFuture<CreateOriginEndpointResponse> createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest)
createOriginEndpointRequest
- Configuration parameters used to create a new OriginEndpoint.default CompletableFuture<CreateOriginEndpointResponse> createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest)
CreateOriginEndpointRequest.Builder
avoiding the
need to create one manually via CreateOriginEndpointRequest.builder()
createOriginEndpointRequest
- a Consumer
that will call methods on CreateOriginEndpointRequest.Builder
.default CompletableFuture<DeleteChannelResponse> deleteChannel(DeleteChannelRequest deleteChannelRequest)
deleteChannelRequest
- default CompletableFuture<DeleteChannelResponse> deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest)
DeleteChannelRequest.Builder
avoiding the need to
create one manually via DeleteChannelRequest.builder()
deleteChannelRequest
- a Consumer
that will call methods on DeleteChannelRequest.Builder
.default CompletableFuture<DeleteOriginEndpointResponse> deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest)
deleteOriginEndpointRequest
- default CompletableFuture<DeleteOriginEndpointResponse> deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest)
DeleteOriginEndpointRequest.Builder
avoiding the
need to create one manually via DeleteOriginEndpointRequest.builder()
deleteOriginEndpointRequest
- a Consumer
that will call methods on DeleteOriginEndpointRequest.Builder
.default CompletableFuture<DescribeChannelResponse> describeChannel(DescribeChannelRequest describeChannelRequest)
describeChannelRequest
- default CompletableFuture<DescribeChannelResponse> describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest)
DescribeChannelRequest.Builder
avoiding the need
to create one manually via DescribeChannelRequest.builder()
describeChannelRequest
- a Consumer
that will call methods on DescribeChannelRequest.Builder
.default CompletableFuture<DescribeOriginEndpointResponse> describeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest)
describeOriginEndpointRequest
- default CompletableFuture<DescribeOriginEndpointResponse> describeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest)
DescribeOriginEndpointRequest.Builder
avoiding the
need to create one manually via DescribeOriginEndpointRequest.builder()
describeOriginEndpointRequest
- a Consumer
that will call methods on DescribeOriginEndpointRequest.Builder
.default CompletableFuture<ListChannelsResponse> listChannels(ListChannelsRequest listChannelsRequest)
listChannelsRequest
- default CompletableFuture<ListChannelsResponse> listChannels()
default CompletableFuture<ListChannelsResponse> listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest)
ListChannelsRequest.Builder
avoiding the need to
create one manually via ListChannelsRequest.builder()
listChannelsRequest
- a Consumer
that will call methods on ListChannelsRequest.Builder
.default ListChannelsPublisher listChannelsPaginator(ListChannelsRequest listChannelsRequest)
This is a variant of
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
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.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse 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
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
operation.
listChannelsRequest
- default ListChannelsPublisher listChannelsPaginator()
This is a variant of
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
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.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse 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
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
operation.
default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest)
listOriginEndpointsRequest
- default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints()
default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest)
ListOriginEndpointsRequest.Builder
avoiding the
need to create one manually via ListOriginEndpointsRequest.builder()
listOriginEndpointsRequest
- a Consumer
that will call methods on ListOriginEndpointsRequest.Builder
.default ListOriginEndpointsPublisher listOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest)
This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
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.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse 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
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
operation.
listOriginEndpointsRequest
- default ListOriginEndpointsPublisher listOriginEndpointsPaginator()
This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
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.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse 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
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
operation.
default CompletableFuture<RotateChannelCredentialsResponse> rotateChannelCredentials(RotateChannelCredentialsRequest rotateChannelCredentialsRequest)
rotateChannelCredentialsRequest
- default CompletableFuture<RotateChannelCredentialsResponse> rotateChannelCredentials(Consumer<RotateChannelCredentialsRequest.Builder> rotateChannelCredentialsRequest)
RotateChannelCredentialsRequest.Builder
avoiding
the need to create one manually via RotateChannelCredentialsRequest.builder()
rotateChannelCredentialsRequest
- a Consumer
that will call methods on RotateChannelCredentialsRequest.Builder
.default CompletableFuture<UpdateChannelResponse> updateChannel(UpdateChannelRequest updateChannelRequest)
updateChannelRequest
- Configuration parameters used to update the Channel.default CompletableFuture<UpdateChannelResponse> updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest)
UpdateChannelRequest.Builder
avoiding the need to
create one manually via UpdateChannelRequest.builder()
updateChannelRequest
- a Consumer
that will call methods on UpdateChannelRequest.Builder
.default CompletableFuture<UpdateOriginEndpointResponse> updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest)
updateOriginEndpointRequest
- Configuration parameters used to update an existing OriginEndpoint.default CompletableFuture<UpdateOriginEndpointResponse> updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest)
UpdateOriginEndpointRequest.Builder
avoiding the
need to create one manually via UpdateOriginEndpointRequest.builder()
updateOriginEndpointRequest
- a Consumer
that will call methods on UpdateOriginEndpointRequest.Builder
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.