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 static builder() method.The asynchronous client performs non-blocking I/O when configured with any
invalid reference
SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call. AWS Elemental MediaPackage
  • Field Details

  • 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 invoke Throwable.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 via ConfigureLogsRequest.builder()

      Parameters:
      configureLogsRequest - A Consumer that will call methods on ConfigureLogsRequest.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 invoke Throwable.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 invoke Throwable.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 via CreateChannelRequest.builder()

      Parameters:
      createChannelRequest - A Consumer that will call methods on CreateChannelRequest.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 invoke Throwable.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 invoke Throwable.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 via CreateHarvestJobRequest.builder()

      Parameters:
      createHarvestJobRequest - A Consumer that will call methods on CreateHarvestJobRequest.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 invoke Throwable.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 invoke Throwable.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 via CreateOriginEndpointRequest.builder()

      Parameters:
      createOriginEndpointRequest - A Consumer that will call methods on CreateOriginEndpointRequest.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 invoke Throwable.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 invoke Throwable.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 via DeleteChannelRequest.builder()

      Parameters:
      deleteChannelRequest - A Consumer that will call methods on DeleteChannelRequest.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 invoke Throwable.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 invoke Throwable.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 via DeleteOriginEndpointRequest.builder()

      Parameters:
      deleteOriginEndpointRequest - A Consumer that will call methods on DeleteOriginEndpointRequest.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 invoke Throwable.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 invoke Throwable.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 via DescribeChannelRequest.builder()

      Parameters:
      describeChannelRequest - A Consumer that will call methods on DescribeChannelRequest.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 invoke Throwable.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 invoke Throwable.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 via DescribeHarvestJobRequest.builder()

      Parameters:
      describeHarvestJobRequest - A Consumer that will call methods on DescribeHarvestJobRequest.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 invoke Throwable.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 invoke Throwable.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 via DescribeOriginEndpointRequest.builder()

      Parameters:
      describeOriginEndpointRequest - A Consumer that will call methods on DescribeOriginEndpointRequest.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 invoke Throwable.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 invoke Throwable.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 via ListChannelsRequest.builder()

      Parameters:
      listChannelsRequest - A Consumer that will call methods on ListChannelsRequest.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 invoke Throwable.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()
      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 invoke Throwable.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()

      This is a variant of listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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(ListChannelsRequest listChannelsRequest)

      This is a variant of listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.mediapackage.paginators.ListChannelsPublisher publisher = client.listChannelsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 via ListChannelsRequest.builder()

      Parameters:
      listChannelsRequest - A Consumer that will call methods on ListChannelsRequest.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 invoke Throwable.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 invoke Throwable.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 via ListHarvestJobsRequest.builder()

      Parameters:
      listHarvestJobsRequest - A Consumer that will call methods on ListHarvestJobsRequest.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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsPublisher publisher = client.listHarvestJobsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsPublisher publisher = client.listHarvestJobsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the 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 via ListHarvestJobsRequest.builder()

      Parameters:
      listHarvestJobsRequest - A Consumer that will call methods on ListHarvestJobsRequest.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 invoke Throwable.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 invoke Throwable.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 via ListOriginEndpointsRequest.builder()

      Parameters:
      listOriginEndpointsRequest - A Consumer that will call methods on ListOriginEndpointsRequest.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 invoke Throwable.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()
      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 invoke Throwable.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()

      This is a variant of listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsPublisher publisher = client.listOriginEndpointsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 via ListOriginEndpointsRequest.builder()

      Parameters:
      listOriginEndpointsRequest - A Consumer that will call methods on ListOriginEndpointsRequest.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 invoke Throwable.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 invoke Throwable.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 via ListTagsForResourceRequest.builder()

      Parameters:
      listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.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 invoke Throwable.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 invoke Throwable.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 via RotateIngestEndpointCredentialsRequest.builder()

      Parameters:
      rotateIngestEndpointCredentialsRequest - A Consumer that will call methods on RotateIngestEndpointCredentialsRequest.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 invoke Throwable.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

      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 via TagResourceRequest.builder()

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.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 invoke Throwable.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 invoke Throwable.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 via UntagResourceRequest.builder()

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.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 invoke Throwable.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 invoke Throwable.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 via UpdateChannelRequest.builder()

      Parameters:
      updateChannelRequest - A Consumer that will call methods on UpdateChannelRequest.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 invoke Throwable.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 invoke Throwable.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 via UpdateOriginEndpointRequest.builder()

      Parameters:
      updateOriginEndpointRequest - A Consumer that will call methods on UpdateOriginEndpointRequest.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 invoke Throwable.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

      default MediaPackageServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static MediaPackageAsyncClient create()
      Create a MediaPackageAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a MediaPackageAsyncClient.