Class PrivatecaCertificateConfigPublicKey.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.privateca_certificate.PrivatecaCertificateConfigPublicKey.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrivatecaCertificateConfigPublicKey>
- Enclosing interface:
- PrivatecaCertificateConfigPublicKey
@Stability(Stable) public static final class PrivatecaCertificateConfigPublicKey.Builder extends Object implements software.amazon.jsii.Builder<PrivatecaCertificateConfigPublicKey>
A builder forPrivatecaCertificateConfigPublicKey
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivatecaCertificateConfigPublicKeybuild()Builds the configured instance.PrivatecaCertificateConfigPublicKey.Builderformat(String format)Sets the value ofPrivatecaCertificateConfigPublicKey.getFormat()PrivatecaCertificateConfigPublicKey.Builderkey(String key)Sets the value ofPrivatecaCertificateConfigPublicKey.getKey()
-
-
-
Method Detail
-
format
@Stability(Stable) public PrivatecaCertificateConfigPublicKey.Builder format(String format)
Sets the value ofPrivatecaCertificateConfigPublicKey.getFormat()- Parameters:
format- The format of the public key. Currently, only PEM format is supported. Possible values: ["KEY_TYPE_UNSPECIFIED", "PEM"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#format PrivatecaCertificate#format}- Returns:
this
-
key
@Stability(Stable) public PrivatecaCertificateConfigPublicKey.Builder key(String key)
Sets the value ofPrivatecaCertificateConfigPublicKey.getKey()- Parameters:
key- Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 SubjectPublicKeyInfo structure containing an algorithm identifier and a key. A base64-encoded string. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#key PrivatecaCertificate#key}- Returns:
this
-
build
@Stability(Stable) public PrivatecaCertificateConfigPublicKey build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrivatecaCertificateConfigPublicKey>- Returns:
- a new instance of
PrivatecaCertificateConfigPublicKey - Throws:
NullPointerException- if any required attribute was not provided
-
-