Class CfnOriginEndpoint.EncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.EncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginEndpoint.EncryptionProperty>
- Enclosing interface:
CfnOriginEndpoint.EncryptionProperty
@Stability(Stable)
public static final class CfnOriginEndpoint.EncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginEndpoint.EncryptionProperty>
A builder for
CfnOriginEndpoint.EncryptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cmafExcludeSegmentDrmMetadata(Boolean cmafExcludeSegmentDrmMetadata) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getCmafExcludeSegmentDrmMetadata()cmafExcludeSegmentDrmMetadata(IResolvable cmafExcludeSegmentDrmMetadata) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getCmafExcludeSegmentDrmMetadata()constantInitializationVector(String constantInitializationVector) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getConstantInitializationVector()encryptionMethod(IResolvable encryptionMethod) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getEncryptionMethod()encryptionMethod(CfnOriginEndpoint.EncryptionMethodProperty encryptionMethod) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getEncryptionMethod()keyRotationIntervalSeconds(Number keyRotationIntervalSeconds) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getKeyRotationIntervalSeconds()spekeKeyProvider(IResolvable spekeKeyProvider) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getSpekeKeyProvider()spekeKeyProvider(CfnOriginEndpoint.SpekeKeyProviderProperty spekeKeyProvider) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getSpekeKeyProvider()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionMethod
@Stability(Stable) public CfnOriginEndpoint.EncryptionProperty.Builder encryptionMethod(IResolvable encryptionMethod) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getEncryptionMethod()- Parameters:
encryptionMethod- The encryption method to use. This parameter is required.- Returns:
this
-
encryptionMethod
@Stability(Stable) public CfnOriginEndpoint.EncryptionProperty.Builder encryptionMethod(CfnOriginEndpoint.EncryptionMethodProperty encryptionMethod) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getEncryptionMethod()- Parameters:
encryptionMethod- The encryption method to use. This parameter is required.- Returns:
this
-
spekeKeyProvider
@Stability(Stable) public CfnOriginEndpoint.EncryptionProperty.Builder spekeKeyProvider(IResolvable spekeKeyProvider) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getSpekeKeyProvider()- Parameters:
spekeKeyProvider- The SPEKE key provider to use for encryption. This parameter is required.- Returns:
this
-
spekeKeyProvider
@Stability(Stable) public CfnOriginEndpoint.EncryptionProperty.Builder spekeKeyProvider(CfnOriginEndpoint.SpekeKeyProviderProperty spekeKeyProvider) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getSpekeKeyProvider()- Parameters:
spekeKeyProvider- The SPEKE key provider to use for encryption. This parameter is required.- Returns:
this
-
cmafExcludeSegmentDrmMetadata
@Stability(Stable) public CfnOriginEndpoint.EncryptionProperty.Builder cmafExcludeSegmentDrmMetadata(Boolean cmafExcludeSegmentDrmMetadata) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getCmafExcludeSegmentDrmMetadata()- Parameters:
cmafExcludeSegmentDrmMetadata- Excludes SEIG and SGPD boxes from segment metadata in CMAF containers. When set totrue, MediaPackage omits these DRM metadata boxes from CMAF segments, which can improve compatibility with certain devices and players that don't support these boxes.Important considerations:
- This setting only affects CMAF container formats
- Key rotation can still be handled through media playlist signaling
- PSSH and TENC boxes remain unaffected
- Default behavior is preserved when this setting is disabled
Valid values:
true|falseDefault:
false- Returns:
this
-
cmafExcludeSegmentDrmMetadata
@Stability(Stable) public CfnOriginEndpoint.EncryptionProperty.Builder cmafExcludeSegmentDrmMetadata(IResolvable cmafExcludeSegmentDrmMetadata) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getCmafExcludeSegmentDrmMetadata()- Parameters:
cmafExcludeSegmentDrmMetadata- Excludes SEIG and SGPD boxes from segment metadata in CMAF containers. When set totrue, MediaPackage omits these DRM metadata boxes from CMAF segments, which can improve compatibility with certain devices and players that don't support these boxes.Important considerations:
- This setting only affects CMAF container formats
- Key rotation can still be handled through media playlist signaling
- PSSH and TENC boxes remain unaffected
- Default behavior is preserved when this setting is disabled
Valid values:
true|falseDefault:
false- Returns:
this
-
constantInitializationVector
@Stability(Stable) public CfnOriginEndpoint.EncryptionProperty.Builder constantInitializationVector(String constantInitializationVector) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getConstantInitializationVector()- Parameters:
constantInitializationVector- A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).- Returns:
this
-
keyRotationIntervalSeconds
@Stability(Stable) public CfnOriginEndpoint.EncryptionProperty.Builder keyRotationIntervalSeconds(Number keyRotationIntervalSeconds) Sets the value ofCfnOriginEndpoint.EncryptionProperty.getKeyRotationIntervalSeconds()- Parameters:
keyRotationIntervalSeconds- The interval, in seconds, to rotate encryption keys for the origin endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOriginEndpoint.EncryptionProperty>- Returns:
- a new instance of
CfnOriginEndpoint.EncryptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-