#[non_exhaustive]pub struct HlsContentProtectionBuilder { /* private fields */ }
Expand description
A builder for HlsContentProtection
.
Implementations§
source§impl HlsContentProtectionBuilder
impl HlsContentProtectionBuilder
sourcepub fn method(self, input: impl Into<String>) -> Self
pub fn method(self, input: impl Into<String>) -> Self
The content protection method for your output. The only valid value is: aes-128
.
This value is written into the method attribute of the EXT-X-KEY
metadata tag in the output playlist.
sourcepub fn set_method(self, input: Option<String>) -> Self
pub fn set_method(self, input: Option<String>) -> Self
The content protection method for your output. The only valid value is: aes-128
.
This value is written into the method attribute of the EXT-X-KEY
metadata tag in the output playlist.
sourcepub fn get_method(&self) -> &Option<String>
pub fn get_method(&self) -> &Option<String>
The content protection method for your output. The only valid value is: aes-128
.
This value is written into the method attribute of the EXT-X-KEY
metadata tag in the output playlist.
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
If you want Elastic Transcoder to generate a key for you, leave this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
If you want Elastic Transcoder to generate a key for you, leave this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
If you want Elastic Transcoder to generate a key for you, leave this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
sourcepub fn key_md5(self, input: impl Into<String>) -> Self
pub fn key_md5(self, input: impl Into<String>) -> Self
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
sourcepub fn set_key_md5(self, input: Option<String>) -> Self
pub fn set_key_md5(self, input: Option<String>) -> Self
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
sourcepub fn get_key_md5(&self) -> &Option<String>
pub fn get_key_md5(&self) -> &Option<String>
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
sourcepub fn initialization_vector(self, input: impl Into<String>) -> Self
pub fn initialization_vector(self, input: impl Into<String>) -> Self
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
sourcepub fn set_initialization_vector(self, input: Option<String>) -> Self
pub fn set_initialization_vector(self, input: Option<String>) -> Self
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
sourcepub fn get_initialization_vector(&self) -> &Option<String>
pub fn get_initialization_vector(&self) -> &Option<String>
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
sourcepub fn license_acquisition_url(self, input: impl Into<String>) -> Self
pub fn license_acquisition_url(self, input: impl Into<String>) -> Self
The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
sourcepub fn set_license_acquisition_url(self, input: Option<String>) -> Self
pub fn set_license_acquisition_url(self, input: Option<String>) -> Self
The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
sourcepub fn get_license_acquisition_url(&self) -> &Option<String>
pub fn get_license_acquisition_url(&self) -> &Option<String>
The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
sourcepub fn key_storage_policy(self, input: impl Into<String>) -> Self
pub fn key_storage_policy(self, input: impl Into<String>) -> Self
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose WithVariantPlaylists
, LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.
sourcepub fn set_key_storage_policy(self, input: Option<String>) -> Self
pub fn set_key_storage_policy(self, input: Option<String>) -> Self
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose WithVariantPlaylists
, LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.
sourcepub fn get_key_storage_policy(&self) -> &Option<String>
pub fn get_key_storage_policy(&self) -> &Option<String>
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose WithVariantPlaylists
, LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.
sourcepub fn build(self) -> HlsContentProtection
pub fn build(self) -> HlsContentProtection
Consumes the builder and constructs a HlsContentProtection
.
Trait Implementations§
source§impl Clone for HlsContentProtectionBuilder
impl Clone for HlsContentProtectionBuilder
source§fn clone(&self) -> HlsContentProtectionBuilder
fn clone(&self) -> HlsContentProtectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HlsContentProtectionBuilder
impl Debug for HlsContentProtectionBuilder
source§impl Default for HlsContentProtectionBuilder
impl Default for HlsContentProtectionBuilder
source§fn default() -> HlsContentProtectionBuilder
fn default() -> HlsContentProtectionBuilder
impl StructuralPartialEq for HlsContentProtectionBuilder
Auto Trait Implementations§
impl Freeze for HlsContentProtectionBuilder
impl RefUnwindSafe for HlsContentProtectionBuilder
impl Send for HlsContentProtectionBuilder
impl Sync for HlsContentProtectionBuilder
impl Unpin for HlsContentProtectionBuilder
impl UnwindSafe for HlsContentProtectionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more