Class KmsCryptoKeyVersionTemplate.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.kms_crypto_key.KmsCryptoKeyVersionTemplate.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KmsCryptoKeyVersionTemplate>
- Enclosing interface:
- KmsCryptoKeyVersionTemplate
@Stability(Stable) public static final class KmsCryptoKeyVersionTemplate.Builder extends Object implements software.amazon.jsii.Builder<KmsCryptoKeyVersionTemplate>
A builder forKmsCryptoKeyVersionTemplate
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KmsCryptoKeyVersionTemplate.Builderalgorithm(String algorithm)Sets the value ofKmsCryptoKeyVersionTemplate.getAlgorithm()KmsCryptoKeyVersionTemplatebuild()Builds the configured instance.KmsCryptoKeyVersionTemplate.BuilderprotectionLevel(String protectionLevel)Sets the value ofKmsCryptoKeyVersionTemplate.getProtectionLevel()
-
-
-
Method Detail
-
algorithm
@Stability(Stable) public KmsCryptoKeyVersionTemplate.Builder algorithm(String algorithm)
Sets the value ofKmsCryptoKeyVersionTemplate.getAlgorithm()- Parameters:
algorithm- The algorithm to use when creating a version based on this template. See the algorithm reference for possible inputs. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key#algorithm KmsCryptoKey#algorithm}- Returns:
this
-
protectionLevel
@Stability(Stable) public KmsCryptoKeyVersionTemplate.Builder protectionLevel(String protectionLevel)
Sets the value ofKmsCryptoKeyVersionTemplate.getProtectionLevel()- Parameters:
protectionLevel- The protection level to use when creating a version based on this template. Possible values include "SOFTWARE", "HSM", "EXTERNAL", "EXTERNAL_VPC". Defaults to "SOFTWARE". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key#protection_level KmsCryptoKey#protection_level}- Returns:
this
-
build
@Stability(Stable) public KmsCryptoKeyVersionTemplate build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KmsCryptoKeyVersionTemplate>- Returns:
- a new instance of
KmsCryptoKeyVersionTemplate - Throws:
NullPointerException- if any required attribute was not provided
-
-