Class CfnKey.KeyAttributesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.paymentcryptography.CfnKey.KeyAttributesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKey.KeyAttributesProperty>
- Enclosing interface:
CfnKey.KeyAttributesProperty
@Stability(Stable)
public static final class CfnKey.KeyAttributesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKey.KeyAttributesProperty>
A builder for
CfnKey.KeyAttributesProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.keyAlgorithm
(String keyAlgorithm) Sets the value ofCfnKey.KeyAttributesProperty.getKeyAlgorithm()
Sets the value ofCfnKey.KeyAttributesProperty.getKeyClass()
keyModesOfUse
(IResolvable keyModesOfUse) Sets the value ofCfnKey.KeyAttributesProperty.getKeyModesOfUse()
keyModesOfUse
(CfnKey.KeyModesOfUseProperty keyModesOfUse) Sets the value ofCfnKey.KeyAttributesProperty.getKeyModesOfUse()
Sets the value ofCfnKey.KeyAttributesProperty.getKeyUsage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keyAlgorithm
Sets the value ofCfnKey.KeyAttributesProperty.getKeyAlgorithm()
- Parameters:
keyAlgorithm
- The key algorithm to be use during creation of an AWS Payment Cryptography key. This parameter is required. For symmetric keys, AWS Payment Cryptography supportsAES
andTDES
algorithms. For asymmetric keys, AWS Payment Cryptography supportsRSA
andECC_NIST
algorithms.- Returns:
this
-
keyClass
Sets the value ofCfnKey.KeyAttributesProperty.getKeyClass()
- Parameters:
keyClass
- The type of AWS Payment Cryptography key to create, which determines the classification of the cryptographic method and whether AWS Payment Cryptography key contains a symmetric key or an asymmetric key pair. This parameter is required.- Returns:
this
-
keyModesOfUse
@Stability(Stable) public CfnKey.KeyAttributesProperty.Builder keyModesOfUse(IResolvable keyModesOfUse) Sets the value ofCfnKey.KeyAttributesProperty.getKeyModesOfUse()
- Parameters:
keyModesOfUse
- The list of cryptographic operations that you can perform using the key. This parameter is required.- Returns:
this
-
keyModesOfUse
@Stability(Stable) public CfnKey.KeyAttributesProperty.Builder keyModesOfUse(CfnKey.KeyModesOfUseProperty keyModesOfUse) Sets the value ofCfnKey.KeyAttributesProperty.getKeyModesOfUse()
- Parameters:
keyModesOfUse
- The list of cryptographic operations that you can perform using the key. This parameter is required.- Returns:
this
-
keyUsage
Sets the value ofCfnKey.KeyAttributesProperty.getKeyUsage()
- Parameters:
keyUsage
- The cryptographic usage of an AWS Payment Cryptography key as defined in section A.5.2 of the TR-31 spec. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnKey.KeyAttributesProperty>
- Returns:
- a new instance of
CfnKey.KeyAttributesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-