Class CfnFlowOutputPropsMixin.EncryptionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.mediaconnect.CfnFlowOutputPropsMixin.EncryptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowOutputPropsMixin.EncryptionProperty>
- Enclosing interface:
CfnFlowOutputPropsMixin.EncryptionProperty
@Stability(Stable)
public static final class CfnFlowOutputPropsMixin.EncryptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowOutputPropsMixin.EncryptionProperty>
A builder for
CfnFlowOutputPropsMixin.EncryptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFlowOutputPropsMixin.EncryptionProperty.getAlgorithm()build()Builds the configured instance.Sets the value ofCfnFlowOutputPropsMixin.EncryptionProperty.getKeyType()Sets the value ofCfnFlowOutputPropsMixin.EncryptionProperty.getRoleArn()Sets the value ofCfnFlowOutputPropsMixin.EncryptionProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
algorithm
@Stability(Stable) public CfnFlowOutputPropsMixin.EncryptionProperty.Builder algorithm(String algorithm) Sets the value ofCfnFlowOutputPropsMixin.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
-
keyType
@Stability(Stable) public CfnFlowOutputPropsMixin.EncryptionProperty.Builder keyType(String keyType) Sets the value ofCfnFlowOutputPropsMixin.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
-
roleArn
@Stability(Stable) public CfnFlowOutputPropsMixin.EncryptionProperty.Builder roleArn(String roleArn) Sets the value ofCfnFlowOutputPropsMixin.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 CfnFlowOutputPropsMixin.EncryptionProperty.Builder secretArn(String secretArn) Sets the value ofCfnFlowOutputPropsMixin.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowOutputPropsMixin.EncryptionProperty>- Returns:
- a new instance of
CfnFlowOutputPropsMixin.EncryptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-