Class CfnCertificate.KeyUsageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.acmpca.CfnCertificate.KeyUsageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificate.KeyUsageProperty>
- Enclosing interface:
CfnCertificate.KeyUsageProperty
@Stability(Stable)
public static final class CfnCertificate.KeyUsageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificate.KeyUsageProperty>
A builder for
CfnCertificate.KeyUsageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCertificate.KeyUsageProperty.getCrlSign()
crlSign
(IResolvable crlSign) Sets the value ofCfnCertificate.KeyUsageProperty.getCrlSign()
dataEncipherment
(Boolean dataEncipherment) Sets the value ofCfnCertificate.KeyUsageProperty.getDataEncipherment()
dataEncipherment
(IResolvable dataEncipherment) Sets the value ofCfnCertificate.KeyUsageProperty.getDataEncipherment()
decipherOnly
(Boolean decipherOnly) Sets the value ofCfnCertificate.KeyUsageProperty.getDecipherOnly()
decipherOnly
(IResolvable decipherOnly) Sets the value ofCfnCertificate.KeyUsageProperty.getDecipherOnly()
digitalSignature
(Boolean digitalSignature) Sets the value ofCfnCertificate.KeyUsageProperty.getDigitalSignature()
digitalSignature
(IResolvable digitalSignature) Sets the value ofCfnCertificate.KeyUsageProperty.getDigitalSignature()
encipherOnly
(Boolean encipherOnly) Sets the value ofCfnCertificate.KeyUsageProperty.getEncipherOnly()
encipherOnly
(IResolvable encipherOnly) Sets the value ofCfnCertificate.KeyUsageProperty.getEncipherOnly()
keyAgreement
(Boolean keyAgreement) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyAgreement()
keyAgreement
(IResolvable keyAgreement) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyAgreement()
keyCertSign
(Boolean keyCertSign) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyCertSign()
keyCertSign
(IResolvable keyCertSign) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyCertSign()
keyEncipherment
(Boolean keyEncipherment) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyEncipherment()
keyEncipherment
(IResolvable keyEncipherment) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyEncipherment()
nonRepudiation
(Boolean nonRepudiation) Sets the value ofCfnCertificate.KeyUsageProperty.getNonRepudiation()
nonRepudiation
(IResolvable nonRepudiation) Sets the value ofCfnCertificate.KeyUsageProperty.getNonRepudiation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
crlSign
Sets the value ofCfnCertificate.KeyUsageProperty.getCrlSign()
- Parameters:
crlSign
- Key can be used to sign CRLs.- Returns:
this
-
crlSign
Sets the value ofCfnCertificate.KeyUsageProperty.getCrlSign()
- Parameters:
crlSign
- Key can be used to sign CRLs.- Returns:
this
-
dataEncipherment
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder dataEncipherment(Boolean dataEncipherment) Sets the value ofCfnCertificate.KeyUsageProperty.getDataEncipherment()
- Parameters:
dataEncipherment
- Key can be used to decipher data.- Returns:
this
-
dataEncipherment
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder dataEncipherment(IResolvable dataEncipherment) Sets the value ofCfnCertificate.KeyUsageProperty.getDataEncipherment()
- Parameters:
dataEncipherment
- Key can be used to decipher data.- Returns:
this
-
decipherOnly
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder decipherOnly(Boolean decipherOnly) Sets the value ofCfnCertificate.KeyUsageProperty.getDecipherOnly()
- Parameters:
decipherOnly
- Key can be used only to decipher data.- Returns:
this
-
decipherOnly
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder decipherOnly(IResolvable decipherOnly) Sets the value ofCfnCertificate.KeyUsageProperty.getDecipherOnly()
- Parameters:
decipherOnly
- Key can be used only to decipher data.- Returns:
this
-
digitalSignature
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder digitalSignature(Boolean digitalSignature) Sets the value ofCfnCertificate.KeyUsageProperty.getDigitalSignature()
- Parameters:
digitalSignature
- Key can be used for digital signing.- Returns:
this
-
digitalSignature
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder digitalSignature(IResolvable digitalSignature) Sets the value ofCfnCertificate.KeyUsageProperty.getDigitalSignature()
- Parameters:
digitalSignature
- Key can be used for digital signing.- Returns:
this
-
encipherOnly
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder encipherOnly(Boolean encipherOnly) Sets the value ofCfnCertificate.KeyUsageProperty.getEncipherOnly()
- Parameters:
encipherOnly
- Key can be used only to encipher data.- Returns:
this
-
encipherOnly
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder encipherOnly(IResolvable encipherOnly) Sets the value ofCfnCertificate.KeyUsageProperty.getEncipherOnly()
- Parameters:
encipherOnly
- Key can be used only to encipher data.- Returns:
this
-
keyAgreement
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder keyAgreement(Boolean keyAgreement) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyAgreement()
- Parameters:
keyAgreement
- Key can be used in a key-agreement protocol.- Returns:
this
-
keyAgreement
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder keyAgreement(IResolvable keyAgreement) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyAgreement()
- Parameters:
keyAgreement
- Key can be used in a key-agreement protocol.- Returns:
this
-
keyCertSign
Sets the value ofCfnCertificate.KeyUsageProperty.getKeyCertSign()
- Parameters:
keyCertSign
- Key can be used to sign certificates.- Returns:
this
-
keyCertSign
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder keyCertSign(IResolvable keyCertSign) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyCertSign()
- Parameters:
keyCertSign
- Key can be used to sign certificates.- Returns:
this
-
keyEncipherment
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder keyEncipherment(Boolean keyEncipherment) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyEncipherment()
- Parameters:
keyEncipherment
- Key can be used to encipher data.- Returns:
this
-
keyEncipherment
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder keyEncipherment(IResolvable keyEncipherment) Sets the value ofCfnCertificate.KeyUsageProperty.getKeyEncipherment()
- Parameters:
keyEncipherment
- Key can be used to encipher data.- Returns:
this
-
nonRepudiation
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder nonRepudiation(Boolean nonRepudiation) Sets the value ofCfnCertificate.KeyUsageProperty.getNonRepudiation()
- Parameters:
nonRepudiation
- Key can be used for non-repudiation.- Returns:
this
-
nonRepudiation
@Stability(Stable) public CfnCertificate.KeyUsageProperty.Builder nonRepudiation(IResolvable nonRepudiation) Sets the value ofCfnCertificate.KeyUsageProperty.getNonRepudiation()
- Parameters:
nonRepudiation
- Key can be used for non-repudiation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCertificate.KeyUsageProperty>
- Returns:
- a new instance of
CfnCertificate.KeyUsageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-