Class CfnKeyPropsMixin.KeyAttributesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.paymentcryptography.CfnKeyPropsMixin.KeyAttributesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyPropsMixin.KeyAttributesProperty>
- Enclosing interface:
CfnKeyPropsMixin.KeyAttributesProperty
@Stability(Stable)
public static final class CfnKeyPropsMixin.KeyAttributesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyPropsMixin.KeyAttributesProperty>
A builder for
CfnKeyPropsMixin.KeyAttributesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.keyAlgorithm(String keyAlgorithm) Sets the value ofCfnKeyPropsMixin.KeyAttributesProperty.getKeyAlgorithm()Sets the value ofCfnKeyPropsMixin.KeyAttributesProperty.getKeyClass()keyModesOfUse(CfnKeyPropsMixin.KeyModesOfUseProperty keyModesOfUse) Sets the value ofCfnKeyPropsMixin.KeyAttributesProperty.getKeyModesOfUse()keyModesOfUse(IResolvable keyModesOfUse) Sets the value ofCfnKeyPropsMixin.KeyAttributesProperty.getKeyModesOfUse()Sets the value ofCfnKeyPropsMixin.KeyAttributesProperty.getKeyUsage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keyAlgorithm
@Stability(Stable) public CfnKeyPropsMixin.KeyAttributesProperty.Builder keyAlgorithm(String keyAlgorithm) Sets the value ofCfnKeyPropsMixin.KeyAttributesProperty.getKeyAlgorithm()- Parameters:
keyAlgorithm- The key algorithm to be use during creation of an AWS Payment Cryptography key. For symmetric keys, AWS Payment Cryptography supportsAESandTDESalgorithms. For asymmetric keys, AWS Payment Cryptography supportsRSAandECC_NISTalgorithms.- Returns:
this
-
keyClass
Sets the value ofCfnKeyPropsMixin.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.- Returns:
this
-
keyModesOfUse
@Stability(Stable) public CfnKeyPropsMixin.KeyAttributesProperty.Builder keyModesOfUse(IResolvable keyModesOfUse) Sets the value ofCfnKeyPropsMixin.KeyAttributesProperty.getKeyModesOfUse()- Parameters:
keyModesOfUse- The list of cryptographic operations that you can perform using the key.- Returns:
this
-
keyModesOfUse
@Stability(Stable) public CfnKeyPropsMixin.KeyAttributesProperty.Builder keyModesOfUse(CfnKeyPropsMixin.KeyModesOfUseProperty keyModesOfUse) Sets the value ofCfnKeyPropsMixin.KeyAttributesProperty.getKeyModesOfUse()- Parameters:
keyModesOfUse- The list of cryptographic operations that you can perform using the key.- Returns:
this
-
keyUsage
Sets the value ofCfnKeyPropsMixin.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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKeyPropsMixin.KeyAttributesProperty>- Returns:
- a new instance of
CfnKeyPropsMixin.KeyAttributesProperty - Throws:
NullPointerException- if any required attribute was not provided
-