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.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
-
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
-