Interface MediaPackageClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface MediaPackageClient extends AwsClient
Service client for accessing MediaPackage. This can be created using the staticbuilder()method. AWS Elemental MediaPackage
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
configureLogs
default ConfigureLogsResponse configureLogs(ConfigureLogsRequest configureLogsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Changes the Channel's properities to configure log subscription- Parameters:
configureLogsRequest- the option to configure log subscription.- Returns:
- Result of the ConfigureLogs operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
configureLogs
default ConfigureLogsResponse configureLogs(Consumer<ConfigureLogsRequest.Builder> configureLogsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Changes the Channel's properities to configure log subscription
This is a convenience which creates an instance of the
ConfigureLogsRequest.Builderavoiding the need to create one manually viaConfigureLogsRequest.builder()- Parameters:
configureLogsRequest- AConsumerthat will call methods onConfigureLogsRequest.Builderto create a request. the option to configure log subscription.- Returns:
- Result of the ConfigureLogs operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createChannel
default CreateChannelResponse createChannel(CreateChannelRequest createChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Creates a new Channel.- Parameters:
createChannelRequest- A new Channel configuration.- Returns:
- Result of the CreateChannel operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createChannel
default CreateChannelResponse createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Creates a new Channel.
This is a convenience which creates an instance of the
CreateChannelRequest.Builderavoiding the need to create one manually viaCreateChannelRequest.builder()- Parameters:
createChannelRequest- AConsumerthat will call methods onCreateChannelRequest.Builderto create a request. A new Channel configuration.- Returns:
- Result of the CreateChannel operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createHarvestJob
default CreateHarvestJobResponse createHarvestJob(CreateHarvestJobRequest createHarvestJobRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Creates a new HarvestJob record.- Parameters:
createHarvestJobRequest- Configuration parameters used to create a new HarvestJob.- Returns:
- Result of the CreateHarvestJob operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createHarvestJob
default CreateHarvestJobResponse createHarvestJob(Consumer<CreateHarvestJobRequest.Builder> createHarvestJobRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Creates a new HarvestJob record.
This is a convenience which creates an instance of the
CreateHarvestJobRequest.Builderavoiding the need to create one manually viaCreateHarvestJobRequest.builder()- Parameters:
createHarvestJobRequest- AConsumerthat will call methods onCreateHarvestJobRequest.Builderto create a request. Configuration parameters used to create a new HarvestJob.- Returns:
- Result of the CreateHarvestJob operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createOriginEndpoint
default CreateOriginEndpointResponse createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Creates a new OriginEndpoint record.- Parameters:
createOriginEndpointRequest- Configuration parameters used to create a new OriginEndpoint.- Returns:
- Result of the CreateOriginEndpoint operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createOriginEndpoint
default CreateOriginEndpointResponse createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Creates a new OriginEndpoint record.
This is a convenience which creates an instance of the
CreateOriginEndpointRequest.Builderavoiding the need to create one manually viaCreateOriginEndpointRequest.builder()- Parameters:
createOriginEndpointRequest- AConsumerthat will call methods onCreateOriginEndpointRequest.Builderto create a request. Configuration parameters used to create a new OriginEndpoint.- Returns:
- Result of the CreateOriginEndpoint operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteChannel
default DeleteChannelResponse deleteChannel(DeleteChannelRequest deleteChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Deletes an existing Channel.- Parameters:
deleteChannelRequest-- Returns:
- Result of the DeleteChannel operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteChannel
default DeleteChannelResponse deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Deletes an existing Channel.
This is a convenience which creates an instance of the
DeleteChannelRequest.Builderavoiding the need to create one manually viaDeleteChannelRequest.builder()- Parameters:
deleteChannelRequest- AConsumerthat will call methods onDeleteChannelRequest.Builderto create a request.- Returns:
- Result of the DeleteChannel operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteOriginEndpoint
default DeleteOriginEndpointResponse deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Deletes an existing OriginEndpoint.- Parameters:
deleteOriginEndpointRequest-- Returns:
- Result of the DeleteOriginEndpoint operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteOriginEndpoint
default DeleteOriginEndpointResponse deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Deletes an existing OriginEndpoint.
This is a convenience which creates an instance of the
DeleteOriginEndpointRequest.Builderavoiding the need to create one manually viaDeleteOriginEndpointRequest.builder()- Parameters:
deleteOriginEndpointRequest- AConsumerthat will call methods onDeleteOriginEndpointRequest.Builderto create a request.- Returns:
- Result of the DeleteOriginEndpoint operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeChannel
default DescribeChannelResponse describeChannel(DescribeChannelRequest describeChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Gets details about a Channel.- Parameters:
describeChannelRequest-- Returns:
- Result of the DescribeChannel operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeChannel
default DescribeChannelResponse describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Gets details about a Channel.
This is a convenience which creates an instance of the
DescribeChannelRequest.Builderavoiding the need to create one manually viaDescribeChannelRequest.builder()- Parameters:
describeChannelRequest- AConsumerthat will call methods onDescribeChannelRequest.Builderto create a request.- Returns:
- Result of the DescribeChannel operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeHarvestJob
default DescribeHarvestJobResponse describeHarvestJob(DescribeHarvestJobRequest describeHarvestJobRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Gets details about an existing HarvestJob.- Parameters:
describeHarvestJobRequest-- Returns:
- Result of the DescribeHarvestJob operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeHarvestJob
default DescribeHarvestJobResponse describeHarvestJob(Consumer<DescribeHarvestJobRequest.Builder> describeHarvestJobRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Gets details about an existing HarvestJob.
This is a convenience which creates an instance of the
DescribeHarvestJobRequest.Builderavoiding the need to create one manually viaDescribeHarvestJobRequest.builder()- Parameters:
describeHarvestJobRequest- AConsumerthat will call methods onDescribeHarvestJobRequest.Builderto create a request.- Returns:
- Result of the DescribeHarvestJob operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeOriginEndpoint
default DescribeOriginEndpointResponse describeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Gets details about an existing OriginEndpoint.- Parameters:
describeOriginEndpointRequest-- Returns:
- Result of the DescribeOriginEndpoint operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeOriginEndpoint
default DescribeOriginEndpointResponse describeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Gets details about an existing OriginEndpoint.
This is a convenience which creates an instance of the
DescribeOriginEndpointRequest.Builderavoiding the need to create one manually viaDescribeOriginEndpointRequest.builder()- Parameters:
describeOriginEndpointRequest- AConsumerthat will call methods onDescribeOriginEndpointRequest.Builderto create a request.- Returns:
- Result of the DescribeOriginEndpoint operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listChannels
default ListChannelsResponse listChannels(ListChannelsRequest listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Returns a collection of Channels.- Parameters:
listChannelsRequest-- Returns:
- Result of the ListChannels operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listChannels
default ListChannelsResponse listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Returns a collection of Channels.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- Result of the ListChannels operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listChannels
default ListChannelsResponse listChannels() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Returns a collection of Channels.- Returns:
- Result of the ListChannels operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
listChannels(ListChannelsRequest), AWS API Documentation
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a variant of
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client .listChannelsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
listChannelsPaginator(ListChannelsRequest), AWS API Documentation
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator(ListChannelsRequest listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a variant of
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client .listChannelsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a variant of
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client .listChannelsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listHarvestJobs
default ListHarvestJobsResponse listHarvestJobs(ListHarvestJobsRequest listHarvestJobsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Returns a collection of HarvestJob records.- Parameters:
listHarvestJobsRequest-- Returns:
- Result of the ListHarvestJobs operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listHarvestJobs
default ListHarvestJobsResponse listHarvestJobs(Consumer<ListHarvestJobsRequest.Builder> listHarvestJobsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Returns a collection of HarvestJob records.
This is a convenience which creates an instance of the
ListHarvestJobsRequest.Builderavoiding the need to create one manually viaListHarvestJobsRequest.builder()- Parameters:
listHarvestJobsRequest- AConsumerthat will call methods onListHarvestJobsRequest.Builderto create a request.- Returns:
- Result of the ListHarvestJobs operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listHarvestJobsPaginator
default ListHarvestJobsIterable listHarvestJobsPaginator(ListHarvestJobsRequest listHarvestJobsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a variant of
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client.listHarvestJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client .listHarvestJobsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client.listHarvestJobsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listHarvestJobsPaginator
default ListHarvestJobsIterable listHarvestJobsPaginator(Consumer<ListHarvestJobsRequest.Builder> listHarvestJobsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a variant of
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client.listHarvestJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client .listHarvestJobsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client.listHarvestJobsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation.
This is a convenience which creates an instance of the
ListHarvestJobsRequest.Builderavoiding the need to create one manually viaListHarvestJobsRequest.builder()- Parameters:
listHarvestJobsRequest- AConsumerthat will call methods onListHarvestJobsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listOriginEndpoints
default ListOriginEndpointsResponse listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Returns a collection of OriginEndpoint records.- Parameters:
listOriginEndpointsRequest-- Returns:
- Result of the ListOriginEndpoints operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listOriginEndpoints
default ListOriginEndpointsResponse listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Returns a collection of OriginEndpoint records.
This is a convenience which creates an instance of the
ListOriginEndpointsRequest.Builderavoiding the need to create one manually viaListOriginEndpointsRequest.builder()- Parameters:
listOriginEndpointsRequest- AConsumerthat will call methods onListOriginEndpointsRequest.Builderto create a request.- Returns:
- Result of the ListOriginEndpoints operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listOriginEndpoints
default ListOriginEndpointsResponse listOriginEndpoints() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Returns a collection of OriginEndpoint records.- Returns:
- Result of the ListOriginEndpoints operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
listOriginEndpoints(ListOriginEndpointsRequest), AWS API Documentation
-
listOriginEndpointsPaginator
default ListOriginEndpointsIterable listOriginEndpointsPaginator() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client .listOriginEndpointsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
listOriginEndpointsPaginator(ListOriginEndpointsRequest), AWS API Documentation
-
listOriginEndpointsPaginator
default ListOriginEndpointsIterable listOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client .listOriginEndpointsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listOriginEndpointsPaginator
default ListOriginEndpointsIterable listOriginEndpointsPaginator(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a variant of
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client .listOriginEndpointsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.
This is a convenience which creates an instance of the
ListOriginEndpointsRequest.Builderavoiding the need to create one manually viaListOriginEndpointsRequest.builder()- Parameters:
listOriginEndpointsRequest- AConsumerthat will call methods onListOriginEndpointsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AwsServiceException, SdkClientException, MediaPackageException
Invokes the ListTagsForResource operation.- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws AwsServiceException, SdkClientException, MediaPackageException
Invokes the ListTagsForResource operation.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
rotateIngestEndpointCredentials
default RotateIngestEndpointCredentialsResponse rotateIngestEndpointCredentials(RotateIngestEndpointCredentialsRequest rotateIngestEndpointCredentialsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.- Parameters:
rotateIngestEndpointCredentialsRequest-- Returns:
- Result of the RotateIngestEndpointCredentials operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
rotateIngestEndpointCredentials
default RotateIngestEndpointCredentialsResponse rotateIngestEndpointCredentials(Consumer<RotateIngestEndpointCredentialsRequest.Builder> rotateIngestEndpointCredentialsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.
This is a convenience which creates an instance of the
RotateIngestEndpointCredentialsRequest.Builderavoiding the need to create one manually viaRotateIngestEndpointCredentialsRequest.builder()- Parameters:
rotateIngestEndpointCredentialsRequest- AConsumerthat will call methods onRotateIngestEndpointCredentialsRequest.Builderto create a request.- Returns:
- Result of the RotateIngestEndpointCredentials operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws AwsServiceException, SdkClientException, MediaPackageException
Invokes the TagResource operation.- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws AwsServiceException, SdkClientException, MediaPackageException
Invokes the TagResource operation.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws AwsServiceException, SdkClientException, MediaPackageException
Invokes the UntagResource operation.- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws AwsServiceException, SdkClientException, MediaPackageException
Invokes the UntagResource operation.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
updateChannel
default UpdateChannelResponse updateChannel(UpdateChannelRequest updateChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Updates an existing Channel.- Parameters:
updateChannelRequest- Configuration parameters used to update the Channel.- Returns:
- Result of the UpdateChannel operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
updateChannel
default UpdateChannelResponse updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Updates an existing Channel.
This is a convenience which creates an instance of the
UpdateChannelRequest.Builderavoiding the need to create one manually viaUpdateChannelRequest.builder()- Parameters:
updateChannelRequest- AConsumerthat will call methods onUpdateChannelRequest.Builderto create a request. Configuration parameters used to update the Channel.- Returns:
- Result of the UpdateChannel operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
updateOriginEndpoint
default UpdateOriginEndpointResponse updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Updates an existing OriginEndpoint.- Parameters:
updateOriginEndpointRequest- Configuration parameters used to update an existing OriginEndpoint.- Returns:
- Result of the UpdateOriginEndpoint operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
updateOriginEndpoint
default UpdateOriginEndpointResponse updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
Updates an existing OriginEndpoint.
This is a convenience which creates an instance of the
UpdateOriginEndpointRequest.Builderavoiding the need to create one manually viaUpdateOriginEndpointRequest.builder()- Parameters:
updateOriginEndpointRequest- AConsumerthat will call methods onUpdateOriginEndpointRequest.Builderto create a request. Configuration parameters used to update an existing OriginEndpoint.- Returns:
- Result of the UpdateOriginEndpoint operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
create
static MediaPackageClient create()
Create aMediaPackageClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static MediaPackageClientBuilder builder()
Create a builder that can be used to configure and create aMediaPackageClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default MediaPackageServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-