Interface MediaPackageAsyncClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface MediaPackageAsyncClient extends AwsClient
Service client for accessing MediaPackage asynchronously. This can be created using the staticbuilder()method. AWS Elemental MediaPackage
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
configureLogs
default CompletableFuture<ConfigureLogsResponse> configureLogs(ConfigureLogsRequest configureLogsRequest)
Changes the Channel's properities to configure log subscription- Parameters:
configureLogsRequest- the option to configure log subscription.- Returns:
- A Java Future containing the result of the ConfigureLogs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
configureLogs
default CompletableFuture<ConfigureLogsResponse> configureLogs(Consumer<ConfigureLogsRequest.Builder> configureLogsRequest)
Changes the Channel's properities to configure log subscription
This is a convenience which creates an instance of the
ConfigureLogsRequest.Builderavoiding the need to create one manually viaConfigureLogsRequest.builder()- Parameters:
configureLogsRequest- AConsumerthat will call methods onConfigureLogsRequest.Builderto create a request. the option to configure log subscription.- Returns:
- A Java Future containing the result of the ConfigureLogs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createChannel
default CompletableFuture<CreateChannelResponse> createChannel(CreateChannelRequest createChannelRequest)
Creates a new Channel.- Parameters:
createChannelRequest- A new Channel configuration.- Returns:
- A Java Future containing the result of the CreateChannel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createChannel
default CompletableFuture<CreateChannelResponse> createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest)
Creates a new Channel.
This is a convenience which creates an instance of the
CreateChannelRequest.Builderavoiding the need to create one manually viaCreateChannelRequest.builder()- Parameters:
createChannelRequest- AConsumerthat will call methods onCreateChannelRequest.Builderto create a request. A new Channel configuration.- Returns:
- A Java Future containing the result of the CreateChannel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createHarvestJob
default CompletableFuture<CreateHarvestJobResponse> createHarvestJob(CreateHarvestJobRequest createHarvestJobRequest)
Creates a new HarvestJob record.- Parameters:
createHarvestJobRequest- Configuration parameters used to create a new HarvestJob.- Returns:
- A Java Future containing the result of the CreateHarvestJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createHarvestJob
default CompletableFuture<CreateHarvestJobResponse> createHarvestJob(Consumer<CreateHarvestJobRequest.Builder> createHarvestJobRequest)
Creates a new HarvestJob record.
This is a convenience which creates an instance of the
CreateHarvestJobRequest.Builderavoiding the need to create one manually viaCreateHarvestJobRequest.builder()- Parameters:
createHarvestJobRequest- AConsumerthat will call methods onCreateHarvestJobRequest.Builderto create a request. Configuration parameters used to create a new HarvestJob.- Returns:
- A Java Future containing the result of the CreateHarvestJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createOriginEndpoint
default CompletableFuture<CreateOriginEndpointResponse> createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest)
Creates a new OriginEndpoint record.- Parameters:
createOriginEndpointRequest- Configuration parameters used to create a new OriginEndpoint.- Returns:
- A Java Future containing the result of the CreateOriginEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createOriginEndpoint
default CompletableFuture<CreateOriginEndpointResponse> createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest)
Creates a new OriginEndpoint record.
This is a convenience which creates an instance of the
CreateOriginEndpointRequest.Builderavoiding the need to create one manually viaCreateOriginEndpointRequest.builder()- Parameters:
createOriginEndpointRequest- AConsumerthat will call methods onCreateOriginEndpointRequest.Builderto create a request. Configuration parameters used to create a new OriginEndpoint.- Returns:
- A Java Future containing the result of the CreateOriginEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteChannel
default CompletableFuture<DeleteChannelResponse> deleteChannel(DeleteChannelRequest deleteChannelRequest)
Deletes an existing Channel.- Parameters:
deleteChannelRequest-- Returns:
- A Java Future containing the result of the DeleteChannel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteChannel
default CompletableFuture<DeleteChannelResponse> deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest)
Deletes an existing Channel.
This is a convenience which creates an instance of the
DeleteChannelRequest.Builderavoiding the need to create one manually viaDeleteChannelRequest.builder()- Parameters:
deleteChannelRequest- AConsumerthat will call methods onDeleteChannelRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteChannel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteOriginEndpoint
default CompletableFuture<DeleteOriginEndpointResponse> deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest)
Deletes an existing OriginEndpoint.- Parameters:
deleteOriginEndpointRequest-- Returns:
- A Java Future containing the result of the DeleteOriginEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteOriginEndpoint
default CompletableFuture<DeleteOriginEndpointResponse> deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest)
Deletes an existing OriginEndpoint.
This is a convenience which creates an instance of the
DeleteOriginEndpointRequest.Builderavoiding the need to create one manually viaDeleteOriginEndpointRequest.builder()- Parameters:
deleteOriginEndpointRequest- AConsumerthat will call methods onDeleteOriginEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteOriginEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeChannel
default CompletableFuture<DescribeChannelResponse> describeChannel(DescribeChannelRequest describeChannelRequest)
Gets details about a Channel.- Parameters:
describeChannelRequest-- Returns:
- A Java Future containing the result of the DescribeChannel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeChannel
default CompletableFuture<DescribeChannelResponse> describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest)
Gets details about a Channel.
This is a convenience which creates an instance of the
DescribeChannelRequest.Builderavoiding the need to create one manually viaDescribeChannelRequest.builder()- Parameters:
describeChannelRequest- AConsumerthat will call methods onDescribeChannelRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeChannel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeHarvestJob
default CompletableFuture<DescribeHarvestJobResponse> describeHarvestJob(DescribeHarvestJobRequest describeHarvestJobRequest)
Gets details about an existing HarvestJob.- Parameters:
describeHarvestJobRequest-- Returns:
- A Java Future containing the result of the DescribeHarvestJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeHarvestJob
default CompletableFuture<DescribeHarvestJobResponse> describeHarvestJob(Consumer<DescribeHarvestJobRequest.Builder> describeHarvestJobRequest)
Gets details about an existing HarvestJob.
This is a convenience which creates an instance of the
DescribeHarvestJobRequest.Builderavoiding the need to create one manually viaDescribeHarvestJobRequest.builder()- Parameters:
describeHarvestJobRequest- AConsumerthat will call methods onDescribeHarvestJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeHarvestJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeOriginEndpoint
default CompletableFuture<DescribeOriginEndpointResponse> describeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest)
Gets details about an existing OriginEndpoint.- Parameters:
describeOriginEndpointRequest-- Returns:
- A Java Future containing the result of the DescribeOriginEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeOriginEndpoint
default CompletableFuture<DescribeOriginEndpointResponse> describeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest)
Gets details about an existing OriginEndpoint.
This is a convenience which creates an instance of the
DescribeOriginEndpointRequest.Builderavoiding the need to create one manually viaDescribeOriginEndpointRequest.builder()- Parameters:
describeOriginEndpointRequest- AConsumerthat will call methods onDescribeOriginEndpointRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeOriginEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listChannels
default CompletableFuture<ListChannelsResponse> listChannels(ListChannelsRequest listChannelsRequest)
Returns a collection of Channels.- Parameters:
listChannelsRequest-- Returns:
- A Java Future containing the result of the ListChannels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listChannels
default CompletableFuture<ListChannelsResponse> listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest)
Returns a collection of Channels.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListChannels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listChannels
default CompletableFuture<ListChannelsResponse> listChannels()
Returns a collection of Channels.- Returns:
- A Java Future containing the result of the ListChannels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listChannelsPaginator
default ListChannelsPublisher listChannelsPaginator()
This is a variant of
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response) { //... }; });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.mediapackage.model.ListChannelsRequest)operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listChannelsPaginator
default ListChannelsPublisher listChannelsPaginator(ListChannelsRequest listChannelsRequest)
This is a variant of
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response) { //... }; });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.mediapackage.model.ListChannelsRequest)operation.- Parameters:
listChannelsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listChannelsPaginator
default ListChannelsPublisher listChannelsPaginator(Consumer<ListChannelsRequest.Builder> listChannelsRequest)
This is a variant of
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response) { //... }; });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.mediapackage.model.ListChannelsRequest)operation.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listHarvestJobs
default CompletableFuture<ListHarvestJobsResponse> listHarvestJobs(ListHarvestJobsRequest listHarvestJobsRequest)
Returns a collection of HarvestJob records.- Parameters:
listHarvestJobsRequest-- Returns:
- A Java Future containing the result of the ListHarvestJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listHarvestJobs
default CompletableFuture<ListHarvestJobsResponse> listHarvestJobs(Consumer<ListHarvestJobsRequest.Builder> listHarvestJobsRequest)
Returns a collection of HarvestJob records.
This is a convenience which creates an instance of the
ListHarvestJobsRequest.Builderavoiding the need to create one manually viaListHarvestJobsRequest.builder()- Parameters:
listHarvestJobsRequest- AConsumerthat will call methods onListHarvestJobsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListHarvestJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listHarvestJobsPaginator
default ListHarvestJobsPublisher listHarvestJobsPaginator(ListHarvestJobsRequest listHarvestJobsRequest)
This is a variant of
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsPublisher publisher = client.listHarvestJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsPublisher publisher = client.listHarvestJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsResponse response) { //... }; });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
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation.- Parameters:
listHarvestJobsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listHarvestJobsPaginator
default ListHarvestJobsPublisher listHarvestJobsPaginator(Consumer<ListHarvestJobsRequest.Builder> listHarvestJobsRequest)
This is a variant of
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsPublisher publisher = client.listHarvestJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsPublisher publisher = client.listHarvestJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsResponse response) { //... }; });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
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation.
This is a convenience which creates an instance of the
ListHarvestJobsRequest.Builderavoiding the need to create one manually viaListHarvestJobsRequest.builder()- Parameters:
listHarvestJobsRequest- AConsumerthat will call methods onListHarvestJobsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listOriginEndpoints
default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest)
Returns a collection of OriginEndpoint records.- Parameters:
listOriginEndpointsRequest-- Returns:
- A Java Future containing the result of the ListOriginEndpoints operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listOriginEndpoints
default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest)
Returns a collection of OriginEndpoint records.
This is a convenience which creates an instance of the
ListOriginEndpointsRequest.Builderavoiding the need to create one manually viaListOriginEndpointsRequest.builder()- Parameters:
listOriginEndpointsRequest- AConsumerthat will call methods onListOriginEndpointsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListOriginEndpoints operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listOriginEndpoints
default CompletableFuture<ListOriginEndpointsResponse> listOriginEndpoints()
Returns a collection of OriginEndpoint records.- Returns:
- A Java Future containing the result of the ListOriginEndpoints operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listOriginEndpointsPaginator
default ListOriginEndpointsPublisher listOriginEndpointsPaginator()
This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response) { //... }; });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
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listOriginEndpointsPaginator
default ListOriginEndpointsPublisher listOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest)
This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response) { //... }; });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
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.- Parameters:
listOriginEndpointsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listOriginEndpointsPaginator
default ListOriginEndpointsPublisher listOriginEndpointsPaginator(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest)
This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response) { //... }; });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
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.
This is a convenience which creates an instance of the
ListOriginEndpointsRequest.Builderavoiding the need to create one manually viaListOriginEndpointsRequest.builder()- Parameters:
listOriginEndpointsRequest- AConsumerthat will call methods onListOriginEndpointsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Invokes the ListTagsForResource operation asynchronously.- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Invokes the ListTagsForResource operation asynchronously.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
rotateIngestEndpointCredentials
default CompletableFuture<RotateIngestEndpointCredentialsResponse> rotateIngestEndpointCredentials(RotateIngestEndpointCredentialsRequest rotateIngestEndpointCredentialsRequest)
Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.- Parameters:
rotateIngestEndpointCredentialsRequest-- Returns:
- A Java Future containing the result of the RotateIngestEndpointCredentials operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
rotateIngestEndpointCredentials
default CompletableFuture<RotateIngestEndpointCredentialsResponse> rotateIngestEndpointCredentials(Consumer<RotateIngestEndpointCredentialsRequest.Builder> rotateIngestEndpointCredentialsRequest)
Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.
This is a convenience which creates an instance of the
RotateIngestEndpointCredentialsRequest.Builderavoiding the need to create one manually viaRotateIngestEndpointCredentialsRequest.builder()- Parameters:
rotateIngestEndpointCredentialsRequest- AConsumerthat will call methods onRotateIngestEndpointCredentialsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RotateIngestEndpointCredentials operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Invokes the TagResource operation asynchronously.- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Invokes the TagResource operation asynchronously.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Invokes the UntagResource operation asynchronously.- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Invokes the UntagResource operation asynchronously.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateChannel
default CompletableFuture<UpdateChannelResponse> updateChannel(UpdateChannelRequest updateChannelRequest)
Updates an existing Channel.- Parameters:
updateChannelRequest- Configuration parameters used to update the Channel.- Returns:
- A Java Future containing the result of the UpdateChannel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateChannel
default CompletableFuture<UpdateChannelResponse> updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest)
Updates an existing Channel.
This is a convenience which creates an instance of the
UpdateChannelRequest.Builderavoiding the need to create one manually viaUpdateChannelRequest.builder()- Parameters:
updateChannelRequest- AConsumerthat will call methods onUpdateChannelRequest.Builderto create a request. Configuration parameters used to update the Channel.- Returns:
- A Java Future containing the result of the UpdateChannel operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateOriginEndpoint
default CompletableFuture<UpdateOriginEndpointResponse> updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest)
Updates an existing OriginEndpoint.- Parameters:
updateOriginEndpointRequest- Configuration parameters used to update an existing OriginEndpoint.- Returns:
- A Java Future containing the result of the UpdateOriginEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateOriginEndpoint
default CompletableFuture<UpdateOriginEndpointResponse> updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest)
Updates an existing OriginEndpoint.
This is a convenience which creates an instance of the
UpdateOriginEndpointRequest.Builderavoiding the need to create one manually viaUpdateOriginEndpointRequest.builder()- Parameters:
updateOriginEndpointRequest- AConsumerthat will call methods onUpdateOriginEndpointRequest.Builderto create a request. Configuration parameters used to update an existing OriginEndpoint.- Returns:
- A Java Future containing the result of the UpdateOriginEndpoint operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- UnprocessableEntityException The parameters sent in the request are not valid.
- InternalServerErrorException An unexpected error occurred.
- ForbiddenException The client is not authorized to access the requested resource.
- NotFoundException The requested resource does not exist.
- ServiceUnavailableException An unexpected error occurred.
- TooManyRequestsException The client has exceeded their resource or throttling limits.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaPackageException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
serviceClientConfiguration
default MediaPackageServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
create
static MediaPackageAsyncClient create()
Create aMediaPackageAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static MediaPackageAsyncClientBuilder builder()
Create a builder that can be used to configure and create aMediaPackageAsyncClient.
-
-