Interface MediaTailorClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface MediaTailorClient extends AwsClient
Service client for accessing MediaTailor. This can be created using the staticbuilder()method.Use the AWS Elemental MediaTailor SDKs and CLI to configure scalable ad insertion and linear channels. With MediaTailor, you can assemble existing content into a linear stream and serve targeted ads to viewers while maintaining broadcast quality in over-the-top (OTT) video applications. For information about using the service, including detailed information about the settings covered in this guide, see the AWS Elemental MediaTailor User Guide.
Through the SDKs and the CLI you manage AWS Elemental MediaTailor configurations and channels the same as you do through the console. For example, you specify ad insertion behavior and mapping information for the origin server and the ad decision server (ADS).
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
configureLogsForChannel
default ConfigureLogsForChannelResponse configureLogsForChannel(ConfigureLogsForChannelRequest configureLogsForChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Configures Amazon CloudWatch log settings for a channel.
- Parameters:
configureLogsForChannelRequest-- Returns:
- Result of the ConfigureLogsForChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
configureLogsForChannel
default ConfigureLogsForChannelResponse configureLogsForChannel(Consumer<ConfigureLogsForChannelRequest.Builder> configureLogsForChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Configures Amazon CloudWatch log settings for a channel.
This is a convenience which creates an instance of the
ConfigureLogsForChannelRequest.Builderavoiding the need to create one manually viaConfigureLogsForChannelRequest.builder()- Parameters:
configureLogsForChannelRequest- AConsumerthat will call methods onConfigureLogsForChannelRequest.Builderto create a request.- Returns:
- Result of the ConfigureLogsForChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
configureLogsForPlaybackConfiguration
default ConfigureLogsForPlaybackConfigurationResponse configureLogsForPlaybackConfiguration(ConfigureLogsForPlaybackConfigurationRequest configureLogsForPlaybackConfigurationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Defines where AWS Elemental MediaTailor sends logs for the playback configuration.
- Parameters:
configureLogsForPlaybackConfigurationRequest- Configures Amazon CloudWatch log settings for a playback configuration.- Returns:
- Result of the ConfigureLogsForPlaybackConfiguration operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
configureLogsForPlaybackConfiguration
default ConfigureLogsForPlaybackConfigurationResponse configureLogsForPlaybackConfiguration(Consumer<ConfigureLogsForPlaybackConfigurationRequest.Builder> configureLogsForPlaybackConfigurationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Defines where AWS Elemental MediaTailor sends logs for the playback configuration.
This is a convenience which creates an instance of the
ConfigureLogsForPlaybackConfigurationRequest.Builderavoiding the need to create one manually viaConfigureLogsForPlaybackConfigurationRequest.builder()- Parameters:
configureLogsForPlaybackConfigurationRequest- AConsumerthat will call methods onConfigureLogsForPlaybackConfigurationRequest.Builderto create a request. Configures Amazon CloudWatch log settings for a playback configuration.- Returns:
- Result of the ConfigureLogsForPlaybackConfiguration operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createChannel
default CreateChannelResponse createChannel(CreateChannelRequest createChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
- Parameters:
createChannelRequest-- Returns:
- Result of the CreateChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createChannel
default CreateChannelResponse createChannel(Consumer<CreateChannelRequest.Builder> createChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
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.- Returns:
- Result of the CreateChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createLiveSource
default CreateLiveSourceResponse createLiveSource(CreateLiveSourceRequest createLiveSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The live source configuration.
- Parameters:
createLiveSourceRequest-- Returns:
- Result of the CreateLiveSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createLiveSource
default CreateLiveSourceResponse createLiveSource(Consumer<CreateLiveSourceRequest.Builder> createLiveSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The live source configuration.
This is a convenience which creates an instance of the
CreateLiveSourceRequest.Builderavoiding the need to create one manually viaCreateLiveSourceRequest.builder()- Parameters:
createLiveSourceRequest- AConsumerthat will call methods onCreateLiveSourceRequest.Builderto create a request.- Returns:
- Result of the CreateLiveSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createPrefetchSchedule
default CreatePrefetchScheduleResponse createPrefetchSchedule(CreatePrefetchScheduleRequest createPrefetchScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
- Parameters:
createPrefetchScheduleRequest-- Returns:
- Result of the CreatePrefetchSchedule operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createPrefetchSchedule
default CreatePrefetchScheduleResponse createPrefetchSchedule(Consumer<CreatePrefetchScheduleRequest.Builder> createPrefetchScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
This is a convenience which creates an instance of the
CreatePrefetchScheduleRequest.Builderavoiding the need to create one manually viaCreatePrefetchScheduleRequest.builder()- Parameters:
createPrefetchScheduleRequest- AConsumerthat will call methods onCreatePrefetchScheduleRequest.Builderto create a request.- Returns:
- Result of the CreatePrefetchSchedule operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createProgram
default CreateProgramResponse createProgram(CreateProgramRequest createProgramRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
- Parameters:
createProgramRequest-- Returns:
- Result of the CreateProgram operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createProgram
default CreateProgramResponse createProgram(Consumer<CreateProgramRequest.Builder> createProgramRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
This is a convenience which creates an instance of the
CreateProgramRequest.Builderavoiding the need to create one manually viaCreateProgramRequest.builder()- Parameters:
createProgramRequest- AConsumerthat will call methods onCreateProgramRequest.Builderto create a request.- Returns:
- Result of the CreateProgram operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSourceLocation
default CreateSourceLocationResponse createSourceLocation(CreateSourceLocationRequest createSourceLocationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
- Parameters:
createSourceLocationRequest-- Returns:
- Result of the CreateSourceLocation operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSourceLocation
default CreateSourceLocationResponse createSourceLocation(Consumer<CreateSourceLocationRequest.Builder> createSourceLocationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
This is a convenience which creates an instance of the
CreateSourceLocationRequest.Builderavoiding the need to create one manually viaCreateSourceLocationRequest.builder()- Parameters:
createSourceLocationRequest- AConsumerthat will call methods onCreateSourceLocationRequest.Builderto create a request.- Returns:
- Result of the CreateSourceLocation operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createVodSource
default CreateVodSourceResponse createVodSource(CreateVodSourceRequest createVodSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The VOD source configuration parameters.
- Parameters:
createVodSourceRequest-- Returns:
- Result of the CreateVodSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createVodSource
default CreateVodSourceResponse createVodSource(Consumer<CreateVodSourceRequest.Builder> createVodSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The VOD source configuration parameters.
This is a convenience which creates an instance of the
CreateVodSourceRequest.Builderavoiding the need to create one manually viaCreateVodSourceRequest.builder()- Parameters:
createVodSourceRequest- AConsumerthat will call methods onCreateVodSourceRequest.Builderto create a request.- Returns:
- Result of the CreateVodSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteChannel
default DeleteChannelResponse deleteChannel(DeleteChannelRequest deleteChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
- Parameters:
deleteChannelRequest-- Returns:
- Result of the DeleteChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteChannel
default DeleteChannelResponse deleteChannel(Consumer<DeleteChannelRequest.Builder> deleteChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
This is a convenience which creates an instance of the
DeleteChannelRequest.Builderavoiding the need to create one manually viaDeleteChannelRequest.builder()- Parameters:
deleteChannelRequest- AConsumerthat will call methods onDeleteChannelRequest.Builderto create a request.- Returns:
- Result of the DeleteChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteChannelPolicy
default DeleteChannelPolicyResponse deleteChannelPolicy(DeleteChannelPolicyRequest deleteChannelPolicyRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The channel policy to delete.
- Parameters:
deleteChannelPolicyRequest-- Returns:
- Result of the DeleteChannelPolicy operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteChannelPolicy
default DeleteChannelPolicyResponse deleteChannelPolicy(Consumer<DeleteChannelPolicyRequest.Builder> deleteChannelPolicyRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The channel policy to delete.
This is a convenience which creates an instance of the
DeleteChannelPolicyRequest.Builderavoiding the need to create one manually viaDeleteChannelPolicyRequest.builder()- Parameters:
deleteChannelPolicyRequest- AConsumerthat will call methods onDeleteChannelPolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteChannelPolicy operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteLiveSource
default DeleteLiveSourceResponse deleteLiveSource(DeleteLiveSourceRequest deleteLiveSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The live source to delete.
- Parameters:
deleteLiveSourceRequest-- Returns:
- Result of the DeleteLiveSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteLiveSource
default DeleteLiveSourceResponse deleteLiveSource(Consumer<DeleteLiveSourceRequest.Builder> deleteLiveSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The live source to delete.
This is a convenience which creates an instance of the
DeleteLiveSourceRequest.Builderavoiding the need to create one manually viaDeleteLiveSourceRequest.builder()- Parameters:
deleteLiveSourceRequest- AConsumerthat will call methods onDeleteLiveSourceRequest.Builderto create a request.- Returns:
- Result of the DeleteLiveSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deletePlaybackConfiguration
default DeletePlaybackConfigurationResponse deletePlaybackConfiguration(DeletePlaybackConfigurationRequest deletePlaybackConfigurationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
- Parameters:
deletePlaybackConfigurationRequest-- Returns:
- Result of the DeletePlaybackConfiguration operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deletePlaybackConfiguration
default DeletePlaybackConfigurationResponse deletePlaybackConfiguration(Consumer<DeletePlaybackConfigurationRequest.Builder> deletePlaybackConfigurationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
This is a convenience which creates an instance of the
DeletePlaybackConfigurationRequest.Builderavoiding the need to create one manually viaDeletePlaybackConfigurationRequest.builder()- Parameters:
deletePlaybackConfigurationRequest- AConsumerthat will call methods onDeletePlaybackConfigurationRequest.Builderto create a request.- Returns:
- Result of the DeletePlaybackConfiguration operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deletePrefetchSchedule
default DeletePrefetchScheduleResponse deletePrefetchSchedule(DeletePrefetchScheduleRequest deletePrefetchScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a prefetch schedule for a specific playback configuration. If you call
DeletePrefetchScheduleon an expired prefetch schedule, MediaTailor returns an HTTP 404 status code. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.- Parameters:
deletePrefetchScheduleRequest-- Returns:
- Result of the DeletePrefetchSchedule operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deletePrefetchSchedule
default DeletePrefetchScheduleResponse deletePrefetchSchedule(Consumer<DeletePrefetchScheduleRequest.Builder> deletePrefetchScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a prefetch schedule for a specific playback configuration. If you call
DeletePrefetchScheduleon an expired prefetch schedule, MediaTailor returns an HTTP 404 status code. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
This is a convenience which creates an instance of the
DeletePrefetchScheduleRequest.Builderavoiding the need to create one manually viaDeletePrefetchScheduleRequest.builder()- Parameters:
deletePrefetchScheduleRequest- AConsumerthat will call methods onDeletePrefetchScheduleRequest.Builderto create a request.- Returns:
- Result of the DeletePrefetchSchedule operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteProgram
default DeleteProgramResponse deleteProgram(DeleteProgramRequest deleteProgramRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
- Parameters:
deleteProgramRequest-- Returns:
- Result of the DeleteProgram operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteProgram
default DeleteProgramResponse deleteProgram(Consumer<DeleteProgramRequest.Builder> deleteProgramRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
This is a convenience which creates an instance of the
DeleteProgramRequest.Builderavoiding the need to create one manually viaDeleteProgramRequest.builder()- Parameters:
deleteProgramRequest- AConsumerthat will call methods onDeleteProgramRequest.Builderto create a request.- Returns:
- Result of the DeleteProgram operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSourceLocation
default DeleteSourceLocationResponse deleteSourceLocation(DeleteSourceLocationRequest deleteSourceLocationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
- Parameters:
deleteSourceLocationRequest-- Returns:
- Result of the DeleteSourceLocation operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSourceLocation
default DeleteSourceLocationResponse deleteSourceLocation(Consumer<DeleteSourceLocationRequest.Builder> deleteSourceLocationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Deletes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
This is a convenience which creates an instance of the
DeleteSourceLocationRequest.Builderavoiding the need to create one manually viaDeleteSourceLocationRequest.builder()- Parameters:
deleteSourceLocationRequest- AConsumerthat will call methods onDeleteSourceLocationRequest.Builderto create a request.- Returns:
- Result of the DeleteSourceLocation operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteVodSource
default DeleteVodSourceResponse deleteVodSource(DeleteVodSourceRequest deleteVodSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The video on demand (VOD) source to delete.
- Parameters:
deleteVodSourceRequest-- Returns:
- Result of the DeleteVodSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteVodSource
default DeleteVodSourceResponse deleteVodSource(Consumer<DeleteVodSourceRequest.Builder> deleteVodSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The video on demand (VOD) source to delete.
This is a convenience which creates an instance of the
DeleteVodSourceRequest.Builderavoiding the need to create one manually viaDeleteVodSourceRequest.builder()- Parameters:
deleteVodSourceRequest- AConsumerthat will call methods onDeleteVodSourceRequest.Builderto create a request.- Returns:
- Result of the DeleteVodSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeChannel
default DescribeChannelResponse describeChannel(DescribeChannelRequest describeChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Describes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
- Parameters:
describeChannelRequest-- Returns:
- Result of the DescribeChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeChannel
default DescribeChannelResponse describeChannel(Consumer<DescribeChannelRequest.Builder> describeChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Describes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
This is a convenience which creates an instance of the
DescribeChannelRequest.Builderavoiding the need to create one manually viaDescribeChannelRequest.builder()- Parameters:
describeChannelRequest- AConsumerthat will call methods onDescribeChannelRequest.Builderto create a request.- Returns:
- Result of the DescribeChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeLiveSource
default DescribeLiveSourceResponse describeLiveSource(DescribeLiveSourceRequest describeLiveSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The live source to describe.
- Parameters:
describeLiveSourceRequest-- Returns:
- Result of the DescribeLiveSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeLiveSource
default DescribeLiveSourceResponse describeLiveSource(Consumer<DescribeLiveSourceRequest.Builder> describeLiveSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
The live source to describe.
This is a convenience which creates an instance of the
DescribeLiveSourceRequest.Builderavoiding the need to create one manually viaDescribeLiveSourceRequest.builder()- Parameters:
describeLiveSourceRequest- AConsumerthat will call methods onDescribeLiveSourceRequest.Builderto create a request.- Returns:
- Result of the DescribeLiveSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeProgram
default DescribeProgramResponse describeProgram(DescribeProgramRequest describeProgramRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Describes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
- Parameters:
describeProgramRequest-- Returns:
- Result of the DescribeProgram operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeProgram
default DescribeProgramResponse describeProgram(Consumer<DescribeProgramRequest.Builder> describeProgramRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Describes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
This is a convenience which creates an instance of the
DescribeProgramRequest.Builderavoiding the need to create one manually viaDescribeProgramRequest.builder()- Parameters:
describeProgramRequest- AConsumerthat will call methods onDescribeProgramRequest.Builderto create a request.- Returns:
- Result of the DescribeProgram operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSourceLocation
default DescribeSourceLocationResponse describeSourceLocation(DescribeSourceLocationRequest describeSourceLocationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Describes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
- Parameters:
describeSourceLocationRequest-- Returns:
- Result of the DescribeSourceLocation operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSourceLocation
default DescribeSourceLocationResponse describeSourceLocation(Consumer<DescribeSourceLocationRequest.Builder> describeSourceLocationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Describes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
This is a convenience which creates an instance of the
DescribeSourceLocationRequest.Builderavoiding the need to create one manually viaDescribeSourceLocationRequest.builder()- Parameters:
describeSourceLocationRequest- AConsumerthat will call methods onDescribeSourceLocationRequest.Builderto create a request.- Returns:
- Result of the DescribeSourceLocation operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeVodSource
default DescribeVodSourceResponse describeVodSource(DescribeVodSourceRequest describeVodSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Provides details about a specific video on demand (VOD) source in a specific source location.
- Parameters:
describeVodSourceRequest-- Returns:
- Result of the DescribeVodSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeVodSource
default DescribeVodSourceResponse describeVodSource(Consumer<DescribeVodSourceRequest.Builder> describeVodSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Provides details about a specific video on demand (VOD) source in a specific source location.
This is a convenience which creates an instance of the
DescribeVodSourceRequest.Builderavoiding the need to create one manually viaDescribeVodSourceRequest.builder()- Parameters:
describeVodSourceRequest- AConsumerthat will call methods onDescribeVodSourceRequest.Builderto create a request.- Returns:
- Result of the DescribeVodSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getChannelPolicy
default GetChannelPolicyResponse getChannelPolicy(GetChannelPolicyRequest getChannelPolicyRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Returns the channel's IAM policy. IAM policies are used to control access to your channel.
- Parameters:
getChannelPolicyRequest-- Returns:
- Result of the GetChannelPolicy operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getChannelPolicy
default GetChannelPolicyResponse getChannelPolicy(Consumer<GetChannelPolicyRequest.Builder> getChannelPolicyRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Returns the channel's IAM policy. IAM policies are used to control access to your channel.
This is a convenience which creates an instance of the
GetChannelPolicyRequest.Builderavoiding the need to create one manually viaGetChannelPolicyRequest.builder()- Parameters:
getChannelPolicyRequest- AConsumerthat will call methods onGetChannelPolicyRequest.Builderto create a request.- Returns:
- Result of the GetChannelPolicy operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getChannelSchedule
default GetChannelScheduleResponse getChannelSchedule(GetChannelScheduleRequest getChannelScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves information about your channel's schedule.
- Parameters:
getChannelScheduleRequest-- Returns:
- Result of the GetChannelSchedule operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getChannelSchedule
default GetChannelScheduleResponse getChannelSchedule(Consumer<GetChannelScheduleRequest.Builder> getChannelScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves information about your channel's schedule.
This is a convenience which creates an instance of the
GetChannelScheduleRequest.Builderavoiding the need to create one manually viaGetChannelScheduleRequest.builder()- Parameters:
getChannelScheduleRequest- AConsumerthat will call methods onGetChannelScheduleRequest.Builderto create a request.- Returns:
- Result of the GetChannelSchedule operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getChannelSchedulePaginator
default GetChannelScheduleIterable getChannelSchedulePaginator(GetChannelScheduleRequest getChannelScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
getChannelSchedule(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleRequest)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.mediatailor.paginators.GetChannelScheduleIterable responses = client.getChannelSchedulePaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.GetChannelScheduleIterable responses = client .getChannelSchedulePaginator(request); for (software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.GetChannelScheduleIterable responses = client.getChannelSchedulePaginator(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
getChannelSchedule(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleRequest)operation.- Parameters:
getChannelScheduleRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getChannelSchedulePaginator
default GetChannelScheduleIterable getChannelSchedulePaginator(Consumer<GetChannelScheduleRequest.Builder> getChannelScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
getChannelSchedule(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleRequest)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.mediatailor.paginators.GetChannelScheduleIterable responses = client.getChannelSchedulePaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.GetChannelScheduleIterable responses = client .getChannelSchedulePaginator(request); for (software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.GetChannelScheduleIterable responses = client.getChannelSchedulePaginator(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
getChannelSchedule(software.amazon.awssdk.services.mediatailor.model.GetChannelScheduleRequest)operation.
This is a convenience which creates an instance of the
GetChannelScheduleRequest.Builderavoiding the need to create one manually viaGetChannelScheduleRequest.builder()- Parameters:
getChannelScheduleRequest- AConsumerthat will call methods onGetChannelScheduleRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getPlaybackConfiguration
default GetPlaybackConfigurationResponse getPlaybackConfiguration(GetPlaybackConfigurationRequest getPlaybackConfigurationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
- Parameters:
getPlaybackConfigurationRequest-- Returns:
- Result of the GetPlaybackConfiguration operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getPlaybackConfiguration
default GetPlaybackConfigurationResponse getPlaybackConfiguration(Consumer<GetPlaybackConfigurationRequest.Builder> getPlaybackConfigurationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
This is a convenience which creates an instance of the
GetPlaybackConfigurationRequest.Builderavoiding the need to create one manually viaGetPlaybackConfigurationRequest.builder()- Parameters:
getPlaybackConfigurationRequest- AConsumerthat will call methods onGetPlaybackConfigurationRequest.Builderto create a request.- Returns:
- Result of the GetPlaybackConfiguration operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getPrefetchSchedule
default GetPrefetchScheduleResponse getPrefetchSchedule(GetPrefetchScheduleRequest getPrefetchScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
- Parameters:
getPrefetchScheduleRequest-- Returns:
- Result of the GetPrefetchSchedule operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getPrefetchSchedule
default GetPrefetchScheduleResponse getPrefetchSchedule(Consumer<GetPrefetchScheduleRequest.Builder> getPrefetchScheduleRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.
This is a convenience which creates an instance of the
GetPrefetchScheduleRequest.Builderavoiding the need to create one manually viaGetPrefetchScheduleRequest.builder()- Parameters:
getPrefetchScheduleRequest- AConsumerthat will call methods onGetPrefetchScheduleRequest.Builderto create a request.- Returns:
- Result of the GetPrefetchSchedule operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAlerts
default ListAlertsResponse listAlerts(ListAlertsRequest listAlertsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the alerts that are associated with a MediaTailor channel assembly resource.
- Parameters:
listAlertsRequest-- Returns:
- Result of the ListAlerts operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAlerts
default ListAlertsResponse listAlerts(Consumer<ListAlertsRequest.Builder> listAlertsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the alerts that are associated with a MediaTailor channel assembly resource.
This is a convenience which creates an instance of the
ListAlertsRequest.Builderavoiding the need to create one manually viaListAlertsRequest.builder()- Parameters:
listAlertsRequest- AConsumerthat will call methods onListAlertsRequest.Builderto create a request.- Returns:
- Result of the ListAlerts operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAlertsPaginator
default ListAlertsIterable listAlertsPaginator(ListAlertsRequest listAlertsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listAlerts(software.amazon.awssdk.services.mediatailor.model.ListAlertsRequest)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.mediatailor.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListAlertsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListAlertsIterable responses = client.listAlertsPaginator(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
listAlerts(software.amazon.awssdk.services.mediatailor.model.ListAlertsRequest)operation.- Parameters:
listAlertsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAlertsPaginator
default ListAlertsIterable listAlertsPaginator(Consumer<ListAlertsRequest.Builder> listAlertsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listAlerts(software.amazon.awssdk.services.mediatailor.model.ListAlertsRequest)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.mediatailor.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListAlertsIterable responses = client.listAlertsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListAlertsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListAlertsIterable responses = client.listAlertsPaginator(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
listAlerts(software.amazon.awssdk.services.mediatailor.model.ListAlertsRequest)operation.
This is a convenience which creates an instance of the
ListAlertsRequest.Builderavoiding the need to create one manually viaListAlertsRequest.builder()- Parameters:
listAlertsRequest- AConsumerthat will call methods onListAlertsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listChannels
default ListChannelsResponse listChannels(ListChannelsRequest listChannelsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves information about the channels that are associated with the current AWS account.
- Parameters:
listChannelsRequest-- Returns:
- Result of the ListChannels operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listChannels
default ListChannelsResponse listChannels(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves information about the channels that are associated with the current AWS account.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- Result of the ListChannels operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator(ListChannelsRequest listChannelsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listChannels(software.amazon.awssdk.services.mediatailor.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.mediatailor.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.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.mediatailor.model.ListChannelsRequest)operation.- Parameters:
listChannelsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listChannelsPaginator
default ListChannelsIterable listChannelsPaginator(Consumer<ListChannelsRequest.Builder> listChannelsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listChannels(software.amazon.awssdk.services.mediatailor.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.mediatailor.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListChannelsIterable responses = client.listChannelsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListChannelsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.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.mediatailor.model.ListChannelsRequest)operation.
This is a convenience which creates an instance of the
ListChannelsRequest.Builderavoiding the need to create one manually viaListChannelsRequest.builder()- Parameters:
listChannelsRequest- AConsumerthat will call methods onListChannelsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listLiveSources
default ListLiveSourcesResponse listLiveSources(ListLiveSourcesRequest listLiveSourcesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the live sources contained in a source location. A source represents a piece of content.
- Parameters:
listLiveSourcesRequest-- Returns:
- Result of the ListLiveSources operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listLiveSources
default ListLiveSourcesResponse listLiveSources(Consumer<ListLiveSourcesRequest.Builder> listLiveSourcesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the live sources contained in a source location. A source represents a piece of content.
This is a convenience which creates an instance of the
ListLiveSourcesRequest.Builderavoiding the need to create one manually viaListLiveSourcesRequest.builder()- Parameters:
listLiveSourcesRequest- AConsumerthat will call methods onListLiveSourcesRequest.Builderto create a request.- Returns:
- Result of the ListLiveSources operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listLiveSourcesPaginator
default ListLiveSourcesIterable listLiveSourcesPaginator(ListLiveSourcesRequest listLiveSourcesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listLiveSources(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesRequest)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.mediatailor.paginators.ListLiveSourcesIterable responses = client.listLiveSourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListLiveSourcesIterable responses = client .listLiveSourcesPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListLiveSourcesIterable responses = client.listLiveSourcesPaginator(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
listLiveSources(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesRequest)operation.- Parameters:
listLiveSourcesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listLiveSourcesPaginator
default ListLiveSourcesIterable listLiveSourcesPaginator(Consumer<ListLiveSourcesRequest.Builder> listLiveSourcesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listLiveSources(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesRequest)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.mediatailor.paginators.ListLiveSourcesIterable responses = client.listLiveSourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListLiveSourcesIterable responses = client .listLiveSourcesPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListLiveSourcesIterable responses = client.listLiveSourcesPaginator(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
listLiveSources(software.amazon.awssdk.services.mediatailor.model.ListLiveSourcesRequest)operation.
This is a convenience which creates an instance of the
ListLiveSourcesRequest.Builderavoiding the need to create one manually viaListLiveSourcesRequest.builder()- Parameters:
listLiveSourcesRequest- AConsumerthat will call methods onListLiveSourcesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPlaybackConfigurations
default ListPlaybackConfigurationsResponse listPlaybackConfigurations(ListPlaybackConfigurationsRequest listPlaybackConfigurationsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
- Parameters:
listPlaybackConfigurationsRequest-- Returns:
- Result of the ListPlaybackConfigurations operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPlaybackConfigurations
default ListPlaybackConfigurationsResponse listPlaybackConfigurations(Consumer<ListPlaybackConfigurationsRequest.Builder> listPlaybackConfigurationsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
This is a convenience which creates an instance of the
ListPlaybackConfigurationsRequest.Builderavoiding the need to create one manually viaListPlaybackConfigurationsRequest.builder()- Parameters:
listPlaybackConfigurationsRequest- AConsumerthat will call methods onListPlaybackConfigurationsRequest.Builderto create a request.- Returns:
- Result of the ListPlaybackConfigurations operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPlaybackConfigurations
default ListPlaybackConfigurationsResponse listPlaybackConfigurations() throws AwsServiceException, SdkClientException, MediaTailorException
Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.
- Returns:
- Result of the ListPlaybackConfigurations operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listPlaybackConfigurations(ListPlaybackConfigurationsRequest), AWS API Documentation
-
listPlaybackConfigurationsPaginator
default ListPlaybackConfigurationsIterable listPlaybackConfigurationsPaginator() throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)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.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client.listPlaybackConfigurationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client .listPlaybackConfigurationsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client.listPlaybackConfigurationsPaginator(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
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listPlaybackConfigurationsPaginator(ListPlaybackConfigurationsRequest), AWS API Documentation
-
listPlaybackConfigurationsPaginator
default ListPlaybackConfigurationsIterable listPlaybackConfigurationsPaginator(ListPlaybackConfigurationsRequest listPlaybackConfigurationsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)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.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client.listPlaybackConfigurationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client .listPlaybackConfigurationsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client.listPlaybackConfigurationsPaginator(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
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)operation.- Parameters:
listPlaybackConfigurationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPlaybackConfigurationsPaginator
default ListPlaybackConfigurationsIterable listPlaybackConfigurationsPaginator(Consumer<ListPlaybackConfigurationsRequest.Builder> listPlaybackConfigurationsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)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.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client.listPlaybackConfigurationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client .listPlaybackConfigurationsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListPlaybackConfigurationsIterable responses = client.listPlaybackConfigurationsPaginator(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
listPlaybackConfigurations(software.amazon.awssdk.services.mediatailor.model.ListPlaybackConfigurationsRequest)operation.
This is a convenience which creates an instance of the
ListPlaybackConfigurationsRequest.Builderavoiding the need to create one manually viaListPlaybackConfigurationsRequest.builder()- Parameters:
listPlaybackConfigurationsRequest- AConsumerthat will call methods onListPlaybackConfigurationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPrefetchSchedules
default ListPrefetchSchedulesResponse listPrefetchSchedules(ListPrefetchSchedulesRequest listPrefetchSchedulesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the prefetch schedules for a playback configuration.
- Parameters:
listPrefetchSchedulesRequest-- Returns:
- Result of the ListPrefetchSchedules operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPrefetchSchedules
default ListPrefetchSchedulesResponse listPrefetchSchedules(Consumer<ListPrefetchSchedulesRequest.Builder> listPrefetchSchedulesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the prefetch schedules for a playback configuration.
This is a convenience which creates an instance of the
ListPrefetchSchedulesRequest.Builderavoiding the need to create one manually viaListPrefetchSchedulesRequest.builder()- Parameters:
listPrefetchSchedulesRequest- AConsumerthat will call methods onListPrefetchSchedulesRequest.Builderto create a request.- Returns:
- Result of the ListPrefetchSchedules operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPrefetchSchedulesPaginator
default ListPrefetchSchedulesIterable listPrefetchSchedulesPaginator(ListPrefetchSchedulesRequest listPrefetchSchedulesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listPrefetchSchedules(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesRequest)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.mediatailor.paginators.ListPrefetchSchedulesIterable responses = client.listPrefetchSchedulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListPrefetchSchedulesIterable responses = client .listPrefetchSchedulesPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListPrefetchSchedulesIterable responses = client.listPrefetchSchedulesPaginator(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
listPrefetchSchedules(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesRequest)operation.- Parameters:
listPrefetchSchedulesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPrefetchSchedulesPaginator
default ListPrefetchSchedulesIterable listPrefetchSchedulesPaginator(Consumer<ListPrefetchSchedulesRequest.Builder> listPrefetchSchedulesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listPrefetchSchedules(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesRequest)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.mediatailor.paginators.ListPrefetchSchedulesIterable responses = client.listPrefetchSchedulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListPrefetchSchedulesIterable responses = client .listPrefetchSchedulesPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListPrefetchSchedulesIterable responses = client.listPrefetchSchedulesPaginator(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
listPrefetchSchedules(software.amazon.awssdk.services.mediatailor.model.ListPrefetchSchedulesRequest)operation.
This is a convenience which creates an instance of the
ListPrefetchSchedulesRequest.Builderavoiding the need to create one manually viaListPrefetchSchedulesRequest.builder()- Parameters:
listPrefetchSchedulesRequest- AConsumerthat will call methods onListPrefetchSchedulesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSourceLocations
default ListSourceLocationsResponse listSourceLocations(ListSourceLocationsRequest listSourceLocationsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.
- Parameters:
listSourceLocationsRequest-- Returns:
- Result of the ListSourceLocations operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSourceLocations
default ListSourceLocationsResponse listSourceLocations(Consumer<ListSourceLocationsRequest.Builder> listSourceLocationsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.
This is a convenience which creates an instance of the
ListSourceLocationsRequest.Builderavoiding the need to create one manually viaListSourceLocationsRequest.builder()- Parameters:
listSourceLocationsRequest- AConsumerthat will call methods onListSourceLocationsRequest.Builderto create a request.- Returns:
- Result of the ListSourceLocations operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSourceLocationsPaginator
default ListSourceLocationsIterable listSourceLocationsPaginator(ListSourceLocationsRequest listSourceLocationsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listSourceLocations(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsRequest)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.mediatailor.paginators.ListSourceLocationsIterable responses = client.listSourceLocationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListSourceLocationsIterable responses = client .listSourceLocationsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListSourceLocationsIterable responses = client.listSourceLocationsPaginator(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
listSourceLocations(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsRequest)operation.- Parameters:
listSourceLocationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSourceLocationsPaginator
default ListSourceLocationsIterable listSourceLocationsPaginator(Consumer<ListSourceLocationsRequest.Builder> listSourceLocationsRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listSourceLocations(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsRequest)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.mediatailor.paginators.ListSourceLocationsIterable responses = client.listSourceLocationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListSourceLocationsIterable responses = client .listSourceLocationsPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListSourceLocationsIterable responses = client.listSourceLocationsPaginator(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
listSourceLocations(software.amazon.awssdk.services.mediatailor.model.ListSourceLocationsRequest)operation.
This is a convenience which creates an instance of the
ListSourceLocationsRequest.Builderavoiding the need to create one manually viaListSourceLocationsRequest.builder()- Parameters:
listSourceLocationsRequest- AConsumerthat will call methods onListSourceLocationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws BadRequestException, AwsServiceException, SdkClientException, MediaTailorException
A list of tags that are associated with this resource. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
BadRequestException- A request contains unexpected data.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws BadRequestException, AwsServiceException, SdkClientException, MediaTailorException
A list of tags that are associated with this resource. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
BadRequestException- A request contains unexpected data.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listVodSources
default ListVodSourcesResponse listVodSources(ListVodSourcesRequest listVodSourcesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the VOD sources contained in a source location. A source represents a piece of content.
- Parameters:
listVodSourcesRequest-- Returns:
- Result of the ListVodSources operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listVodSources
default ListVodSourcesResponse listVodSources(Consumer<ListVodSourcesRequest.Builder> listVodSourcesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Lists the VOD sources contained in a source location. A source represents a piece of content.
This is a convenience which creates an instance of the
ListVodSourcesRequest.Builderavoiding the need to create one manually viaListVodSourcesRequest.builder()- Parameters:
listVodSourcesRequest- AConsumerthat will call methods onListVodSourcesRequest.Builderto create a request.- Returns:
- Result of the ListVodSources operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listVodSourcesPaginator
default ListVodSourcesIterable listVodSourcesPaginator(ListVodSourcesRequest listVodSourcesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listVodSources(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesRequest)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.mediatailor.paginators.ListVodSourcesIterable responses = client.listVodSourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListVodSourcesIterable responses = client .listVodSourcesPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListVodSourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListVodSourcesIterable responses = client.listVodSourcesPaginator(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
listVodSources(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesRequest)operation.- Parameters:
listVodSourcesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listVodSourcesPaginator
default ListVodSourcesIterable listVodSourcesPaginator(Consumer<ListVodSourcesRequest.Builder> listVodSourcesRequest) throws AwsServiceException, SdkClientException, MediaTailorException
This is a variant of
listVodSources(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesRequest)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.mediatailor.paginators.ListVodSourcesIterable responses = client.listVodSourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.mediatailor.paginators.ListVodSourcesIterable responses = client .listVodSourcesPaginator(request); for (software.amazon.awssdk.services.mediatailor.model.ListVodSourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.mediatailor.paginators.ListVodSourcesIterable responses = client.listVodSourcesPaginator(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
listVodSources(software.amazon.awssdk.services.mediatailor.model.ListVodSourcesRequest)operation.
This is a convenience which creates an instance of the
ListVodSourcesRequest.Builderavoiding the need to create one manually viaListVodSourcesRequest.builder()- Parameters:
listVodSourcesRequest- AConsumerthat will call methods onListVodSourcesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putChannelPolicy
default PutChannelPolicyResponse putChannelPolicy(PutChannelPolicyRequest putChannelPolicyRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates an IAM policy for the channel. IAM policies are used to control access to your channel.
- Parameters:
putChannelPolicyRequest-- Returns:
- Result of the PutChannelPolicy operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putChannelPolicy
default PutChannelPolicyResponse putChannelPolicy(Consumer<PutChannelPolicyRequest.Builder> putChannelPolicyRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates an IAM policy for the channel. IAM policies are used to control access to your channel.
This is a convenience which creates an instance of the
PutChannelPolicyRequest.Builderavoiding the need to create one manually viaPutChannelPolicyRequest.builder()- Parameters:
putChannelPolicyRequest- AConsumerthat will call methods onPutChannelPolicyRequest.Builderto create a request.- Returns:
- Result of the PutChannelPolicy operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putPlaybackConfiguration
default PutPlaybackConfigurationResponse putPlaybackConfiguration(PutPlaybackConfigurationRequest putPlaybackConfigurationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
- Parameters:
putPlaybackConfigurationRequest-- Returns:
- Result of the PutPlaybackConfiguration operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putPlaybackConfiguration
default PutPlaybackConfigurationResponse putPlaybackConfiguration(Consumer<PutPlaybackConfigurationRequest.Builder> putPlaybackConfigurationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Creates a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.
This is a convenience which creates an instance of the
PutPlaybackConfigurationRequest.Builderavoiding the need to create one manually viaPutPlaybackConfigurationRequest.builder()- Parameters:
putPlaybackConfigurationRequest- AConsumerthat will call methods onPutPlaybackConfigurationRequest.Builderto create a request.- Returns:
- Result of the PutPlaybackConfiguration operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startChannel
default StartChannelResponse startChannel(StartChannelRequest startChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Starts a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
- Parameters:
startChannelRequest-- Returns:
- Result of the StartChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startChannel
default StartChannelResponse startChannel(Consumer<StartChannelRequest.Builder> startChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Starts a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
This is a convenience which creates an instance of the
StartChannelRequest.Builderavoiding the need to create one manually viaStartChannelRequest.builder()- Parameters:
startChannelRequest- AConsumerthat will call methods onStartChannelRequest.Builderto create a request.- Returns:
- Result of the StartChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
stopChannel
default StopChannelResponse stopChannel(StopChannelRequest stopChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Stops a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
- Parameters:
stopChannelRequest-- Returns:
- Result of the StopChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
stopChannel
default StopChannelResponse stopChannel(Consumer<StopChannelRequest.Builder> stopChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Stops a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
This is a convenience which creates an instance of the
StopChannelRequest.Builderavoiding the need to create one manually viaStopChannelRequest.builder()- Parameters:
stopChannelRequest- AConsumerthat will call methods onStopChannelRequest.Builderto create a request.- Returns:
- Result of the StopChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws BadRequestException, AwsServiceException, SdkClientException, MediaTailorException
The resource to tag. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
BadRequestException- A request contains unexpected data.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws BadRequestException, AwsServiceException, SdkClientException, MediaTailorException
The resource to tag. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
BadRequestException- A request contains unexpected data.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws BadRequestException, AwsServiceException, SdkClientException, MediaTailorException
The resource to untag.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
BadRequestException- A request contains unexpected data.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws BadRequestException, AwsServiceException, SdkClientException, MediaTailorException
The resource to untag.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
BadRequestException- A request contains unexpected data.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateChannel
default UpdateChannelResponse updateChannel(UpdateChannelRequest updateChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
- Parameters:
updateChannelRequest-- Returns:
- Result of the UpdateChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateChannel
default UpdateChannelResponse updateChannel(Consumer<UpdateChannelRequest.Builder> updateChannelRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
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.- Returns:
- Result of the UpdateChannel operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateLiveSource
default UpdateLiveSourceResponse updateLiveSource(UpdateLiveSourceRequest updateLiveSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a live source's configuration.
- Parameters:
updateLiveSourceRequest-- Returns:
- Result of the UpdateLiveSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateLiveSource
default UpdateLiveSourceResponse updateLiveSource(Consumer<UpdateLiveSourceRequest.Builder> updateLiveSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a live source's configuration.
This is a convenience which creates an instance of the
UpdateLiveSourceRequest.Builderavoiding the need to create one manually viaUpdateLiveSourceRequest.builder()- Parameters:
updateLiveSourceRequest- AConsumerthat will call methods onUpdateLiveSourceRequest.Builderto create a request.- Returns:
- Result of the UpdateLiveSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateProgram
default UpdateProgramResponse updateProgram(UpdateProgramRequest updateProgramRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a program within a channel.
- Parameters:
updateProgramRequest-- Returns:
- Result of the UpdateProgram operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateProgram
default UpdateProgramResponse updateProgram(Consumer<UpdateProgramRequest.Builder> updateProgramRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a program within a channel.
This is a convenience which creates an instance of the
UpdateProgramRequest.Builderavoiding the need to create one manually viaUpdateProgramRequest.builder()- Parameters:
updateProgramRequest- AConsumerthat will call methods onUpdateProgramRequest.Builderto create a request.- Returns:
- Result of the UpdateProgram operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateSourceLocation
default UpdateSourceLocationResponse updateSourceLocation(UpdateSourceLocationRequest updateSourceLocationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
- Parameters:
updateSourceLocationRequest-- Returns:
- Result of the UpdateSourceLocation operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateSourceLocation
default UpdateSourceLocationResponse updateSourceLocation(Consumer<UpdateSourceLocationRequest.Builder> updateSourceLocationRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.
This is a convenience which creates an instance of the
UpdateSourceLocationRequest.Builderavoiding the need to create one manually viaUpdateSourceLocationRequest.builder()- Parameters:
updateSourceLocationRequest- AConsumerthat will call methods onUpdateSourceLocationRequest.Builderto create a request.- Returns:
- Result of the UpdateSourceLocation operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateVodSource
default UpdateVodSourceResponse updateVodSource(UpdateVodSourceRequest updateVodSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a VOD source's configuration.
- Parameters:
updateVodSourceRequest-- Returns:
- Result of the UpdateVodSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateVodSource
default UpdateVodSourceResponse updateVodSource(Consumer<UpdateVodSourceRequest.Builder> updateVodSourceRequest) throws AwsServiceException, SdkClientException, MediaTailorException
Updates a VOD source's configuration.
This is a convenience which creates an instance of the
UpdateVodSourceRequest.Builderavoiding the need to create one manually viaUpdateVodSourceRequest.builder()- Parameters:
updateVodSourceRequest- AConsumerthat will call methods onUpdateVodSourceRequest.Builderto create a request.- Returns:
- Result of the UpdateVodSource operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MediaTailorException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static MediaTailorClient create()
Create aMediaTailorClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static MediaTailorClientBuilder builder()
Create a builder that can be used to configure and create aMediaTailorClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default MediaTailorServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-