Interface MediaPackageClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
AWS Elemental MediaPackage-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaPackageClientBuilderbuilder()Create a builder that can be used to configure and create aMediaPackageClient.default ConfigureLogsResponseconfigureLogs(Consumer<ConfigureLogsRequest.Builder> configureLogsRequest) Changes the Channel's properities to configure log subscriptiondefault ConfigureLogsResponseconfigureLogs(ConfigureLogsRequest configureLogsRequest) Changes the Channel's properities to configure log subscriptionstatic MediaPackageClientcreate()Create aMediaPackageClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateChannelResponsecreateChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) Creates a new Channel.default CreateChannelResponsecreateChannel(CreateChannelRequest createChannelRequest) Creates a new Channel.default CreateHarvestJobResponsecreateHarvestJob(Consumer<CreateHarvestJobRequest.Builder> createHarvestJobRequest) Creates a new HarvestJob record.default CreateHarvestJobResponsecreateHarvestJob(CreateHarvestJobRequest createHarvestJobRequest) Creates a new HarvestJob record.default CreateOriginEndpointResponsecreateOriginEndpoint(Consumer<CreateOriginEndpointRequest.Builder> createOriginEndpointRequest) Creates a new OriginEndpoint record.default CreateOriginEndpointResponsecreateOriginEndpoint(CreateOriginEndpointRequest createOriginEndpointRequest) Creates a new OriginEndpoint record.default DeleteChannelResponsedeleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) Deletes an existing Channel.default DeleteChannelResponsedeleteChannel(DeleteChannelRequest deleteChannelRequest) Deletes an existing Channel.default DeleteOriginEndpointResponsedeleteOriginEndpoint(Consumer<DeleteOriginEndpointRequest.Builder> deleteOriginEndpointRequest) Deletes an existing OriginEndpoint.default DeleteOriginEndpointResponsedeleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest) Deletes an existing OriginEndpoint.default DescribeChannelResponsedescribeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest) Gets details about a Channel.default DescribeChannelResponsedescribeChannel(DescribeChannelRequest describeChannelRequest) Gets details about a Channel.default DescribeHarvestJobResponsedescribeHarvestJob(Consumer<DescribeHarvestJobRequest.Builder> describeHarvestJobRequest) Gets details about an existing HarvestJob.default DescribeHarvestJobResponsedescribeHarvestJob(DescribeHarvestJobRequest describeHarvestJobRequest) Gets details about an existing HarvestJob.default DescribeOriginEndpointResponsedescribeOriginEndpoint(Consumer<DescribeOriginEndpointRequest.Builder> describeOriginEndpointRequest) Gets details about an existing OriginEndpoint.default DescribeOriginEndpointResponsedescribeOriginEndpoint(DescribeOriginEndpointRequest describeOriginEndpointRequest) Gets details about an existing OriginEndpoint.default ListChannelsResponseReturns a collection of Channels.default ListChannelsResponselistChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest) Returns a collection of Channels.default ListChannelsResponselistChannels(ListChannelsRequest listChannelsRequest) Returns a collection of Channels.default ListChannelsIterableThis is a variant oflistChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation.default ListChannelsIterablelistChannelsPaginator(Consumer<ListChannelsRequest.Builder> listChannelsRequest) This is a variant oflistChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation.default ListChannelsIterablelistChannelsPaginator(ListChannelsRequest listChannelsRequest) This is a variant oflistChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation.default ListHarvestJobsResponselistHarvestJobs(Consumer<ListHarvestJobsRequest.Builder> listHarvestJobsRequest) Returns a collection of HarvestJob records.default ListHarvestJobsResponselistHarvestJobs(ListHarvestJobsRequest listHarvestJobsRequest) Returns a collection of HarvestJob records.default ListHarvestJobsIterablelistHarvestJobsPaginator(Consumer<ListHarvestJobsRequest.Builder> listHarvestJobsRequest) This is a variant oflistHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation.default ListHarvestJobsIterablelistHarvestJobsPaginator(ListHarvestJobsRequest listHarvestJobsRequest) This is a variant oflistHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation.default ListOriginEndpointsResponseReturns a collection of OriginEndpoint records.default ListOriginEndpointsResponselistOriginEndpoints(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) Returns a collection of OriginEndpoint records.default ListOriginEndpointsResponselistOriginEndpoints(ListOriginEndpointsRequest listOriginEndpointsRequest) Returns a collection of OriginEndpoint records.default ListOriginEndpointsIterableThis is a variant oflistOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.default ListOriginEndpointsIterablelistOriginEndpointsPaginator(Consumer<ListOriginEndpointsRequest.Builder> listOriginEndpointsRequest) This is a variant oflistOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.default ListOriginEndpointsIterablelistOriginEndpointsPaginator(ListOriginEndpointsRequest listOriginEndpointsRequest) This is a variant oflistOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Invokes the ListTagsForResource operation.default ListTagsForResourceResponselistTagsForResource(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 ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Invokes the TagResource operation.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Invokes the TagResource operation.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Invokes the UntagResource operation.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Invokes the UntagResource operation.default UpdateChannelResponseupdateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) Updates an existing Channel.default UpdateChannelResponseupdateChannel(UpdateChannelRequest updateChannelRequest) Updates an existing Channel.default UpdateOriginEndpointResponseupdateOriginEndpoint(Consumer<UpdateOriginEndpointRequest.Builder> updateOriginEndpointRequest) Updates an existing OriginEndpoint.default UpdateOriginEndpointResponseupdateOriginEndpoint(UpdateOriginEndpointRequest updateOriginEndpointRequest) Updates an existing OriginEndpoint.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods 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.Builderavoiding the need to create one manually viaConfigureLogsRequest.builder()- Parameters:
configureLogsRequest- AConsumerthat will call methods onConfigureLogsRequest.Builderto create a request. the option to configure log subscription.- Returns:
- Result of the ConfigureLogs operation returned by the service.
- 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.Builderavoiding the need to create one manually viaCreateChannelRequest.builder()- Parameters:
createChannelRequest- AConsumerthat will call methods onCreateChannelRequest.Builderto create a request. A new Channel configuration.- Returns:
- Result of the CreateChannel operation returned by the service.
- 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.Builderavoiding the need to create one manually viaCreateHarvestJobRequest.builder()- Parameters:
createHarvestJobRequest- AConsumerthat will call methods onCreateHarvestJobRequest.Builderto create a request. Configuration parameters used to create a new HarvestJob.- Returns:
- Result of the CreateHarvestJob operation returned by the service.
- 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.Builderavoiding the need to create one manually viaCreateOriginEndpointRequest.builder()- Parameters:
createOriginEndpointRequest- AConsumerthat will call methods onCreateOriginEndpointRequest.Builderto create a request. Configuration parameters used to create a new OriginEndpoint.- Returns:
- Result of the CreateOriginEndpoint operation returned by the service.
- 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.Builderavoiding the need to create one manually viaDeleteChannelRequest.builder()- Parameters:
deleteChannelRequest- AConsumerthat will call methods onDeleteChannelRequest.Builderto create a request.- Returns:
- Result of the DeleteChannel operation returned by the service.
- 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.Builderavoiding the need to create one manually viaDeleteOriginEndpointRequest.builder()- Parameters:
deleteOriginEndpointRequest- AConsumerthat will call methods onDeleteOriginEndpointRequest.Builderto create a request.- Returns:
- Result of the DeleteOriginEndpoint operation returned by the service.
- 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.Builderavoiding the need to create one manually viaDescribeChannelRequest.builder()- Parameters:
describeChannelRequest- AConsumerthat will call methods onDescribeChannelRequest.Builderto create a request.- Returns:
- Result of the DescribeChannel operation returned by the service.
- 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.Builderavoiding the need to create one manually viaDescribeHarvestJobRequest.builder()- Parameters:
describeHarvestJobRequest- AConsumerthat will call methods onDescribeHarvestJobRequest.Builderto create a request.- Returns:
- Result of the DescribeHarvestJob operation returned by the service.
- 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.Builderavoiding the need to create one manually viaDescribeOriginEndpointRequest.builder()- Parameters:
describeOriginEndpointRequest- AConsumerthat will call methods onDescribeOriginEndpointRequest.Builderto create a request.- Returns:
- Result of the DescribeOriginEndpoint operation returned by the service.
- 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.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- Result of the ListChannels operation returned by the service.
- 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 Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client .listChannelsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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 Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client .listChannelsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation.- Parameters:
listChannelsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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 Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client .listChannelsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listChannels(software.amazon.awssdk.services.mediapackage.model.ListChannelsRequest)operation.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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.Builderavoiding the need to create one manually viaListHarvestJobsRequest.builder()- Parameters:
listHarvestJobsRequest- AConsumerthat will call methods onListHarvestJobsRequest.Builderto create a request.- Returns:
- Result of the ListHarvestJobs operation returned by the service.
- 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 Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client.listHarvestJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client .listHarvestJobsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client.listHarvestJobsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation.- Parameters:
listHarvestJobsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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 Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client.listHarvestJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client .listHarvestJobsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListHarvestJobsIterable responses = client.listHarvestJobsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listHarvestJobs(software.amazon.awssdk.services.mediapackage.model.ListHarvestJobsRequest)operation.
This is a convenience which creates an instance of the
ListHarvestJobsRequest.Builderavoiding the need to create one manually viaListHarvestJobsRequest.builder()- Parameters:
listHarvestJobsRequest- AConsumerthat will call methods onListHarvestJobsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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.Builderavoiding the need to create one manually viaListOriginEndpointsRequest.builder()- Parameters:
listOriginEndpointsRequest- AConsumerthat will call methods onListOriginEndpointsRequest.Builderto create a request.- Returns:
- Result of the ListOriginEndpoints operation returned by the service.
- 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 Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client .listOriginEndpointsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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 Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client .listOriginEndpointsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.- Parameters:
listOriginEndpointsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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 Stream
2) Using For loopsoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client .listOriginEndpointsPaginator(request); for (software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediapackage.paginators.ListOriginEndpointsIterable responses = client.listOriginEndpointsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOriginEndpoints(software.amazon.awssdk.services.mediapackage.model.ListOriginEndpointsRequest)operation.
This is a convenience which creates an instance of the
ListOriginEndpointsRequest.Builderavoiding the need to create one manually viaListOriginEndpointsRequest.builder()- Parameters:
listOriginEndpointsRequest- AConsumerthat will call methods onListOriginEndpointsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- 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.Builderavoiding the need to create one manually viaRotateIngestEndpointCredentialsRequest.builder()- Parameters:
rotateIngestEndpointCredentialsRequest- AConsumerthat will call methods onRotateIngestEndpointCredentialsRequest.Builderto create a request.- Returns:
- Result of the RotateIngestEndpointCredentials operation returned by the service.
- 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.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- 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.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- 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.Builderavoiding the need to create one manually viaUpdateChannelRequest.builder()- Parameters:
updateChannelRequest- AConsumerthat will call methods onUpdateChannelRequest.Builderto create a request. Configuration parameters used to update the Channel.- Returns:
- Result of the UpdateChannel operation returned by the service.
- 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.Builderavoiding the need to create one manually viaUpdateOriginEndpointRequest.builder()- Parameters:
updateOriginEndpointRequest- AConsumerthat will call methods onUpdateOriginEndpointRequest.Builderto create a request. Configuration parameters used to update an existing OriginEndpoint.- Returns:
- Result of the UpdateOriginEndpoint operation returned by the service.
- See Also:
-
create
Create aMediaPackageClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aMediaPackageClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-