Class CfnTokenVault.KmsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnTokenVault.KmsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTokenVault.KmsConfigurationProperty>
- Enclosing interface:
CfnTokenVault.KmsConfigurationProperty
@Stability(Stable)
public static final class CfnTokenVault.KmsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTokenVault.KmsConfigurationProperty>
A builder for
CfnTokenVault.KmsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTokenVault.KmsConfigurationProperty.getKeyType()Sets the value ofCfnTokenVault.KmsConfigurationProperty.getKmsKeyArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keyType
Sets the value ofCfnTokenVault.KmsConfigurationProperty.getKeyType()- Parameters:
keyType- The type of KMS key (CustomerManagedKey or ServiceManagedKey). This parameter is required.- Returns:
this
-
kmsKeyArn
@Stability(Stable) public CfnTokenVault.KmsConfigurationProperty.Builder kmsKeyArn(String kmsKeyArn) Sets the value ofCfnTokenVault.KmsConfigurationProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the KMS key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTokenVault.KmsConfigurationProperty>- Returns:
- a new instance of
CfnTokenVault.KmsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-