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