Class CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.mediapackage.mixins.CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpointPropsMixin.HlsEncryptionProperty>
- Enclosing interface:
CfnOriginEndpointPropsMixin.HlsEncryptionProperty
@Stability(Stable)
public static final class CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpointPropsMixin.HlsEncryptionProperty>
A builder for
CfnOriginEndpointPropsMixin.HlsEncryptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.constantInitializationVector(String constantInitializationVector) encryptionMethod(String encryptionMethod) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getEncryptionMethod()keyRotationIntervalSeconds(Number keyRotationIntervalSeconds) repeatExtXKey(Boolean repeatExtXKey) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getRepeatExtXKey()repeatExtXKey(IResolvable repeatExtXKey) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getRepeatExtXKey()spekeKeyProvider(IResolvable spekeKeyProvider) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getSpekeKeyProvider()spekeKeyProvider(CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty spekeKeyProvider) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getSpekeKeyProvider()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
constantInitializationVector
@Stability(Stable) public CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder constantInitializationVector(String constantInitializationVector) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getConstantInitializationVector()- Parameters:
constantInitializationVector- A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting blocks.- Returns:
this
-
encryptionMethod
@Stability(Stable) public CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder encryptionMethod(String encryptionMethod) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getEncryptionMethod()- Parameters:
encryptionMethod- HLS encryption type.- Returns:
this
-
keyRotationIntervalSeconds
@Stability(Stable) public CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder keyRotationIntervalSeconds(Number keyRotationIntervalSeconds) - Parameters:
keyRotationIntervalSeconds- Number of seconds before AWS Elemental MediaPackage rotates to a new key. By default, rotation is set to 60 seconds. Set to0to disable key rotation.- Returns:
this
-
repeatExtXKey
@Stability(Stable) public CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder repeatExtXKey(Boolean repeatExtXKey) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getRepeatExtXKey()- Parameters:
repeatExtXKey- Repeat theEXT-X-KEYdirective for every media segment. This might result in an increase in client requests to the DRM server.- Returns:
this
-
repeatExtXKey
@Stability(Stable) public CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder repeatExtXKey(IResolvable repeatExtXKey) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getRepeatExtXKey()- Parameters:
repeatExtXKey- Repeat theEXT-X-KEYdirective for every media segment. This might result in an increase in client requests to the DRM server.- Returns:
this
-
spekeKeyProvider
@Stability(Stable) public CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder spekeKeyProvider(IResolvable spekeKeyProvider) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getSpekeKeyProvider()- Parameters:
spekeKeyProvider- Parameters for the SPEKE key provider.- Returns:
this
-
spekeKeyProvider
@Stability(Stable) public CfnOriginEndpointPropsMixin.HlsEncryptionProperty.Builder spekeKeyProvider(CfnOriginEndpointPropsMixin.SpekeKeyProviderProperty spekeKeyProvider) Sets the value ofCfnOriginEndpointPropsMixin.HlsEncryptionProperty.getSpekeKeyProvider()- Parameters:
spekeKeyProvider- Parameters for the SPEKE key provider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOriginEndpointPropsMixin.HlsEncryptionProperty>- Returns:
- a new instance of
CfnOriginEndpointPropsMixin.HlsEncryptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-