Interface MediaPackageAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
invalid reference
SdkAsyncHttpClient
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aMediaPackageAsyncClient
.default CompletableFuture
<ConfigureLogsResponse> configureLogs
(Consumer<ConfigureLogsRequest.Builder> configureLogsRequest) Changes the Channel's properities to configure log subscriptiondefault CompletableFuture
<ConfigureLogsResponse> configureLogs
(ConfigureLogsRequest configureLogsRequest) Changes the Channel's properities to configure log subscriptionstatic MediaPackageAsyncClient
create()
Create aMediaPackageAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<CreateChannelResponse> createChannel
(Consumer<CreateChannelRequest.Builder> createChannelRequest) Creates a new Channel.default CompletableFuture
<CreateChannelResponse> createChannel
(CreateChannelRequest createChannelRequest) Creates a new Channel.createHarvestJob
(Consumer<CreateHarvestJobRequest.Builder> createHarvestJobRequest) Creates a new HarvestJob record.createHarvestJob
(CreateHarvestJobRequest createHarvestJobRequest) Creates a new HarvestJob record.createOriginEndpoint
(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest) Creates a new OriginEndpoint record.createOriginEndpoint
(CreateOriginEndpointRequest createOriginEndpointRequest) Creates a new OriginEndpoint record.default CompletableFuture
<DeleteChannelResponse> deleteChannel
(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) Deletes an existing Channel.default CompletableFuture
<DeleteChannelResponse> deleteChannel
(DeleteChannelRequest deleteChannelRequest) Deletes an existing Channel.deleteOriginEndpoint
(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest) Deletes an existing OriginEndpoint.deleteOriginEndpoint
(DeleteOriginEndpointRequest deleteOriginEndpointRequest) Deletes an existing OriginEndpoint.default CompletableFuture
<DescribeChannelResponse> describeChannel
(Consumer<DescribeChannelRequest.Builder> describeChannelRequest) Gets details about a Channel.default CompletableFuture
<DescribeChannelResponse> describeChannel
(DescribeChannelRequest describeChannelRequest) Gets details about a Channel.describeHarvestJob
(Consumer<DescribeHarvestJobRequest.Builder> describeHarvestJobRequest) Gets details about an existing HarvestJob.describeHarvestJob
(DescribeHarvestJobRequest describeHarvestJobRequest) Gets details about an existing HarvestJob.describeOriginEndpoint
(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest) Gets details about an existing OriginEndpoint.describeOriginEndpoint
(DescribeOriginEndpointRequest describeOriginEndpointRequest) Gets details about an existing OriginEndpoint.default CompletableFuture
<ListChannelsResponse> Returns a collection of Channels.default CompletableFuture
<ListChannelsResponse> listChannels
(Consumer<ListChannelsRequest.Builder> listChannelsRequest) Returns a collection of Channels.default CompletableFuture
<ListChannelsResponse> listChannels
(ListChannelsRequest listChannelsRequest) Returns a collection of Channels.default ListChannelsPublisher
This is a variant oflistChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
operation.default ListChannelsPublisher
listChannelsPaginator
(Consumer<ListChannelsRequest.Builder> listChannelsRequest) This is a variant oflistChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
operation.default ListChannelsPublisher
listChannelsPaginator
(ListChannelsRequest listChannelsRequest) This is a variant oflistChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
operation.default CompletableFuture
<ListHarvestJobsResponse> listHarvestJobs
(Consumer<ListHarvestJobsRequest.Builder> listHarvestJobsRequest) Returns a collection of HarvestJob records.default CompletableFuture
<ListHarvestJobsResponse> listHarvestJobs
(ListHarvestJobsRequest listHarvestJobsRequest) Returns a collection of HarvestJob records.default ListHarvestJobsPublisher
listHarvestJobsPaginator
(Consumer<ListHarvestJobsRequest.Builder> listHarvestJobsRequest) This is a variant oflistHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)
operation.default ListHarvestJobsPublisher
listHarvestJobsPaginator
(ListHarvestJobsRequest listHarvestJobsRequest) This is a variant oflistHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)
operation.Returns a collection of OriginEndpoint records.listOriginEndpoints
(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) Returns a collection of OriginEndpoint records.listOriginEndpoints
(ListOriginEndpointsRequest listOriginEndpointsRequest) Returns a collection of OriginEndpoint records.default ListOriginEndpointsPublisher
This is a variant oflistOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
operation.default ListOriginEndpointsPublisher
listOriginEndpointsPaginator
(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) This is a variant oflistOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
operation.default ListOriginEndpointsPublisher
listOriginEndpointsPaginator
(ListOriginEndpointsRequest listOriginEndpointsRequest) This is a variant oflistOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Invokes the ListTagsForResource operation asynchronously.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Invokes the ListTagsForResource operation asynchronously.rotateIngestEndpointCredentials
(Consumer<RotateIngestEndpointCredentialsRequest.Builder> rotateIngestEndpointCredentialsRequest) Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.rotateIngestEndpointCredentials
(RotateIngestEndpointCredentialsRequest rotateIngestEndpointCredentialsRequest) Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Invokes the TagResource operation asynchronously.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Invokes the TagResource operation asynchronously.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Invokes the UntagResource operation asynchronously.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Invokes the UntagResource operation asynchronously.default CompletableFuture
<UpdateChannelResponse> updateChannel
(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) Updates an existing Channel.default CompletableFuture
<UpdateChannelResponse> updateChannel
(UpdateChannelRequest updateChannelRequest) Updates an existing Channel.updateOriginEndpoint
(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest) Updates an existing OriginEndpoint.updateOriginEndpoint
(UpdateOriginEndpointRequest updateOriginEndpointRequest) Updates an existing OriginEndpoint.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaConfigureLogsRequest.builder()
- Parameters:
configureLogsRequest
- AConsumer
that will call methods onConfigureLogsRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
createChannel
default CompletableFuture<CreateChannelResponse> createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) Creates a new Channel.
This is a convenience which creates an instance of the
CreateChannelRequest.Builder
avoiding the need to create one manually viaCreateChannelRequest.builder()
- Parameters:
createChannelRequest
- AConsumer
that will call methods onCreateChannelRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaCreateHarvestJobRequest.builder()
- Parameters:
createHarvestJobRequest
- AConsumer
that will call methods onCreateHarvestJobRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaCreateOriginEndpointRequest.builder()
- Parameters:
createOriginEndpointRequest
- AConsumer
that will call methods onCreateOriginEndpointRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
deleteChannel
default CompletableFuture<DeleteChannelResponse> deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) Deletes an existing Channel.
This is a convenience which creates an instance of the
DeleteChannelRequest.Builder
avoiding the need to create one manually viaDeleteChannelRequest.builder()
- Parameters:
deleteChannelRequest
- AConsumer
that will call methods onDeleteChannelRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
deleteOriginEndpoint
default CompletableFuture<DeleteOriginEndpointResponse> deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest) Deletes an existing OriginEndpoint.
This is a convenience which creates an instance of the
DeleteOriginEndpointRequest.Builder
avoiding the need to create one manually viaDeleteOriginEndpointRequest.builder()
- Parameters:
deleteOriginEndpointRequest
- AConsumer
that will call methods onDeleteOriginEndpointRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaDescribeChannelRequest.builder()
- Parameters:
describeChannelRequest
- AConsumer
that will call methods onDescribeChannelRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaDescribeHarvestJobRequest.builder()
- Parameters:
describeHarvestJobRequest
- AConsumer
that will call methods onDescribeHarvestJobRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaDescribeOriginEndpointRequest.builder()
- Parameters:
describeOriginEndpointRequest
- AConsumer
that will call methods onDescribeOriginEndpointRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaListChannelsRequest.builder()
- Parameters:
listChannelsRequest
- AConsumer
that will call methods onListChannelsRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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 newSubscription
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 methodsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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 newSubscription
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 methodsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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 newSubscription
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 methodsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListChannelsRequest.builder()
- Parameters:
listChannelsRequest
- AConsumer
that will call methods onListChannelsRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaListHarvestJobsRequest.builder()
- Parameters:
listHarvestJobsRequest
- AConsumer
that will call methods onListHarvestJobsRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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 newSubscription
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 methodsoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsPublisher publisher = client.listHarvestJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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 newSubscription
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 methodsoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsPublisher publisher = client.listHarvestJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListHarvestJobsRequest.builder()
- Parameters:
listHarvestJobsRequest
- AConsumer
that will call methods onListHarvestJobsRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaListOriginEndpointsRequest.builder()
- Parameters:
listOriginEndpointsRequest
- AConsumer
that will call methods onListOriginEndpointsRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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 newSubscription
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 methodsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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 newSubscription
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 methodsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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 newSubscription
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 methodsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListOriginEndpointsRequest.builder()
- Parameters:
listOriginEndpointsRequest
- AConsumer
that will call methods onListOriginEndpointsRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaRotateIngestEndpointCredentialsRequest.builder()
- Parameters:
rotateIngestEndpointCredentialsRequest
- AConsumer
that will call methods onRotateIngestEndpointCredentialsRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
tagResource
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
updateChannel
default CompletableFuture<UpdateChannelResponse> updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) Updates an existing Channel.
This is a convenience which creates an instance of the
UpdateChannelRequest.Builder
avoiding the need to create one manually viaUpdateChannelRequest.builder()
- Parameters:
updateChannelRequest
- AConsumer
that will call methods onUpdateChannelRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
updateOriginEndpoint
default CompletableFuture<UpdateOriginEndpointResponse> updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest) Updates an existing OriginEndpoint.
This is a convenience which creates an instance of the
UpdateOriginEndpointRequest.Builder
avoiding the need to create one manually viaUpdateOriginEndpointRequest.builder()
- Parameters:
updateOriginEndpointRequest
- AConsumer
that will call methods onUpdateOriginEndpointRequest.Builder
to 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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- 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:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aMediaPackageAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aMediaPackageAsyncClient
.
-