@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface ChimeSdkMediaPipelinesAsyncClient extends AwsClient
builder() method.
The Amazon Chime SDK media pipeline APIs in this section allow software developers to create Amazon Chime SDK media pipelines that capture, concatenate, or stream your Amazon Chime SDK meetings. For more information about media pipelines, see Amazon Chime SDK media pipelines.
| 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.default CompletableFuture<CreateMediaCapturePipelineResponse> createMediaCapturePipeline(CreateMediaCapturePipelineRequest createMediaCapturePipelineRequest)
Creates a media pipeline.
createMediaCapturePipelineRequest - default CompletableFuture<CreateMediaCapturePipelineResponse> createMediaCapturePipeline(Consumer<CreateMediaCapturePipelineRequest.Builder> createMediaCapturePipelineRequest)
Creates a media pipeline.
This is a convenience which creates an instance of the CreateMediaCapturePipelineRequest.Builder avoiding
the need to create one manually via CreateMediaCapturePipelineRequest.builder()
createMediaCapturePipelineRequest - A Consumer that will call methods on
CreateMediaCapturePipelineRequest.Builder
to create a request.default CompletableFuture<CreateMediaConcatenationPipelineResponse> createMediaConcatenationPipeline(CreateMediaConcatenationPipelineRequest createMediaConcatenationPipelineRequest)
Creates a media concatenation pipeline.
createMediaConcatenationPipelineRequest - default CompletableFuture<CreateMediaConcatenationPipelineResponse> createMediaConcatenationPipeline(Consumer<CreateMediaConcatenationPipelineRequest.Builder> createMediaConcatenationPipelineRequest)
Creates a media concatenation pipeline.
This is a convenience which creates an instance of the CreateMediaConcatenationPipelineRequest.Builder
avoiding the need to create one manually via CreateMediaConcatenationPipelineRequest.builder()
createMediaConcatenationPipelineRequest - A Consumer that will call methods on
CreateMediaConcatenationPipelineRequest.Builder
to create a request.default CompletableFuture<CreateMediaInsightsPipelineResponse> createMediaInsightsPipeline(CreateMediaInsightsPipelineRequest createMediaInsightsPipelineRequest)
Creates a media insights pipeline.
createMediaInsightsPipelineRequest - default CompletableFuture<CreateMediaInsightsPipelineResponse> createMediaInsightsPipeline(Consumer<CreateMediaInsightsPipelineRequest.Builder> createMediaInsightsPipelineRequest)
Creates a media insights pipeline.
This is a convenience which creates an instance of the CreateMediaInsightsPipelineRequest.Builder
avoiding the need to create one manually via CreateMediaInsightsPipelineRequest.builder()
createMediaInsightsPipelineRequest - A Consumer that will call methods on
CreateMediaInsightsPipelineRequest.Builder
to create a request.default CompletableFuture<CreateMediaInsightsPipelineConfigurationResponse> createMediaInsightsPipelineConfiguration(CreateMediaInsightsPipelineConfigurationRequest createMediaInsightsPipelineConfigurationRequest)
A structure that contains the static configurations for a media insights pipeline.
createMediaInsightsPipelineConfigurationRequest - default CompletableFuture<CreateMediaInsightsPipelineConfigurationResponse> createMediaInsightsPipelineConfiguration(Consumer<CreateMediaInsightsPipelineConfigurationRequest.Builder> createMediaInsightsPipelineConfigurationRequest)
A structure that contains the static configurations for a media insights pipeline.
This is a convenience which creates an instance of the
CreateMediaInsightsPipelineConfigurationRequest.Builder avoiding the need to create one manually via
CreateMediaInsightsPipelineConfigurationRequest.builder()
createMediaInsightsPipelineConfigurationRequest - A Consumer that will call methods on
CreateMediaInsightsPipelineConfigurationRequest.Builder
to create a request.default CompletableFuture<CreateMediaLiveConnectorPipelineResponse> createMediaLiveConnectorPipeline(CreateMediaLiveConnectorPipelineRequest createMediaLiveConnectorPipelineRequest)
Creates a media live connector pipeline in an Amazon Chime SDK meeting.
createMediaLiveConnectorPipelineRequest - default CompletableFuture<CreateMediaLiveConnectorPipelineResponse> createMediaLiveConnectorPipeline(Consumer<CreateMediaLiveConnectorPipelineRequest.Builder> createMediaLiveConnectorPipelineRequest)
Creates a media live connector pipeline in an Amazon Chime SDK meeting.
This is a convenience which creates an instance of the CreateMediaLiveConnectorPipelineRequest.Builder
avoiding the need to create one manually via CreateMediaLiveConnectorPipelineRequest.builder()
createMediaLiveConnectorPipelineRequest - A Consumer that will call methods on
CreateMediaLiveConnectorPipelineRequest.Builder
to create a request.default CompletableFuture<DeleteMediaCapturePipelineResponse> deleteMediaCapturePipeline(DeleteMediaCapturePipelineRequest deleteMediaCapturePipelineRequest)
Deletes the media pipeline.
deleteMediaCapturePipelineRequest - default CompletableFuture<DeleteMediaCapturePipelineResponse> deleteMediaCapturePipeline(Consumer<DeleteMediaCapturePipelineRequest.Builder> deleteMediaCapturePipelineRequest)
Deletes the media pipeline.
This is a convenience which creates an instance of the DeleteMediaCapturePipelineRequest.Builder avoiding
the need to create one manually via DeleteMediaCapturePipelineRequest.builder()
deleteMediaCapturePipelineRequest - A Consumer that will call methods on
DeleteMediaCapturePipelineRequest.Builder
to create a request.default CompletableFuture<DeleteMediaInsightsPipelineConfigurationResponse> deleteMediaInsightsPipelineConfiguration(DeleteMediaInsightsPipelineConfigurationRequest deleteMediaInsightsPipelineConfigurationRequest)
Deletes the specified configuration settings.
deleteMediaInsightsPipelineConfigurationRequest - default CompletableFuture<DeleteMediaInsightsPipelineConfigurationResponse> deleteMediaInsightsPipelineConfiguration(Consumer<DeleteMediaInsightsPipelineConfigurationRequest.Builder> deleteMediaInsightsPipelineConfigurationRequest)
Deletes the specified configuration settings.
This is a convenience which creates an instance of the
DeleteMediaInsightsPipelineConfigurationRequest.Builder avoiding the need to create one manually via
DeleteMediaInsightsPipelineConfigurationRequest.builder()
deleteMediaInsightsPipelineConfigurationRequest - A Consumer that will call methods on
DeleteMediaInsightsPipelineConfigurationRequest.Builder
to create a request.default CompletableFuture<DeleteMediaPipelineResponse> deleteMediaPipeline(DeleteMediaPipelineRequest deleteMediaPipelineRequest)
Deletes the media pipeline.
deleteMediaPipelineRequest - default CompletableFuture<DeleteMediaPipelineResponse> deleteMediaPipeline(Consumer<DeleteMediaPipelineRequest.Builder> deleteMediaPipelineRequest)
Deletes the media pipeline.
This is a convenience which creates an instance of the DeleteMediaPipelineRequest.Builder avoiding the
need to create one manually via DeleteMediaPipelineRequest.builder()
deleteMediaPipelineRequest - A Consumer that will call methods on
DeleteMediaPipelineRequest.Builder to
create a request.default CompletableFuture<GetMediaCapturePipelineResponse> getMediaCapturePipeline(GetMediaCapturePipelineRequest getMediaCapturePipelineRequest)
Gets an existing media pipeline.
getMediaCapturePipelineRequest - default CompletableFuture<GetMediaCapturePipelineResponse> getMediaCapturePipeline(Consumer<GetMediaCapturePipelineRequest.Builder> getMediaCapturePipelineRequest)
Gets an existing media pipeline.
This is a convenience which creates an instance of the GetMediaCapturePipelineRequest.Builder avoiding
the need to create one manually via GetMediaCapturePipelineRequest.builder()
getMediaCapturePipelineRequest - A Consumer that will call methods on
GetMediaCapturePipelineRequest.Builder
to create a request.default CompletableFuture<GetMediaInsightsPipelineConfigurationResponse> getMediaInsightsPipelineConfiguration(GetMediaInsightsPipelineConfigurationRequest getMediaInsightsPipelineConfigurationRequest)
Gets the configuration settings for a media insights pipeline.
getMediaInsightsPipelineConfigurationRequest - default CompletableFuture<GetMediaInsightsPipelineConfigurationResponse> getMediaInsightsPipelineConfiguration(Consumer<GetMediaInsightsPipelineConfigurationRequest.Builder> getMediaInsightsPipelineConfigurationRequest)
Gets the configuration settings for a media insights pipeline.
This is a convenience which creates an instance of the
GetMediaInsightsPipelineConfigurationRequest.Builder avoiding the need to create one manually via
GetMediaInsightsPipelineConfigurationRequest.builder()
getMediaInsightsPipelineConfigurationRequest - A Consumer that will call methods on
GetMediaInsightsPipelineConfigurationRequest.Builder
to create a request.default CompletableFuture<GetMediaPipelineResponse> getMediaPipeline(GetMediaPipelineRequest getMediaPipelineRequest)
Gets an existing media pipeline.
getMediaPipelineRequest - default CompletableFuture<GetMediaPipelineResponse> getMediaPipeline(Consumer<GetMediaPipelineRequest.Builder> getMediaPipelineRequest)
Gets an existing media pipeline.
This is a convenience which creates an instance of the GetMediaPipelineRequest.Builder avoiding the need
to create one manually via GetMediaPipelineRequest.builder()
getMediaPipelineRequest - A Consumer that will call methods on
GetMediaPipelineRequest.Builder to
create a request.default CompletableFuture<ListMediaCapturePipelinesResponse> listMediaCapturePipelines(ListMediaCapturePipelinesRequest listMediaCapturePipelinesRequest)
Returns a list of media pipelines.
listMediaCapturePipelinesRequest - default CompletableFuture<ListMediaCapturePipelinesResponse> listMediaCapturePipelines(Consumer<ListMediaCapturePipelinesRequest.Builder> listMediaCapturePipelinesRequest)
Returns a list of media pipelines.
This is a convenience which creates an instance of the ListMediaCapturePipelinesRequest.Builder avoiding
the need to create one manually via ListMediaCapturePipelinesRequest.builder()
listMediaCapturePipelinesRequest - A Consumer that will call methods on
ListMediaCapturePipelinesRequest.Builder
to create a request.default ListMediaCapturePipelinesPublisher listMediaCapturePipelinesPaginator(ListMediaCapturePipelinesRequest listMediaCapturePipelinesRequest)
Returns a list of media pipelines.
This is a variant of
listMediaCapturePipelines(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaCapturePipelinesRequest)
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.chimesdkmediapipelines.paginators.ListMediaCapturePipelinesPublisher publisher = client.listMediaCapturePipelinesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.chimesdkmediapipelines.paginators.ListMediaCapturePipelinesPublisher publisher = client.listMediaCapturePipelinesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaCapturePipelinesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaCapturePipelinesResponse 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
listMediaCapturePipelines(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaCapturePipelinesRequest)
operation.
listMediaCapturePipelinesRequest - default ListMediaCapturePipelinesPublisher listMediaCapturePipelinesPaginator(Consumer<ListMediaCapturePipelinesRequest.Builder> listMediaCapturePipelinesRequest)
Returns a list of media pipelines.
This is a variant of
listMediaCapturePipelines(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaCapturePipelinesRequest)
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.chimesdkmediapipelines.paginators.ListMediaCapturePipelinesPublisher publisher = client.listMediaCapturePipelinesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.chimesdkmediapipelines.paginators.ListMediaCapturePipelinesPublisher publisher = client.listMediaCapturePipelinesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaCapturePipelinesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaCapturePipelinesResponse 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
listMediaCapturePipelines(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaCapturePipelinesRequest)
operation.
This is a convenience which creates an instance of the ListMediaCapturePipelinesRequest.Builder avoiding
the need to create one manually via ListMediaCapturePipelinesRequest.builder()
listMediaCapturePipelinesRequest - A Consumer that will call methods on
ListMediaCapturePipelinesRequest.Builder
to create a request.default CompletableFuture<ListMediaInsightsPipelineConfigurationsResponse> listMediaInsightsPipelineConfigurations(ListMediaInsightsPipelineConfigurationsRequest listMediaInsightsPipelineConfigurationsRequest)
Lists the available media insights pipeline configurations.
listMediaInsightsPipelineConfigurationsRequest - default CompletableFuture<ListMediaInsightsPipelineConfigurationsResponse> listMediaInsightsPipelineConfigurations(Consumer<ListMediaInsightsPipelineConfigurationsRequest.Builder> listMediaInsightsPipelineConfigurationsRequest)
Lists the available media insights pipeline configurations.
This is a convenience which creates an instance of the
ListMediaInsightsPipelineConfigurationsRequest.Builder avoiding the need to create one manually via
ListMediaInsightsPipelineConfigurationsRequest.builder()
listMediaInsightsPipelineConfigurationsRequest - A Consumer that will call methods on
ListMediaInsightsPipelineConfigurationsRequest.Builder
to create a request.default ListMediaInsightsPipelineConfigurationsPublisher listMediaInsightsPipelineConfigurationsPaginator(ListMediaInsightsPipelineConfigurationsRequest listMediaInsightsPipelineConfigurationsRequest)
Lists the available media insights pipeline configurations.
This is a variant of
listMediaInsightsPipelineConfigurations(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaInsightsPipelineConfigurationsRequest)
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.chimesdkmediapipelines.paginators.ListMediaInsightsPipelineConfigurationsPublisher publisher = client.listMediaInsightsPipelineConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.chimesdkmediapipelines.paginators.ListMediaInsightsPipelineConfigurationsPublisher publisher = client.listMediaInsightsPipelineConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaInsightsPipelineConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaInsightsPipelineConfigurationsResponse 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
listMediaInsightsPipelineConfigurations(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaInsightsPipelineConfigurationsRequest)
operation.
listMediaInsightsPipelineConfigurationsRequest - default ListMediaInsightsPipelineConfigurationsPublisher listMediaInsightsPipelineConfigurationsPaginator(Consumer<ListMediaInsightsPipelineConfigurationsRequest.Builder> listMediaInsightsPipelineConfigurationsRequest)
Lists the available media insights pipeline configurations.
This is a variant of
listMediaInsightsPipelineConfigurations(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaInsightsPipelineConfigurationsRequest)
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.chimesdkmediapipelines.paginators.ListMediaInsightsPipelineConfigurationsPublisher publisher = client.listMediaInsightsPipelineConfigurationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.chimesdkmediapipelines.paginators.ListMediaInsightsPipelineConfigurationsPublisher publisher = client.listMediaInsightsPipelineConfigurationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaInsightsPipelineConfigurationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaInsightsPipelineConfigurationsResponse 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
listMediaInsightsPipelineConfigurations(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaInsightsPipelineConfigurationsRequest)
operation.
This is a convenience which creates an instance of the
ListMediaInsightsPipelineConfigurationsRequest.Builder avoiding the need to create one manually via
ListMediaInsightsPipelineConfigurationsRequest.builder()
listMediaInsightsPipelineConfigurationsRequest - A Consumer that will call methods on
ListMediaInsightsPipelineConfigurationsRequest.Builder
to create a request.default CompletableFuture<ListMediaPipelinesResponse> listMediaPipelines(ListMediaPipelinesRequest listMediaPipelinesRequest)
Returns a list of media pipelines.
listMediaPipelinesRequest - default CompletableFuture<ListMediaPipelinesResponse> listMediaPipelines(Consumer<ListMediaPipelinesRequest.Builder> listMediaPipelinesRequest)
Returns a list of media pipelines.
This is a convenience which creates an instance of the ListMediaPipelinesRequest.Builder avoiding the
need to create one manually via ListMediaPipelinesRequest.builder()
listMediaPipelinesRequest - A Consumer that will call methods on
ListMediaPipelinesRequest.Builder to
create a request.default ListMediaPipelinesPublisher listMediaPipelinesPaginator(ListMediaPipelinesRequest listMediaPipelinesRequest)
Returns a list of media pipelines.
This is a variant of
listMediaPipelines(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaPipelinesRequest)
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.chimesdkmediapipelines.paginators.ListMediaPipelinesPublisher publisher = client.listMediaPipelinesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.chimesdkmediapipelines.paginators.ListMediaPipelinesPublisher publisher = client.listMediaPipelinesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaPipelinesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaPipelinesResponse 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
listMediaPipelines(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaPipelinesRequest)
operation.
listMediaPipelinesRequest - default ListMediaPipelinesPublisher listMediaPipelinesPaginator(Consumer<ListMediaPipelinesRequest.Builder> listMediaPipelinesRequest)
Returns a list of media pipelines.
This is a variant of
listMediaPipelines(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaPipelinesRequest)
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.chimesdkmediapipelines.paginators.ListMediaPipelinesPublisher publisher = client.listMediaPipelinesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.chimesdkmediapipelines.paginators.ListMediaPipelinesPublisher publisher = client.listMediaPipelinesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaPipelinesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaPipelinesResponse 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
listMediaPipelines(software.amazon.awssdk.services.chimesdkmediapipelines.model.ListMediaPipelinesRequest)
operation.
This is a convenience which creates an instance of the ListMediaPipelinesRequest.Builder avoiding the
need to create one manually via ListMediaPipelinesRequest.builder()
listMediaPipelinesRequest - A Consumer that will call methods on
ListMediaPipelinesRequest.Builder to
create a request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags available for a media pipeline.
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Lists the tags available for a media pipeline.
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<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
The ARN of the media pipeline that you want to tag. Consists of the pipeline's endpoint region, resource ID, and pipeline ID.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
The ARN of the media pipeline that you want to tag. Consists of the pipeline's endpoint region, resource ID, and pipeline ID.
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)
Removes any tags from a media pipeline.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes any tags from a media pipeline.
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<UpdateMediaInsightsPipelineConfigurationResponse> updateMediaInsightsPipelineConfiguration(UpdateMediaInsightsPipelineConfigurationRequest updateMediaInsightsPipelineConfigurationRequest)
Updates the media insights pipeline's configuration settings.
updateMediaInsightsPipelineConfigurationRequest - default CompletableFuture<UpdateMediaInsightsPipelineConfigurationResponse> updateMediaInsightsPipelineConfiguration(Consumer<UpdateMediaInsightsPipelineConfigurationRequest.Builder> updateMediaInsightsPipelineConfigurationRequest)
Updates the media insights pipeline's configuration settings.
This is a convenience which creates an instance of the
UpdateMediaInsightsPipelineConfigurationRequest.Builder avoiding the need to create one manually via
UpdateMediaInsightsPipelineConfigurationRequest.builder()
updateMediaInsightsPipelineConfigurationRequest - A Consumer that will call methods on
UpdateMediaInsightsPipelineConfigurationRequest.Builder
to create a request.default CompletableFuture<UpdateMediaInsightsPipelineStatusResponse> updateMediaInsightsPipelineStatus(UpdateMediaInsightsPipelineStatusRequest updateMediaInsightsPipelineStatusRequest)
Updates the status of a media insights pipeline.
updateMediaInsightsPipelineStatusRequest - default CompletableFuture<UpdateMediaInsightsPipelineStatusResponse> updateMediaInsightsPipelineStatus(Consumer<UpdateMediaInsightsPipelineStatusRequest.Builder> updateMediaInsightsPipelineStatusRequest)
Updates the status of a media insights pipeline.
This is a convenience which creates an instance of the UpdateMediaInsightsPipelineStatusRequest.Builder
avoiding the need to create one manually via UpdateMediaInsightsPipelineStatusRequest.builder()
updateMediaInsightsPipelineStatusRequest - A Consumer that will call methods on
UpdateMediaInsightsPipelineStatusRequest.Builder
to create a request.default ChimeSdkMediaPipelinesServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientstatic ChimeSdkMediaPipelinesAsyncClient create()
ChimeSdkMediaPipelinesAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static ChimeSdkMediaPipelinesAsyncClientBuilder builder()
ChimeSdkMediaPipelinesAsyncClient.Copyright © 2023. All rights reserved.