Class CfnTemplate.PrivateKeyAttributesV2Property.Builder
java.lang.Object
software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.PrivateKeyAttributesV2Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.PrivateKeyAttributesV2Property>
- Enclosing interface:
CfnTemplate.PrivateKeyAttributesV2Property
@Stability(Stable)
public static final class CfnTemplate.PrivateKeyAttributesV2Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.PrivateKeyAttributesV2Property>
A builder for
CfnTemplate.PrivateKeyAttributesV2Property
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cryptoProviders
(List<String> cryptoProviders) Sets the value ofCfnTemplate.PrivateKeyAttributesV2Property.getCryptoProviders()
Sets the value ofCfnTemplate.PrivateKeyAttributesV2Property.getKeySpec()
minimalKeyLength
(Number minimalKeyLength) Sets the value ofCfnTemplate.PrivateKeyAttributesV2Property.getMinimalKeyLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keySpec
@Stability(Stable) public CfnTemplate.PrivateKeyAttributesV2Property.Builder keySpec(String keySpec) Sets the value ofCfnTemplate.PrivateKeyAttributesV2Property.getKeySpec()
- Parameters:
keySpec
- Defines the purpose of the private key. This parameter is required. Set it to "KEY_EXCHANGE" or "SIGNATURE" value.- Returns:
this
-
minimalKeyLength
@Stability(Stable) public CfnTemplate.PrivateKeyAttributesV2Property.Builder minimalKeyLength(Number minimalKeyLength) Sets the value ofCfnTemplate.PrivateKeyAttributesV2Property.getMinimalKeyLength()
- Parameters:
minimalKeyLength
- Set the minimum key length of the private key. This parameter is required.- Returns:
this
-
cryptoProviders
@Stability(Stable) public CfnTemplate.PrivateKeyAttributesV2Property.Builder cryptoProviders(List<String> cryptoProviders) Sets the value ofCfnTemplate.PrivateKeyAttributesV2Property.getCryptoProviders()
- Parameters:
cryptoProviders
- Defines the cryptographic providers used to generate the private key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTemplate.PrivateKeyAttributesV2Property>
- Returns:
- a new instance of
CfnTemplate.PrivateKeyAttributesV2Property
- Throws:
NullPointerException
- if any required attribute was not provided
-