@Generated(value="software.amazon.awssdk:codegen") public interface MediaPackageClient extends SdkClient, SdkAutoCloseable
builder()
method.
AWS Elemental MediaPackageModifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static MediaPackageClientBuilder |
builder()
Create a builder that can be used to configure and create a
MediaPackageClient . |
static MediaPackageClient |
create()
Create a
MediaPackageClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from
the DefaultCredentialsProvider . |
default CreateChannelResponse |
createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest)
Creates a new Channel.
|
default CreateChannelResponse |
createChannel(CreateChannelRequest createChannelRequest)
Creates a new Channel.
|
default CreateOriginEndpointResponse |
createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest)
Creates a new OriginEndpoint record.
|
default CreateOriginEndpointResponse |
createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest)
Creates a new OriginEndpoint record.
|
default DeleteChannelResponse |
deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest)
Deletes an existing Channel.
|
default DeleteChannelResponse |
deleteChannel(DeleteChannelRequest deleteChannelRequest)
Deletes an existing Channel.
|
default DeleteOriginEndpointResponse |
deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest)
Deletes an existing OriginEndpoint.
|
default DeleteOriginEndpointResponse |
deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest)
Deletes an existing OriginEndpoint.
|
default DescribeChannelResponse |
describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest)
Gets details about a Channel.
|
default DescribeChannelResponse |
describeChannel(DescribeChannelRequest describeChannelRequest)
Gets details about a Channel.
|
default DescribeOriginEndpointResponse |
describeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest)
Gets details about an existing OriginEndpoint.
|
default DescribeOriginEndpointResponse |
describeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest)
Gets details about an existing OriginEndpoint.
|
default ListChannelsResponse |
listChannels()
Returns a collection of Channels.
|
default ListChannelsResponse |
listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest)
Returns a collection of Channels.
|
default ListChannelsResponse |
listChannels(ListChannelsRequest listChannelsRequest)
Returns a collection of Channels.
|
default ListChannelsIterable |
listChannelsPaginator()
Returns a collection of Channels.
|
default ListChannelsIterable |
listChannelsPaginator(ListChannelsRequest listChannelsRequest)
Returns a collection of Channels.
|
default ListOriginEndpointsResponse |
listOriginEndpoints()
Returns a collection of OriginEndpoint records.
|
default ListOriginEndpointsResponse |
listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest)
Returns a collection of OriginEndpoint records.
|
default ListOriginEndpointsResponse |
listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest)
Returns a collection of OriginEndpoint records.
|
default ListOriginEndpointsIterable |
listOriginEndpointsPaginator()
Returns a collection of OriginEndpoint records.
|
default ListOriginEndpointsIterable |
listOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest)
Returns a collection of OriginEndpoint records.
|
default RotateChannelCredentialsResponse |
rotateChannelCredentials(Consumer<RotateChannelCredentialsRequest.Builder> rotateChannelCredentialsRequest)
Changes the Channel ingest username and password.
|
default RotateChannelCredentialsResponse |
rotateChannelCredentials(RotateChannelCredentialsRequest rotateChannelCredentialsRequest)
Changes the Channel ingest username and password.
|
static ServiceMetadata |
serviceMetadata() |
default UpdateChannelResponse |
updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest)
Updates an existing Channel.
|
default UpdateChannelResponse |
updateChannel(UpdateChannelRequest updateChannelRequest)
Updates an existing Channel.
|
default UpdateOriginEndpointResponse |
updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest)
Updates an existing OriginEndpoint.
|
default UpdateOriginEndpointResponse |
updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest)
Updates an existing OriginEndpoint.
|
serviceName
close
static final String SERVICE_NAME
static MediaPackageClient create()
MediaPackageClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from
the DefaultCredentialsProvider
.static MediaPackageClientBuilder builder()
MediaPackageClient
.default CreateChannelResponse createChannel(CreateChannelRequest createChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
createChannelRequest
- A new Channel configuration.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.SdkServiceException
default CreateChannelResponse createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
createChannelRequest
- A new Channel configuration.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.SdkServiceException
default CreateOriginEndpointResponse createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
createOriginEndpointRequest
- Configuration parameters used to create a new OriginEndpoint.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.SdkServiceException
default CreateOriginEndpointResponse createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
createOriginEndpointRequest
- Configuration parameters used to create a new OriginEndpoint.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.SdkServiceException
default DeleteChannelResponse deleteChannel(DeleteChannelRequest deleteChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
deleteChannelRequest
- 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.SdkServiceException
default DeleteChannelResponse deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
deleteChannelRequest
- 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.SdkServiceException
default DeleteOriginEndpointResponse deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
deleteOriginEndpointRequest
- 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.SdkServiceException
default DeleteOriginEndpointResponse deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
deleteOriginEndpointRequest
- 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.SdkServiceException
default DescribeChannelResponse describeChannel(DescribeChannelRequest describeChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
describeChannelRequest
- 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.SdkServiceException
default DescribeChannelResponse describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
describeChannelRequest
- 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.SdkServiceException
default DescribeOriginEndpointResponse describeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
describeOriginEndpointRequest
- 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.SdkServiceException
default DescribeOriginEndpointResponse describeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
describeOriginEndpointRequest
- 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.SdkServiceException
default ListChannelsResponse listChannels() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
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.SdkServiceException
listChannels(ListChannelsRequest)
,
AWS API
Documentationdefault ListChannelsResponse listChannels(ListChannelsRequest listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
listChannelsRequest
- 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.SdkServiceException
default ListChannelsResponse listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
listChannelsRequest
- 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.SdkServiceException
default ListChannelsIterable listChannelsPaginator() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, 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
software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
operation.
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.SdkServiceException
listChannelsPaginator(ListChannelsRequest)
,
AWS API
Documentationdefault ListChannelsIterable listChannelsPaginator(ListChannelsRequest listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, 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
software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)
operation.
listChannelsRequest
- 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.SdkServiceException
default ListOriginEndpointsResponse listOriginEndpoints() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
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.SdkServiceException
listOriginEndpoints(ListOriginEndpointsRequest)
,
AWS API Documentationdefault ListOriginEndpointsResponse listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
listOriginEndpointsRequest
- 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.SdkServiceException
default ListOriginEndpointsResponse listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
listOriginEndpointsRequest
- 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.SdkServiceException
default ListOriginEndpointsIterable listOriginEndpointsPaginator() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, 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
software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
operation.
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.SdkServiceException
listOriginEndpointsPaginator(ListOriginEndpointsRequest)
,
AWS API Documentationdefault ListOriginEndpointsIterable listOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, 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
software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @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 directly
software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)
operation.
listOriginEndpointsRequest
- 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.SdkServiceException
default RotateChannelCredentialsResponse rotateChannelCredentials(RotateChannelCredentialsRequest rotateChannelCredentialsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
rotateChannelCredentialsRequest
- 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.SdkServiceException
default RotateChannelCredentialsResponse rotateChannelCredentials(Consumer<RotateChannelCredentialsRequest.Builder> rotateChannelCredentialsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
rotateChannelCredentialsRequest
- 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.SdkServiceException
default UpdateChannelResponse updateChannel(UpdateChannelRequest updateChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
updateChannelRequest
- Configuration parameters used to update the Channel.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.SdkServiceException
default UpdateChannelResponse updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
updateChannelRequest
- Configuration parameters used to update the Channel.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.SdkServiceException
default UpdateOriginEndpointResponse updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
updateOriginEndpointRequest
- Configuration parameters used to update an existing OriginEndpoint.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.SdkServiceException
default UpdateOriginEndpointResponse updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, SdkServiceException, SdkClientException, MediaPackageException
updateOriginEndpointRequest
- Configuration parameters used to update an existing OriginEndpoint.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.SdkServiceException
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.