@Generated(value="software.amazon.awssdk:codegen") public interface MediaPackageClient extends SdkClient, SdkAutoCloseable
builder() method.
AWS Elemental MediaPackage| Modifier 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.
|
serviceNameclosestatic 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, AwsServiceException, 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.AwsServiceExceptiondefault CreateChannelResponse createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the CreateChannelRequest.Builder avoiding the need to
create one manually via CreateChannelRequest.builder()
createChannelRequest - A Consumer that will call methods on CreateChannelRequest.Builder to create a request. 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.AwsServiceExceptiondefault CreateOriginEndpointResponse createOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault CreateOriginEndpointResponse createOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the CreateOriginEndpointRequest.Builder avoiding the
need to create one manually via CreateOriginEndpointRequest.builder()
createOriginEndpointRequest - A Consumer that will call methods on CreateOriginEndpointRequest.Builder to create a
request. 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.AwsServiceExceptiondefault DeleteChannelResponse deleteChannel(DeleteChannelRequest deleteChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault DeleteChannelResponse deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the DeleteChannelRequest.Builder avoiding the need to
create one manually via DeleteChannelRequest.builder()
deleteChannelRequest - A Consumer that will call methods on DeleteChannelRequest.Builder to create a request.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.AwsServiceExceptiondefault DeleteOriginEndpointResponse deleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault DeleteOriginEndpointResponse deleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the DeleteOriginEndpointRequest.Builder avoiding the
need to create one manually via DeleteOriginEndpointRequest.builder()
deleteOriginEndpointRequest - A Consumer that will call methods on DeleteOriginEndpointRequest.Builder to create a
request.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.AwsServiceExceptiondefault DescribeChannelResponse describeChannel(DescribeChannelRequest describeChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault DescribeChannelResponse describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the DescribeChannelRequest.Builder avoiding the need
to create one manually via DescribeChannelRequest.builder()
describeChannelRequest - A Consumer that will call methods on DescribeChannelRequest.Builder to create a request.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.AwsServiceExceptiondefault DescribeOriginEndpointResponse describeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault DescribeOriginEndpointResponse describeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the DescribeOriginEndpointRequest.Builder avoiding the
need to create one manually via DescribeOriginEndpointRequest.builder()
describeOriginEndpointRequest - A Consumer that will call methods on DescribeOriginEndpointRequest.Builder to create a
request.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.AwsServiceExceptiondefault ListChannelsResponse listChannels() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptionlistChannels(ListChannelsRequest),
AWS API
Documentationdefault ListChannelsResponse listChannels(ListChannelsRequest listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault ListChannelsResponse listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the ListChannelsRequest.Builder avoiding the need to
create one manually via ListChannelsRequest.builder()
listChannelsRequest - A Consumer that will call methods on ListChannelsRequest.Builder to create a request.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.AwsServiceExceptiondefault 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
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.AwsServiceExceptiondefault 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
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.AwsServiceExceptionlistChannelsPaginator(ListChannelsRequest),
AWS API
Documentationdefault ListOriginEndpointsResponse listOriginEndpoints() throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptionlistOriginEndpoints(ListOriginEndpointsRequest),
AWS API Documentationdefault ListOriginEndpointsResponse listOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault ListOriginEndpointsResponse listOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the ListOriginEndpointsRequest.Builder avoiding the
need to create one manually via ListOriginEndpointsRequest.builder()
listOriginEndpointsRequest - A Consumer that will call methods on ListOriginEndpointsRequest.Builder to create a
request.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.AwsServiceExceptiondefault 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
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.AwsServiceExceptiondefault 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
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.AwsServiceExceptionlistOriginEndpointsPaginator(ListOriginEndpointsRequest),
AWS API Documentationdefault RotateChannelCredentialsResponse rotateChannelCredentials(RotateChannelCredentialsRequest rotateChannelCredentialsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault RotateChannelCredentialsResponse rotateChannelCredentials(Consumer<RotateChannelCredentialsRequest.Builder> rotateChannelCredentialsRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the RotateChannelCredentialsRequest.Builder avoiding
the need to create one manually via RotateChannelCredentialsRequest.builder()
rotateChannelCredentialsRequest - A Consumer that will call methods on RotateChannelCredentialsRequest.Builder to create a
request.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.AwsServiceExceptiondefault UpdateChannelResponse updateChannel(UpdateChannelRequest updateChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault UpdateChannelResponse updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the UpdateChannelRequest.Builder avoiding the need to
create one manually via UpdateChannelRequest.builder()
updateChannelRequest - A Consumer that will call methods on UpdateChannelRequest.Builder to create a request.
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.AwsServiceExceptiondefault UpdateOriginEndpointResponse updateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, 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.AwsServiceExceptiondefault UpdateOriginEndpointResponse updateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest) throws UnprocessableEntityException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, MediaPackageException
This is a convenience which creates an instance of the UpdateOriginEndpointRequest.Builder avoiding the
need to create one manually via UpdateOriginEndpointRequest.builder()
updateOriginEndpointRequest - A Consumer that will call methods on UpdateOriginEndpointRequest.Builder to create a
request. 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.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.