@Generated(value="software.amazon.awssdk:codegen") public interface MediaPackageAsyncClient extends SdkClient
builder()
 method.
 AWS Elemental MediaPackage| Modifier and Type | Field and Description | 
|---|---|
| static String | SERVICE_NAME | 
serviceNameclosestatic 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)
 This is a convenience which creates an instance of the CreateChannelRequest.Builder avoiding the need to
 create one manually via CreateChannelRequest.builder()
 
createChannelRequest - A Consumer that will call methods on CreateChannelRequest.Builder to create a request. A
        new Channel configuration.default CompletableFuture<CreateOriginEndpointResponse> createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest)
createOriginEndpointRequest - Configuration parameters used to create a new OriginEndpoint.default CompletableFuture<CreateOriginEndpointResponse> createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest)
 This is a convenience which creates an instance of the CreateOriginEndpointRequest.Builder avoiding the
 need to create one manually via CreateOriginEndpointRequest.builder()
 
createOriginEndpointRequest - A Consumer that will call methods on CreateOriginEndpointRequest.Builder to create a
        request. Configuration parameters used to create a new OriginEndpoint.default CompletableFuture<DeleteChannelResponse> deleteChannel(DeleteChannelRequest deleteChannelRequest)
deleteChannelRequest - default CompletableFuture<DeleteChannelResponse> deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest)
 This is a convenience which creates an instance of the DeleteChannelRequest.Builder avoiding the need to
 create one manually via DeleteChannelRequest.builder()
 
deleteChannelRequest - A Consumer that will call methods on DeleteChannelRequest.Builder to create a request.default CompletableFuture<DeleteOriginEndpointResponse> deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest)
deleteOriginEndpointRequest - default CompletableFuture<DeleteOriginEndpointResponse> deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest)
 This is a convenience which creates an instance of the DeleteOriginEndpointRequest.Builder avoiding the
 need to create one manually via DeleteOriginEndpointRequest.builder()
 
deleteOriginEndpointRequest - A Consumer that will call methods on DeleteOriginEndpointRequest.Builder to create a
        request.default CompletableFuture<DescribeChannelResponse> describeChannel(DescribeChannelRequest describeChannelRequest)
describeChannelRequest - default CompletableFuture<DescribeChannelResponse> describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest)
 This is a convenience which creates an instance of the DescribeChannelRequest.Builder avoiding the need
 to create one manually via DescribeChannelRequest.builder()
 
describeChannelRequest - A Consumer that will call methods on DescribeChannelRequest.Builder to create a request.default CompletableFuture<DescribeOriginEndpointResponse> describeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest)
describeOriginEndpointRequest - default CompletableFuture<DescribeOriginEndpointResponse> describeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest)
 This is a convenience which creates an instance of the DescribeOriginEndpointRequest.Builder avoiding the
 need to create one manually via DescribeOriginEndpointRequest.builder()
 
describeOriginEndpointRequest - A Consumer that will call methods on DescribeOriginEndpointRequest.Builder to create a
        request.default CompletableFuture<ListChannelsResponse> listChannels(ListChannelsRequest listChannelsRequest)
listChannelsRequest - default CompletableFuture<ListChannelsResponse> listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest)
 This is a convenience which creates an instance of the ListChannelsRequest.Builder avoiding the need to
 create one manually via ListChannelsRequest.builder()
 
listChannelsRequest - A Consumer that will call methods on ListChannelsRequest.Builder to create a request.default CompletableFuture<ListChannelsResponse> listChannels()
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 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(Consumer<ListChannelsRequest.Builder> 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.
 
 This is a convenience which creates an instance of the ListChannelsRequest.Builder avoiding the need to
 create one manually via ListChannelsRequest.builder()
 
listChannelsRequest - A Consumer that will call methods on ListChannelsRequest.Builder to create a request.default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest)
listOriginEndpointsRequest - default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest)
 This is a convenience which creates an instance of the ListOriginEndpointsRequest.Builder avoiding the
 need to create one manually via ListOriginEndpointsRequest.builder()
 
listOriginEndpointsRequest - A Consumer that will call methods on ListOriginEndpointsRequest.Builder to create a
        request.default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints()
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 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(Consumer<ListOriginEndpointsRequest.Builder> 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.
 
 This is a convenience which creates an instance of the ListOriginEndpointsRequest.Builder avoiding the
 need to create one manually via ListOriginEndpointsRequest.builder()
 
listOriginEndpointsRequest - A Consumer that will call methods on ListOriginEndpointsRequest.Builder to create a
        request.default CompletableFuture<RotateChannelCredentialsResponse> rotateChannelCredentials(RotateChannelCredentialsRequest rotateChannelCredentialsRequest)
rotateChannelCredentialsRequest - default CompletableFuture<RotateChannelCredentialsResponse> rotateChannelCredentials(Consumer<RotateChannelCredentialsRequest.Builder> rotateChannelCredentialsRequest)
 This is a convenience which creates an instance of the RotateChannelCredentialsRequest.Builder avoiding
 the need to create one manually via RotateChannelCredentialsRequest.builder()
 
rotateChannelCredentialsRequest - A Consumer that will call methods on RotateChannelCredentialsRequest.Builder to create a
        request.default CompletableFuture<UpdateChannelResponse> updateChannel(UpdateChannelRequest updateChannelRequest)
updateChannelRequest - Configuration parameters used to update the Channel.default CompletableFuture<UpdateChannelResponse> updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest)
 This is a convenience which creates an instance of the UpdateChannelRequest.Builder avoiding the need to
 create one manually via UpdateChannelRequest.builder()
 
updateChannelRequest - A Consumer that will call methods on UpdateChannelRequest.Builder to create a request.
        Configuration parameters used to update the Channel.default CompletableFuture<UpdateOriginEndpointResponse> updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest)
updateOriginEndpointRequest - Configuration parameters used to update an existing OriginEndpoint.default CompletableFuture<UpdateOriginEndpointResponse> updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest)
 This is a convenience which creates an instance of the UpdateOriginEndpointRequest.Builder avoiding the
 need to create one manually via UpdateOriginEndpointRequest.builder()
 
updateOriginEndpointRequest - A Consumer that will call methods on UpdateOriginEndpointRequest.Builder to create a
        request. Configuration parameters used to update an existing OriginEndpoint.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.