Class CfnOriginEndpoint.CmafEncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnOriginEndpoint.CmafEncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.CmafEncryptionProperty>
- Enclosing interface:
CfnOriginEndpoint.CmafEncryptionProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.CmafEncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.CmafEncryptionProperty>
A builder for
CfnOriginEndpoint.CmafEncryptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.constantInitializationVector(String constantInitializationVector) encryptionMethod(String encryptionMethod) Sets the value ofCfnOriginEndpoint.CmafEncryptionProperty.getEncryptionMethod()keyRotationIntervalSeconds(Number keyRotationIntervalSeconds) Sets the value ofCfnOriginEndpoint.CmafEncryptionProperty.getKeyRotationIntervalSeconds()spekeKeyProvider(IResolvable spekeKeyProvider) Sets the value ofCfnOriginEndpoint.CmafEncryptionProperty.getSpekeKeyProvider()spekeKeyProvider(CfnOriginEndpoint.SpekeKeyProviderProperty spekeKeyProvider) Sets the value ofCfnOriginEndpoint.CmafEncryptionProperty.getSpekeKeyProvider()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
spekeKeyProvider
@Stability(Stable) public CfnOriginEndpoint.CmafEncryptionProperty.Builder spekeKeyProvider(IResolvable spekeKeyProvider) Sets the value ofCfnOriginEndpoint.CmafEncryptionProperty.getSpekeKeyProvider()- Parameters:
spekeKeyProvider- Parameters for the SPEKE key provider. This parameter is required.- Returns:
this
-
spekeKeyProvider
@Stability(Stable) public CfnOriginEndpoint.CmafEncryptionProperty.Builder spekeKeyProvider(CfnOriginEndpoint.SpekeKeyProviderProperty spekeKeyProvider) Sets the value ofCfnOriginEndpoint.CmafEncryptionProperty.getSpekeKeyProvider()- Parameters:
spekeKeyProvider- Parameters for the SPEKE key provider. This parameter is required.- Returns:
this
-
constantInitializationVector
@Stability(Stable) public CfnOriginEndpoint.CmafEncryptionProperty.Builder constantInitializationVector(String constantInitializationVector) - Parameters:
constantInitializationVector- An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then AWS Elemental MediaPackage creates the constant initialization vector (IV).- Returns:
this
-
encryptionMethod
@Stability(Stable) public CfnOriginEndpoint.CmafEncryptionProperty.Builder encryptionMethod(String encryptionMethod) Sets the value ofCfnOriginEndpoint.CmafEncryptionProperty.getEncryptionMethod()- Parameters:
encryptionMethod- The encryption method to use.- Returns:
this
-
keyRotationIntervalSeconds
@Stability(Stable) public CfnOriginEndpoint.CmafEncryptionProperty.Builder keyRotationIntervalSeconds(Number keyRotationIntervalSeconds) Sets the value ofCfnOriginEndpoint.CmafEncryptionProperty.getKeyRotationIntervalSeconds()- 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOriginEndpoint.CmafEncryptionProperty>- Returns:
- a new instance of
CfnOriginEndpoint.CmafEncryptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-