@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface MediaTailorAsyncClient extends SdkClient
builder()
method.
Use the AWS Elemental MediaTailor SDKs and CLI to configure scalable ad insertion and linear channels. With MediaTailor, you can assemble existing content into a linear stream and serve targeted ads to viewers while maintaining broadcast quality in over-the-top (OTT) video applications. For information about using the service, including detailed information about the settings covered in this guide, see the AWS Elemental MediaTailor User Guide.
Through the SDKs and the CLI you manage AWS Elemental MediaTailor configurations and channels the same as you do through the console. For example, you specify ad insertion behavior and mapping information for the origin server and the ad decision server (ADS).
| 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 MediaTailorAsyncClient create()
MediaTailorAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static MediaTailorAsyncClientBuilder builder()
MediaTailorAsyncClient.default CompletableFuture<ConfigureLogsForPlaybackConfigurationResponse> configureLogsForPlaybackConfiguration(ConfigureLogsForPlaybackConfigurationRequest configureLogsForPlaybackConfigurationRequest)
Amazon CloudWatch log settings for a playback configuration.
configureLogsForPlaybackConfigurationRequest - Configures Amazon CloudWatch log settings for a playback configuration.default CompletableFuture<ConfigureLogsForPlaybackConfigurationResponse> configureLogsForPlaybackConfiguration(Consumer<ConfigureLogsForPlaybackConfigurationRequest.Builder> configureLogsForPlaybackConfigurationRequest)
Amazon CloudWatch log settings for a playback configuration.
This is a convenience which creates an instance of the
ConfigureLogsForPlaybackConfigurationRequest.Builder avoiding the need to create one manually via
ConfigureLogsForPlaybackConfigurationRequest.builder()
configureLogsForPlaybackConfigurationRequest - A Consumer that will call methods on ConfigureLogsForPlaybackConfigurationRequest.Builder
to create a request. Configures Amazon CloudWatch log settings for a playback configuration.default CompletableFuture<CreateChannelResponse> createChannel(CreateChannelRequest createChannelRequest)
Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
createChannelRequest - default CompletableFuture<CreateChannelResponse> createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest)
Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
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.default CompletableFuture<CreateLiveSourceResponse> createLiveSource(CreateLiveSourceRequest createLiveSourceRequest)
The live source configuration.
createLiveSourceRequest - default CompletableFuture<CreateLiveSourceResponse> createLiveSource(Consumer<CreateLiveSourceRequest.Builder> createLiveSourceRequest)
The live source configuration.
This is a convenience which creates an instance of the CreateLiveSourceRequest.Builder avoiding the need
to create one manually via CreateLiveSourceRequest.builder()
createLiveSourceRequest - A Consumer that will call methods on CreateLiveSourceRequest.Builder to create a request.default CompletableFuture<CreatePrefetchScheduleResponse> createPrefetchSchedule(CreatePrefetchScheduleRequest createPrefetchScheduleRequest)
Creates a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
createPrefetchScheduleRequest - default CompletableFuture<CreatePrefetchScheduleResponse> createPrefetchSchedule(Consumer<CreatePrefetchScheduleRequest.Builder> createPrefetchScheduleRequest)
Creates a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
This is a convenience which creates an instance of the CreatePrefetchScheduleRequest.Builder avoiding the
need to create one manually via CreatePrefetchScheduleRequest.builder()
createPrefetchScheduleRequest - A Consumer that will call methods on CreatePrefetchScheduleRequest.Builder to create a
request.default CompletableFuture<CreateProgramResponse> createProgram(CreateProgramRequest createProgramRequest)
Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
createProgramRequest - default CompletableFuture<CreateProgramResponse> createProgram(Consumer<CreateProgramRequest.Builder> createProgramRequest)
Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
This is a convenience which creates an instance of the CreateProgramRequest.Builder avoiding the need to
create one manually via CreateProgramRequest.builder()
createProgramRequest - A Consumer that will call methods on CreateProgramRequest.Builder to create a request.default CompletableFuture<CreateSourceLocationResponse> createSourceLocation(CreateSourceLocationRequest createSourceLocationRequest)
Creates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
createSourceLocationRequest - default CompletableFuture<CreateSourceLocationResponse> createSourceLocation(Consumer<CreateSourceLocationRequest.Builder> createSourceLocationRequest)
Creates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
This is a convenience which creates an instance of the CreateSourceLocationRequest.Builder avoiding the
need to create one manually via CreateSourceLocationRequest.builder()
createSourceLocationRequest - A Consumer that will call methods on CreateSourceLocationRequest.Builder to create a
request.default CompletableFuture<CreateVodSourceResponse> createVodSource(CreateVodSourceRequest createVodSourceRequest)
The VOD source configuration parameters.
createVodSourceRequest - default CompletableFuture<CreateVodSourceResponse> createVodSource(Consumer<CreateVodSourceRequest.Builder> createVodSourceRequest)
The VOD source configuration parameters.
This is a convenience which creates an instance of the CreateVodSourceRequest.Builder avoiding the need
to create one manually via CreateVodSourceRequest.builder()
createVodSourceRequest - A Consumer that will call methods on CreateVodSourceRequest.Builder to create a request.default CompletableFuture<DeleteChannelResponse> deleteChannel(DeleteChannelRequest deleteChannelRequest)
Deletes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
deleteChannelRequest - default CompletableFuture<DeleteChannelResponse> deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest)
Deletes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
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<DeleteChannelPolicyResponse> deleteChannelPolicy(DeleteChannelPolicyRequest deleteChannelPolicyRequest)
The channel policy to delete.
deleteChannelPolicyRequest - default CompletableFuture<DeleteChannelPolicyResponse> deleteChannelPolicy(Consumer<DeleteChannelPolicyRequest.Builder> deleteChannelPolicyRequest)
The channel policy to delete.
This is a convenience which creates an instance of the DeleteChannelPolicyRequest.Builder avoiding the
need to create one manually via DeleteChannelPolicyRequest.builder()
deleteChannelPolicyRequest - A Consumer that will call methods on DeleteChannelPolicyRequest.Builder to create a
request.default CompletableFuture<DeleteLiveSourceResponse> deleteLiveSource(DeleteLiveSourceRequest deleteLiveSourceRequest)
The live source to delete.
deleteLiveSourceRequest - default CompletableFuture<DeleteLiveSourceResponse> deleteLiveSource(Consumer<DeleteLiveSourceRequest.Builder> deleteLiveSourceRequest)
The live source to delete.
This is a convenience which creates an instance of the DeleteLiveSourceRequest.Builder avoiding the need
to create one manually via DeleteLiveSourceRequest.builder()
deleteLiveSourceRequest - A Consumer that will call methods on DeleteLiveSourceRequest.Builder to create a request.default CompletableFuture<DeletePlaybackConfigurationResponse> deletePlaybackConfiguration(DeletePlaybackConfigurationRequest deletePlaybackConfigurationRequest)
Deletes a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
deletePlaybackConfigurationRequest - default CompletableFuture<DeletePlaybackConfigurationResponse> deletePlaybackConfiguration(Consumer<DeletePlaybackConfigurationRequest.Builder> deletePlaybackConfigurationRequest)
Deletes a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
This is a convenience which creates an instance of the DeletePlaybackConfigurationRequest.Builder
avoiding the need to create one manually via DeletePlaybackConfigurationRequest.builder()
deletePlaybackConfigurationRequest - A Consumer that will call methods on DeletePlaybackConfigurationRequest.Builder to create
a request.default CompletableFuture<DeletePrefetchScheduleResponse> deletePrefetchSchedule(DeletePrefetchScheduleRequest deletePrefetchScheduleRequest)
Deletes a prefetch schedule for a specific playback configuration. If you call
DeletePrefetchSchedule on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code.
For more information about ad prefetching, see Using ad prefetching in the
MediaTailor User Guide.
deletePrefetchScheduleRequest - default CompletableFuture<DeletePrefetchScheduleResponse> deletePrefetchSchedule(Consumer<DeletePrefetchScheduleRequest.Builder> deletePrefetchScheduleRequest)
Deletes a prefetch schedule for a specific playback configuration. If you call
DeletePrefetchSchedule on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code.
For more information about ad prefetching, see Using ad prefetching in the
MediaTailor User Guide.
This is a convenience which creates an instance of the DeletePrefetchScheduleRequest.Builder avoiding the
need to create one manually via DeletePrefetchScheduleRequest.builder()
deletePrefetchScheduleRequest - A Consumer that will call methods on DeletePrefetchScheduleRequest.Builder to create a
request.default CompletableFuture<DeleteProgramResponse> deleteProgram(DeleteProgramRequest deleteProgramRequest)
Deletes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
deleteProgramRequest - default CompletableFuture<DeleteProgramResponse> deleteProgram(Consumer<DeleteProgramRequest.Builder> deleteProgramRequest)
Deletes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
This is a convenience which creates an instance of the DeleteProgramRequest.Builder avoiding the need to
create one manually via DeleteProgramRequest.builder()
deleteProgramRequest - A Consumer that will call methods on DeleteProgramRequest.Builder to create a request.default CompletableFuture<DeleteSourceLocationResponse> deleteSourceLocation(DeleteSourceLocationRequest deleteSourceLocationRequest)
Deletes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
deleteSourceLocationRequest - default CompletableFuture<DeleteSourceLocationResponse> deleteSourceLocation(Consumer<DeleteSourceLocationRequest.Builder> deleteSourceLocationRequest)
Deletes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
This is a convenience which creates an instance of the DeleteSourceLocationRequest.Builder avoiding the
need to create one manually via DeleteSourceLocationRequest.builder()
deleteSourceLocationRequest - A Consumer that will call methods on DeleteSourceLocationRequest.Builder to create a
request.default CompletableFuture<DeleteVodSourceResponse> deleteVodSource(DeleteVodSourceRequest deleteVodSourceRequest)
The video on demand (VOD) source to delete.
deleteVodSourceRequest - default CompletableFuture<DeleteVodSourceResponse> deleteVodSource(Consumer<DeleteVodSourceRequest.Builder> deleteVodSourceRequest)
The video on demand (VOD) source to delete.
This is a convenience which creates an instance of the DeleteVodSourceRequest.Builder avoiding the need
to create one manually via DeleteVodSourceRequest.builder()
deleteVodSourceRequest - A Consumer that will call methods on DeleteVodSourceRequest.Builder to create a request.default CompletableFuture<DescribeChannelResponse> describeChannel(DescribeChannelRequest describeChannelRequest)
Describes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
describeChannelRequest - default CompletableFuture<DescribeChannelResponse> describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest)
Describes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
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<DescribeLiveSourceResponse> describeLiveSource(DescribeLiveSourceRequest describeLiveSourceRequest)
The live source to describe.
describeLiveSourceRequest - default CompletableFuture<DescribeLiveSourceResponse> describeLiveSource(Consumer<DescribeLiveSourceRequest.Builder> describeLiveSourceRequest)
The live source to describe.
This is a convenience which creates an instance of the DescribeLiveSourceRequest.Builder avoiding the
need to create one manually via DescribeLiveSourceRequest.builder()
describeLiveSourceRequest - A Consumer that will call methods on DescribeLiveSourceRequest.Builder to create a
request.default CompletableFuture<DescribeProgramResponse> describeProgram(DescribeProgramRequest describeProgramRequest)
Describes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
describeProgramRequest - default CompletableFuture<DescribeProgramResponse> describeProgram(Consumer<DescribeProgramRequest.Builder> describeProgramRequest)
Describes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
This is a convenience which creates an instance of the DescribeProgramRequest.Builder avoiding the need
to create one manually via DescribeProgramRequest.builder()
describeProgramRequest - A Consumer that will call methods on DescribeProgramRequest.Builder to create a request.default CompletableFuture<DescribeSourceLocationResponse> describeSourceLocation(DescribeSourceLocationRequest describeSourceLocationRequest)
Describes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
describeSourceLocationRequest - default CompletableFuture<DescribeSourceLocationResponse> describeSourceLocation(Consumer<DescribeSourceLocationRequest.Builder> describeSourceLocationRequest)
Describes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
This is a convenience which creates an instance of the DescribeSourceLocationRequest.Builder avoiding the
need to create one manually via DescribeSourceLocationRequest.builder()
describeSourceLocationRequest - A Consumer that will call methods on DescribeSourceLocationRequest.Builder to create a
request.default CompletableFuture<DescribeVodSourceResponse> describeVodSource(DescribeVodSourceRequest describeVodSourceRequest)
Provides details about a specific video on demand (VOD) source in a specific source location.
describeVodSourceRequest - default CompletableFuture<DescribeVodSourceResponse> describeVodSource(Consumer<DescribeVodSourceRequest.Builder> describeVodSourceRequest)
Provides details about a specific video on demand (VOD) source in a specific source location.
This is a convenience which creates an instance of the DescribeVodSourceRequest.Builder avoiding the need
to create one manually via DescribeVodSourceRequest.builder()
describeVodSourceRequest - A Consumer that will call methods on DescribeVodSourceRequest.Builder to create a request.default CompletableFuture<GetChannelPolicyResponse> getChannelPolicy(GetChannelPolicyRequest getChannelPolicyRequest)
Returns the channel's IAM policy. IAM policies are used to control access to your channel.
getChannelPolicyRequest - default CompletableFuture<GetChannelPolicyResponse> getChannelPolicy(Consumer<GetChannelPolicyRequest.Builder> getChannelPolicyRequest)
Returns the channel's IAM policy. IAM policies are used to control access to your channel.
This is a convenience which creates an instance of the GetChannelPolicyRequest.Builder avoiding the need
to create one manually via GetChannelPolicyRequest.builder()
getChannelPolicyRequest - A Consumer that will call methods on GetChannelPolicyRequest.Builder to create a request.default CompletableFuture<GetChannelScheduleResponse> getChannelSchedule(GetChannelScheduleRequest getChannelScheduleRequest)
Retrieves information about your channel's schedule.
getChannelScheduleRequest - default CompletableFuture<GetChannelScheduleResponse> getChannelSchedule(Consumer<GetChannelScheduleRequest.Builder> getChannelScheduleRequest)
Retrieves information about your channel's schedule.
This is a convenience which creates an instance of the GetChannelScheduleRequest.Builder avoiding the
need to create one manually via GetChannelScheduleRequest.builder()
getChannelScheduleRequest - A Consumer that will call methods on GetChannelScheduleRequest.Builder to create a
request.default GetChannelSchedulePublisher getChannelSchedulePaginator(GetChannelScheduleRequest getChannelScheduleRequest)
Retrieves information about your channel's schedule.
This is a variant of
getChannelSchedule(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleRequest)
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.mediatailor.paginators.GetChannelSchedulePublisher publisher = client.getChannelSchedulePaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.GetChannelSchedulePublisher publisher = client.getChannelSchedulePaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleResponse 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
getChannelSchedule(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleRequest)
operation.
getChannelScheduleRequest - default GetChannelSchedulePublisher getChannelSchedulePaginator(Consumer<GetChannelScheduleRequest.Builder> getChannelScheduleRequest)
Retrieves information about your channel's schedule.
This is a variant of
getChannelSchedule(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleRequest)
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.mediatailor.paginators.GetChannelSchedulePublisher publisher = client.getChannelSchedulePaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.GetChannelSchedulePublisher publisher = client.getChannelSchedulePaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleResponse 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
getChannelSchedule(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleRequest)
operation.
This is a convenience which creates an instance of the GetChannelScheduleRequest.Builder avoiding the
need to create one manually via GetChannelScheduleRequest.builder()
getChannelScheduleRequest - A Consumer that will call methods on GetChannelScheduleRequest.Builder to create a
request.default CompletableFuture<GetPlaybackConfigurationResponse> getPlaybackConfiguration(GetPlaybackConfigurationRequest getPlaybackConfigurationRequest)
Retrieves a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
getPlaybackConfigurationRequest - default CompletableFuture<GetPlaybackConfigurationResponse> getPlaybackConfiguration(Consumer<GetPlaybackConfigurationRequest.Builder> getPlaybackConfigurationRequest)
Retrieves a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
This is a convenience which creates an instance of the GetPlaybackConfigurationRequest.Builder avoiding
the need to create one manually via GetPlaybackConfigurationRequest.builder()
getPlaybackConfigurationRequest - A Consumer that will call methods on GetPlaybackConfigurationRequest.Builder to create a
request.default CompletableFuture<GetPrefetchScheduleResponse> getPrefetchSchedule(GetPrefetchScheduleRequest getPrefetchScheduleRequest)
Retrieves a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
getPrefetchScheduleRequest - default CompletableFuture<GetPrefetchScheduleResponse> getPrefetchSchedule(Consumer<GetPrefetchScheduleRequest.Builder> getPrefetchScheduleRequest)
Retrieves a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
This is a convenience which creates an instance of the GetPrefetchScheduleRequest.Builder avoiding the
need to create one manually via GetPrefetchScheduleRequest.builder()
getPrefetchScheduleRequest - A Consumer that will call methods on GetPrefetchScheduleRequest.Builder to create a
request.default CompletableFuture<ListAlertsResponse> listAlerts(ListAlertsRequest listAlertsRequest)
Lists the alerts that are associated with a MediaTailor channel assembly resource.
listAlertsRequest - default CompletableFuture<ListAlertsResponse> listAlerts(Consumer<ListAlertsRequest.Builder> listAlertsRequest)
Lists the alerts that are associated with a MediaTailor channel assembly resource.
This is a convenience which creates an instance of the ListAlertsRequest.Builder avoiding the need to
create one manually via ListAlertsRequest.builder()
listAlertsRequest - A Consumer that will call methods on ListAlertsRequest.Builder to create a request.default ListAlertsPublisher listAlertsPaginator(ListAlertsRequest listAlertsRequest)
Lists the alerts that are associated with a MediaTailor channel assembly resource.
This is a variant of listAlerts(software.amazon.awssdk.services.mediatailor.model.ListAlertsRequest)
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.mediatailor.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListAlertsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListAlertsResponse 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
listAlerts(software.amazon.awssdk.services.mediatailor.model.ListAlertsRequest) operation.
listAlertsRequest - default ListAlertsPublisher listAlertsPaginator(Consumer<ListAlertsRequest.Builder> listAlertsRequest)
Lists the alerts that are associated with a MediaTailor channel assembly resource.
This is a variant of listAlerts(software.amazon.awssdk.services.mediatailor.model.ListAlertsRequest)
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.mediatailor.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListAlertsPublisher publisher = client.listAlertsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListAlertsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListAlertsResponse 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
listAlerts(software.amazon.awssdk.services.mediatailor.model.ListAlertsRequest) operation.
This is a convenience which creates an instance of the ListAlertsRequest.Builder avoiding the need to
create one manually via ListAlertsRequest.builder()
listAlertsRequest - A Consumer that will call methods on ListAlertsRequest.Builder to create a request.default CompletableFuture<ListChannelsResponse> listChannels(ListChannelsRequest listChannelsRequest)
Retrieves information about the channels that are associated with the current AWS account.
listChannelsRequest - default CompletableFuture<ListChannelsResponse> listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest)
Retrieves information about the channels that are associated with the current AWS account.
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 ListChannelsPublisher listChannelsPaginator(ListChannelsRequest listChannelsRequest)
Retrieves information about the channels that are associated with the current AWS account.
This is a variant of listChannels(software.amazon.awssdk.services.mediatailor.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 subscribe helper method
software.amazon.awssdk.services.mediatailor.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListChannelsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListChannelsResponse 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
listChannels(software.amazon.awssdk.services.mediatailor.model.ListChannelsRequest) operation.
listChannelsRequest - default ListChannelsPublisher listChannelsPaginator(Consumer<ListChannelsRequest.Builder> listChannelsRequest)
Retrieves information about the channels that are associated with the current AWS account.
This is a variant of listChannels(software.amazon.awssdk.services.mediatailor.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 subscribe helper method
software.amazon.awssdk.services.mediatailor.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListChannelsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListChannelsResponse 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
listChannels(software.amazon.awssdk.services.mediatailor.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<ListLiveSourcesResponse> listLiveSources(ListLiveSourcesRequest listLiveSourcesRequest)
Lists the live sources contained in a source location. A source represents a piece of content.
listLiveSourcesRequest - default CompletableFuture<ListLiveSourcesResponse> listLiveSources(Consumer<ListLiveSourcesRequest.Builder> listLiveSourcesRequest)
Lists the live sources contained in a source location. A source represents a piece of content.
This is a convenience which creates an instance of the ListLiveSourcesRequest.Builder avoiding the need
to create one manually via ListLiveSourcesRequest.builder()
listLiveSourcesRequest - A Consumer that will call methods on ListLiveSourcesRequest.Builder to create a request.default ListLiveSourcesPublisher listLiveSourcesPaginator(ListLiveSourcesRequest listLiveSourcesRequest)
Lists the live sources contained in a source location. A source represents a piece of content.
This is a variant of
listLiveSources(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesRequest) 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.mediatailor.paginators.ListLiveSourcesPublisher publisher = client.listLiveSourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListLiveSourcesPublisher publisher = client.listLiveSourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesResponse 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
listLiveSources(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesRequest) operation.
listLiveSourcesRequest - default ListLiveSourcesPublisher listLiveSourcesPaginator(Consumer<ListLiveSourcesRequest.Builder> listLiveSourcesRequest)
Lists the live sources contained in a source location. A source represents a piece of content.
This is a variant of
listLiveSources(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesRequest) 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.mediatailor.paginators.ListLiveSourcesPublisher publisher = client.listLiveSourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListLiveSourcesPublisher publisher = client.listLiveSourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesResponse 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
listLiveSources(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesRequest) operation.
This is a convenience which creates an instance of the ListLiveSourcesRequest.Builder avoiding the need
to create one manually via ListLiveSourcesRequest.builder()
listLiveSourcesRequest - A Consumer that will call methods on ListLiveSourcesRequest.Builder to create a request.default CompletableFuture<ListPlaybackConfigurationsResponse> listPlaybackConfigurations(ListPlaybackConfigurationsRequest listPlaybackConfigurationsRequest)
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
listPlaybackConfigurationsRequest - default CompletableFuture<ListPlaybackConfigurationsResponse> listPlaybackConfigurations(Consumer<ListPlaybackConfigurationsRequest.Builder> listPlaybackConfigurationsRequest)
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
This is a convenience which creates an instance of the ListPlaybackConfigurationsRequest.Builder avoiding
the need to create one manually via ListPlaybackConfigurationsRequest.builder()
listPlaybackConfigurationsRequest - A Consumer that will call methods on ListPlaybackConfigurationsRequest.Builder to create a
request.default CompletableFuture<ListPlaybackConfigurationsResponse> listPlaybackConfigurations()
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
default ListPlaybackConfigurationsPublisher listPlaybackConfigurationsPaginator()
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
This is a variant of
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)
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.mediatailor.paginators.ListPlaybackConfigurationsPublisher publisher = client.listPlaybackConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsPublisher publisher = client.listPlaybackConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse 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
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)
operation.
default ListPlaybackConfigurationsPublisher listPlaybackConfigurationsPaginator(ListPlaybackConfigurationsRequest listPlaybackConfigurationsRequest)
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
This is a variant of
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)
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.mediatailor.paginators.ListPlaybackConfigurationsPublisher publisher = client.listPlaybackConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsPublisher publisher = client.listPlaybackConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse 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
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)
operation.
listPlaybackConfigurationsRequest - default ListPlaybackConfigurationsPublisher listPlaybackConfigurationsPaginator(Consumer<ListPlaybackConfigurationsRequest.Builder> listPlaybackConfigurationsRequest)
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
This is a variant of
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)
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.mediatailor.paginators.ListPlaybackConfigurationsPublisher publisher = client.listPlaybackConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsPublisher publisher = client.listPlaybackConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse 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
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)
operation.
This is a convenience which creates an instance of the ListPlaybackConfigurationsRequest.Builder avoiding
the need to create one manually via ListPlaybackConfigurationsRequest.builder()
listPlaybackConfigurationsRequest - A Consumer that will call methods on ListPlaybackConfigurationsRequest.Builder to create a
request.default CompletableFuture<ListPrefetchSchedulesResponse> listPrefetchSchedules(ListPrefetchSchedulesRequest listPrefetchSchedulesRequest)
Lists the prefetch schedules for a playback configuration.
listPrefetchSchedulesRequest - default CompletableFuture<ListPrefetchSchedulesResponse> listPrefetchSchedules(Consumer<ListPrefetchSchedulesRequest.Builder> listPrefetchSchedulesRequest)
Lists the prefetch schedules for a playback configuration.
This is a convenience which creates an instance of the ListPrefetchSchedulesRequest.Builder avoiding the
need to create one manually via ListPrefetchSchedulesRequest.builder()
listPrefetchSchedulesRequest - A Consumer that will call methods on ListPrefetchSchedulesRequest.Builder to create a
request.default ListPrefetchSchedulesPublisher listPrefetchSchedulesPaginator(ListPrefetchSchedulesRequest listPrefetchSchedulesRequest)
Lists the prefetch schedules for a playback configuration.
This is a variant of
listPrefetchSchedules(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesRequest)
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.mediatailor.paginators.ListPrefetchSchedulesPublisher publisher = client.listPrefetchSchedulesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListPrefetchSchedulesPublisher publisher = client.listPrefetchSchedulesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesResponse 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
listPrefetchSchedules(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesRequest)
operation.
listPrefetchSchedulesRequest - default ListPrefetchSchedulesPublisher listPrefetchSchedulesPaginator(Consumer<ListPrefetchSchedulesRequest.Builder> listPrefetchSchedulesRequest)
Lists the prefetch schedules for a playback configuration.
This is a variant of
listPrefetchSchedules(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesRequest)
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.mediatailor.paginators.ListPrefetchSchedulesPublisher publisher = client.listPrefetchSchedulesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListPrefetchSchedulesPublisher publisher = client.listPrefetchSchedulesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesResponse 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
listPrefetchSchedules(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesRequest)
operation.
This is a convenience which creates an instance of the ListPrefetchSchedulesRequest.Builder avoiding the
need to create one manually via ListPrefetchSchedulesRequest.builder()
listPrefetchSchedulesRequest - A Consumer that will call methods on ListPrefetchSchedulesRequest.Builder to create a
request.default CompletableFuture<ListSourceLocationsResponse> listSourceLocations(ListSourceLocationsRequest listSourceLocationsRequest)
Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.
listSourceLocationsRequest - default CompletableFuture<ListSourceLocationsResponse> listSourceLocations(Consumer<ListSourceLocationsRequest.Builder> listSourceLocationsRequest)
Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.
This is a convenience which creates an instance of the ListSourceLocationsRequest.Builder avoiding the
need to create one manually via ListSourceLocationsRequest.builder()
listSourceLocationsRequest - A Consumer that will call methods on ListSourceLocationsRequest.Builder to create a
request.default ListSourceLocationsPublisher listSourceLocationsPaginator(ListSourceLocationsRequest listSourceLocationsRequest)
Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.
This is a variant of
listSourceLocations(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsRequest)
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.mediatailor.paginators.ListSourceLocationsPublisher publisher = client.listSourceLocationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListSourceLocationsPublisher publisher = client.listSourceLocationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsResponse 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
listSourceLocations(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsRequest)
operation.
listSourceLocationsRequest - default ListSourceLocationsPublisher listSourceLocationsPaginator(Consumer<ListSourceLocationsRequest.Builder> listSourceLocationsRequest)
Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.
This is a variant of
listSourceLocations(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsRequest)
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.mediatailor.paginators.ListSourceLocationsPublisher publisher = client.listSourceLocationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListSourceLocationsPublisher publisher = client.listSourceLocationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsResponse 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
listSourceLocations(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsRequest)
operation.
This is a convenience which creates an instance of the ListSourceLocationsRequest.Builder avoiding the
need to create one manually via ListSourceLocationsRequest.builder()
listSourceLocationsRequest - A Consumer that will call methods on ListSourceLocationsRequest.Builder to create a
request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
A list of tags that are associated with this resource. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
A list of tags that are associated with this resource. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
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 ListTagsForResourceRequest.Builder to create a
request.default CompletableFuture<ListVodSourcesResponse> listVodSources(ListVodSourcesRequest listVodSourcesRequest)
Lists the VOD sources contained in a source location. A source represents a piece of content.
listVodSourcesRequest - default CompletableFuture<ListVodSourcesResponse> listVodSources(Consumer<ListVodSourcesRequest.Builder> listVodSourcesRequest)
Lists the VOD sources contained in a source location. A source represents a piece of content.
This is a convenience which creates an instance of the ListVodSourcesRequest.Builder avoiding the need to
create one manually via ListVodSourcesRequest.builder()
listVodSourcesRequest - A Consumer that will call methods on ListVodSourcesRequest.Builder to create a request.default ListVodSourcesPublisher listVodSourcesPaginator(ListVodSourcesRequest listVodSourcesRequest)
Lists the VOD sources contained in a source location. A source represents a piece of content.
This is a variant of
listVodSources(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesRequest) 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.mediatailor.paginators.ListVodSourcesPublisher publisher = client.listVodSourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListVodSourcesPublisher publisher = client.listVodSourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListVodSourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesResponse 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
listVodSources(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesRequest) operation.
listVodSourcesRequest - default ListVodSourcesPublisher listVodSourcesPaginator(Consumer<ListVodSourcesRequest.Builder> listVodSourcesRequest)
Lists the VOD sources contained in a source location. A source represents a piece of content.
This is a variant of
listVodSources(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesRequest) 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.mediatailor.paginators.ListVodSourcesPublisher publisher = client.listVodSourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.mediatailor.paginators.ListVodSourcesPublisher publisher = client.listVodSourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediatailor.model.ListVodSourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesResponse 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
listVodSources(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesRequest) operation.
This is a convenience which creates an instance of the ListVodSourcesRequest.Builder avoiding the need to
create one manually via ListVodSourcesRequest.builder()
listVodSourcesRequest - A Consumer that will call methods on ListVodSourcesRequest.Builder to create a request.default CompletableFuture<PutChannelPolicyResponse> putChannelPolicy(PutChannelPolicyRequest putChannelPolicyRequest)
Creates an IAM policy for the channel. IAM policies are used to control access to your channel.
putChannelPolicyRequest - default CompletableFuture<PutChannelPolicyResponse> putChannelPolicy(Consumer<PutChannelPolicyRequest.Builder> putChannelPolicyRequest)
Creates an IAM policy for the channel. IAM policies are used to control access to your channel.
This is a convenience which creates an instance of the PutChannelPolicyRequest.Builder avoiding the need
to create one manually via PutChannelPolicyRequest.builder()
putChannelPolicyRequest - A Consumer that will call methods on PutChannelPolicyRequest.Builder to create a request.default CompletableFuture<PutPlaybackConfigurationResponse> putPlaybackConfiguration(PutPlaybackConfigurationRequest putPlaybackConfigurationRequest)
Creates a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
putPlaybackConfigurationRequest - default CompletableFuture<PutPlaybackConfigurationResponse> putPlaybackConfiguration(Consumer<PutPlaybackConfigurationRequest.Builder> putPlaybackConfigurationRequest)
Creates a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
This is a convenience which creates an instance of the PutPlaybackConfigurationRequest.Builder avoiding
the need to create one manually via PutPlaybackConfigurationRequest.builder()
putPlaybackConfigurationRequest - A Consumer that will call methods on PutPlaybackConfigurationRequest.Builder to create a
request.default CompletableFuture<StartChannelResponse> startChannel(StartChannelRequest startChannelRequest)
Starts a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
startChannelRequest - default CompletableFuture<StartChannelResponse> startChannel(Consumer<StartChannelRequest.Builder> startChannelRequest)
Starts a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
This is a convenience which creates an instance of the StartChannelRequest.Builder avoiding the need to
create one manually via StartChannelRequest.builder()
startChannelRequest - A Consumer that will call methods on StartChannelRequest.Builder to create a request.default CompletableFuture<StopChannelResponse> stopChannel(StopChannelRequest stopChannelRequest)
Stops a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
stopChannelRequest - default CompletableFuture<StopChannelResponse> stopChannel(Consumer<StopChannelRequest.Builder> stopChannelRequest)
Stops a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
This is a convenience which creates an instance of the StopChannelRequest.Builder avoiding the need to
create one manually via StopChannelRequest.builder()
stopChannelRequest - A Consumer that will call methods on StopChannelRequest.Builder to create a request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
The resource to tag. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
The resource to tag. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
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 TagResourceRequest.Builder to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
The resource to untag.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
The resource to untag.
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 UntagResourceRequest.Builder to create a request.default CompletableFuture<UpdateChannelResponse> updateChannel(UpdateChannelRequest updateChannelRequest)
Updates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
updateChannelRequest - default CompletableFuture<UpdateChannelResponse> updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest)
Updates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
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.default CompletableFuture<UpdateLiveSourceResponse> updateLiveSource(UpdateLiveSourceRequest updateLiveSourceRequest)
Updates a live source's configuration.
updateLiveSourceRequest - default CompletableFuture<UpdateLiveSourceResponse> updateLiveSource(Consumer<UpdateLiveSourceRequest.Builder> updateLiveSourceRequest)
Updates a live source's configuration.
This is a convenience which creates an instance of the UpdateLiveSourceRequest.Builder avoiding the need
to create one manually via UpdateLiveSourceRequest.builder()
updateLiveSourceRequest - A Consumer that will call methods on UpdateLiveSourceRequest.Builder to create a request.default CompletableFuture<UpdateSourceLocationResponse> updateSourceLocation(UpdateSourceLocationRequest updateSourceLocationRequest)
Updates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
updateSourceLocationRequest - default CompletableFuture<UpdateSourceLocationResponse> updateSourceLocation(Consumer<UpdateSourceLocationRequest.Builder> updateSourceLocationRequest)
Updates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
This is a convenience which creates an instance of the UpdateSourceLocationRequest.Builder avoiding the
need to create one manually via UpdateSourceLocationRequest.builder()
updateSourceLocationRequest - A Consumer that will call methods on UpdateSourceLocationRequest.Builder to create a
request.default CompletableFuture<UpdateVodSourceResponse> updateVodSource(UpdateVodSourceRequest updateVodSourceRequest)
Updates a VOD source's configuration.
updateVodSourceRequest - default CompletableFuture<UpdateVodSourceResponse> updateVodSource(Consumer<UpdateVodSourceRequest.Builder> updateVodSourceRequest)
Updates a VOD source's configuration.
This is a convenience which creates an instance of the UpdateVodSourceRequest.Builder avoiding the need
to create one manually via UpdateVodSourceRequest.builder()
updateVodSourceRequest - A Consumer that will call methods on UpdateVodSourceRequest.Builder to create a request.Copyright © 2023. All rights reserved.