Class CfnTemplate.KeyUsagePropertyFlagsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcaconnectorad.CfnTemplate.KeyUsagePropertyFlagsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.KeyUsagePropertyFlagsProperty>
- Enclosing interface:
CfnTemplate.KeyUsagePropertyFlagsProperty
@Stability(Stable)
public static final class CfnTemplate.KeyUsagePropertyFlagsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.KeyUsagePropertyFlagsProperty>
A builder for
CfnTemplate.KeyUsagePropertyFlagsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getDecrypt()
decrypt
(IResolvable decrypt) Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getDecrypt()
keyAgreement
(Boolean keyAgreement) Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getKeyAgreement()
keyAgreement
(IResolvable keyAgreement) Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getKeyAgreement()
Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getSign()
sign
(IResolvable sign) Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getSign()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
decrypt
@Stability(Stable) public CfnTemplate.KeyUsagePropertyFlagsProperty.Builder decrypt(Boolean decrypt) Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getDecrypt()
- Parameters:
decrypt
- Allows key for encryption and decryption.- Returns:
this
-
decrypt
@Stability(Stable) public CfnTemplate.KeyUsagePropertyFlagsProperty.Builder decrypt(IResolvable decrypt) Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getDecrypt()
- Parameters:
decrypt
- Allows key for encryption and decryption.- Returns:
this
-
keyAgreement
@Stability(Stable) public CfnTemplate.KeyUsagePropertyFlagsProperty.Builder keyAgreement(Boolean keyAgreement) Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getKeyAgreement()
- Parameters:
keyAgreement
- Allows key exchange without encryption.- Returns:
this
-
keyAgreement
@Stability(Stable) public CfnTemplate.KeyUsagePropertyFlagsProperty.Builder keyAgreement(IResolvable keyAgreement) Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getKeyAgreement()
- Parameters:
keyAgreement
- Allows key exchange without encryption.- Returns:
this
-
sign
Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getSign()
- Parameters:
sign
- Allow key use for digital signature.- Returns:
this
-
sign
Sets the value ofCfnTemplate.KeyUsagePropertyFlagsProperty.getSign()
- Parameters:
sign
- Allow key use for digital signature.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTemplate.KeyUsagePropertyFlagsProperty>
- Returns:
- a new instance of
CfnTemplate.KeyUsagePropertyFlagsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-