Class CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.mediaconnect.CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowEntitlementPropsMixin.EncryptionProperty>
- Enclosing interface:
CfnFlowEntitlementPropsMixin.EncryptionProperty
@Stability(Stable)
public static final class CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowEntitlementPropsMixin.EncryptionProperty>
A builder for
CfnFlowEntitlementPropsMixin.EncryptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getAlgorithm()build()Builds the configured instance.constantInitializationVector(String constantInitializationVector) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getDeviceId()Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getKeyType()Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getRegion()resourceId(String resourceId) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getResourceId()Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getRoleArn()Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getSecretArn()Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
algorithm
@Stability(Stable) public CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder algorithm(String algorithm) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getAlgorithm()- Parameters:
algorithm- The type of algorithm that is used for static key encryption (such as aes128, aes192, or aes256). If you are using SPEKE or SRT-password encryption, this property must be left blank.- Returns:
this
-
constantInitializationVector
@Stability(Stable) public CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder constantInitializationVector(String constantInitializationVector) - Parameters:
constantInitializationVector- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.- Returns:
this
-
deviceId
@Stability(Stable) public CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder deviceId(String deviceId) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getDeviceId()- Parameters:
deviceId- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.- Returns:
this
-
keyType
@Stability(Stable) public CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder keyType(String keyType) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getKeyType()- Parameters:
keyType- The type of key that is used for the encryption. If you don't specify akeyTypevalue, the service uses the default setting (static-key). Valid key types are:static-key,speke, andsrt-password.- Returns:
this
-
region
@Stability(Stable) public CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder region(String region) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getRegion()- Parameters:
region- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.- Returns:
this
-
resourceId
@Stability(Stable) public CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder resourceId(String resourceId) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getResourceId()- Parameters:
resourceId- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.- Returns:
this
-
roleArn
@Stability(Stable) public CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder roleArn(String roleArn) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the role that you created during setup (when you set up MediaConnect as a trusted entity).- Returns:
this
-
secretArn
@Stability(Stable) public CfnFlowEntitlementPropsMixin.EncryptionProperty.Builder secretArn(String secretArn) Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getSecretArn()- Parameters:
secretArn- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.- Returns:
this
-
url
Sets the value ofCfnFlowEntitlementPropsMixin.EncryptionProperty.getUrl()- Parameters:
url- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowEntitlementPropsMixin.EncryptionProperty>- Returns:
- a new instance of
CfnFlowEntitlementPropsMixin.EncryptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-