#[non_exhaustive]pub struct HlsEncryptionSettingsBuilder { /* private fields */ }
Expand description
A builder for HlsEncryptionSettings
.
Implementations§
source§impl HlsEncryptionSettingsBuilder
impl HlsEncryptionSettingsBuilder
sourcepub fn constant_initialization_vector(self, input: impl Into<String>) -> Self
pub fn constant_initialization_vector(self, input: impl Into<String>) -> Self
This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default.
sourcepub fn set_constant_initialization_vector(self, input: Option<String>) -> Self
pub fn set_constant_initialization_vector(self, input: Option<String>) -> Self
This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default.
sourcepub fn get_constant_initialization_vector(&self) -> &Option<String>
pub fn get_constant_initialization_vector(&self) -> &Option<String>
This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default.
sourcepub fn encryption_method(self, input: HlsEncryptionType) -> Self
pub fn encryption_method(self, input: HlsEncryptionType) -> Self
Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting ‘Disabled’ in the web interface also disables encryption.
sourcepub fn set_encryption_method(self, input: Option<HlsEncryptionType>) -> Self
pub fn set_encryption_method(self, input: Option<HlsEncryptionType>) -> Self
Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting ‘Disabled’ in the web interface also disables encryption.
sourcepub fn get_encryption_method(&self) -> &Option<HlsEncryptionType>
pub fn get_encryption_method(&self) -> &Option<HlsEncryptionType>
Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting ‘Disabled’ in the web interface also disables encryption.
sourcepub fn initialization_vector_in_manifest(
self,
input: HlsInitializationVectorInManifest
) -> Self
pub fn initialization_vector_in_manifest( self, input: HlsInitializationVectorInManifest ) -> Self
The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks. If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is not in the manifest.
sourcepub fn set_initialization_vector_in_manifest(
self,
input: Option<HlsInitializationVectorInManifest>
) -> Self
pub fn set_initialization_vector_in_manifest( self, input: Option<HlsInitializationVectorInManifest> ) -> Self
The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks. If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is not in the manifest.
sourcepub fn get_initialization_vector_in_manifest(
&self
) -> &Option<HlsInitializationVectorInManifest>
pub fn get_initialization_vector_in_manifest( &self ) -> &Option<HlsInitializationVectorInManifest>
The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks. If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is not in the manifest.
sourcepub fn offline_encrypted(self, input: HlsOfflineEncrypted) -> Self
pub fn offline_encrypted(self, input: HlsOfflineEncrypted) -> Self
Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist. This allows for offline Apple HLS FairPlay content protection.
sourcepub fn set_offline_encrypted(self, input: Option<HlsOfflineEncrypted>) -> Self
pub fn set_offline_encrypted(self, input: Option<HlsOfflineEncrypted>) -> Self
Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist. This allows for offline Apple HLS FairPlay content protection.
sourcepub fn get_offline_encrypted(&self) -> &Option<HlsOfflineEncrypted>
pub fn get_offline_encrypted(&self) -> &Option<HlsOfflineEncrypted>
Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist. This allows for offline Apple HLS FairPlay content protection.
sourcepub fn speke_key_provider(self, input: SpekeKeyProvider) -> Self
pub fn speke_key_provider(self, input: SpekeKeyProvider) -> Self
If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
sourcepub fn set_speke_key_provider(self, input: Option<SpekeKeyProvider>) -> Self
pub fn set_speke_key_provider(self, input: Option<SpekeKeyProvider>) -> Self
If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
sourcepub fn get_speke_key_provider(&self) -> &Option<SpekeKeyProvider>
pub fn get_speke_key_provider(&self) -> &Option<SpekeKeyProvider>
If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the SpekeKeyProviderCmaf settings instead.
sourcepub fn static_key_provider(self, input: StaticKeyProvider) -> Self
pub fn static_key_provider(self, input: StaticKeyProvider) -> Self
Use these settings to set up encryption with a static key provider.
sourcepub fn set_static_key_provider(self, input: Option<StaticKeyProvider>) -> Self
pub fn set_static_key_provider(self, input: Option<StaticKeyProvider>) -> Self
Use these settings to set up encryption with a static key provider.
sourcepub fn get_static_key_provider(&self) -> &Option<StaticKeyProvider>
pub fn get_static_key_provider(&self) -> &Option<StaticKeyProvider>
Use these settings to set up encryption with a static key provider.
sourcepub fn type(self, input: HlsKeyProviderType) -> Self
pub fn type(self, input: HlsKeyProviderType) -> Self
Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard. For more information about SPEKE, see https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.
sourcepub fn set_type(self, input: Option<HlsKeyProviderType>) -> Self
pub fn set_type(self, input: Option<HlsKeyProviderType>) -> Self
Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard. For more information about SPEKE, see https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.
sourcepub fn get_type(&self) -> &Option<HlsKeyProviderType>
pub fn get_type(&self) -> &Option<HlsKeyProviderType>
Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard. For more information about SPEKE, see https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.
sourcepub fn build(self) -> HlsEncryptionSettings
pub fn build(self) -> HlsEncryptionSettings
Consumes the builder and constructs a HlsEncryptionSettings
.
Trait Implementations§
source§impl Clone for HlsEncryptionSettingsBuilder
impl Clone for HlsEncryptionSettingsBuilder
source§fn clone(&self) -> HlsEncryptionSettingsBuilder
fn clone(&self) -> HlsEncryptionSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HlsEncryptionSettingsBuilder
impl Debug for HlsEncryptionSettingsBuilder
source§impl Default for HlsEncryptionSettingsBuilder
impl Default for HlsEncryptionSettingsBuilder
source§fn default() -> HlsEncryptionSettingsBuilder
fn default() -> HlsEncryptionSettingsBuilder
source§impl PartialEq for HlsEncryptionSettingsBuilder
impl PartialEq for HlsEncryptionSettingsBuilder
source§fn eq(&self, other: &HlsEncryptionSettingsBuilder) -> bool
fn eq(&self, other: &HlsEncryptionSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HlsEncryptionSettingsBuilder
Auto Trait Implementations§
impl Freeze for HlsEncryptionSettingsBuilder
impl RefUnwindSafe for HlsEncryptionSettingsBuilder
impl Send for HlsEncryptionSettingsBuilder
impl Sync for HlsEncryptionSettingsBuilder
impl Unpin for HlsEncryptionSettingsBuilder
impl UnwindSafe for HlsEncryptionSettingsBuilder
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> 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