Class PrivatecaCertificateConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.privateca_certificate.PrivatecaCertificateConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrivatecaCertificateConfig>
- Enclosing interface:
- PrivatecaCertificateConfig
@Stability(Stable) public static final class PrivatecaCertificateConfig.Builder extends Object implements software.amazon.jsii.Builder<PrivatecaCertificateConfig>
A builder forPrivatecaCertificateConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
location
@Stability(Stable) public PrivatecaCertificateConfig.Builder location(String location)
Sets the value ofPrivatecaCertificateConfig.getLocation()- Parameters:
location- Location of the Certificate. A full list of valid locations can be found by running 'gcloud privateca locations list'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#location PrivatecaCertificate#location}- Returns:
this
-
name
@Stability(Stable) public PrivatecaCertificateConfig.Builder name(String name)
Sets the value ofPrivatecaCertificateConfig.getName()- Parameters:
name- The name for this Certificate. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#name PrivatecaCertificate#name}- Returns:
this
-
pool
@Stability(Stable) public PrivatecaCertificateConfig.Builder pool(String pool)
Sets the value ofPrivatecaCertificateConfig.getPool()- Parameters:
pool- The name of the CaPool this Certificate belongs to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#pool PrivatecaCertificate#pool}- Returns:
this
-
certificateAuthority
@Stability(Stable) public PrivatecaCertificateConfig.Builder certificateAuthority(String certificateAuthority)
Sets the value ofPrivatecaCertificateConfig.getCertificateAuthority()- Parameters:
certificateAuthority- The Certificate Authority ID that should issue the certificate. For example, to issue a Certificate from a Certificate Authority with resource name 'projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca', argument 'pool' should be set to 'projects/my-project/locations/us-central1/caPools/my-pool', argument 'certificate_authority' should be set to 'my-ca'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#certificate_authority PrivatecaCertificate#certificate_authority}- Returns:
this
-
certificateTemplate
@Stability(Stable) public PrivatecaCertificateConfig.Builder certificateTemplate(String certificateTemplate)
Sets the value ofPrivatecaCertificateConfig.getCertificateTemplate()- Parameters:
certificateTemplate- The resource name for a CertificateTemplate used to issue this certificate, in the format 'projects/* /locations/* /certificateTemplates/*'. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the Certificate. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#certificate_template PrivatecaCertificate#certificate_template} Note: The above comment contained a comment block ending sequence (* followed by /). We have introduced a space between to prevent syntax errors. Please ignore the space.- Returns:
this
-
config
@Stability(Stable) public PrivatecaCertificateConfig.Builder config(PrivatecaCertificateConfigA config)
Sets the value ofPrivatecaCertificateConfig.getConfig()- Parameters:
config- config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#config PrivatecaCertificate#config}- Returns:
this
-
id
@Stability(Stable) public PrivatecaCertificateConfig.Builder id(String id)
Sets the value ofPrivatecaCertificateConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#id PrivatecaCertificate#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
labels
@Stability(Stable) public PrivatecaCertificateConfig.Builder labels(Map<String,String> labels)
Sets the value ofPrivatecaCertificateConfig.getLabels()- Parameters:
labels- Labels with user-defined metadata to apply to this resource. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#labels PrivatecaCertificate#labels}- Returns:
this
-
lifetime
@Stability(Stable) public PrivatecaCertificateConfig.Builder lifetime(String lifetime)
Sets the value ofPrivatecaCertificateConfig.getLifetime()- Parameters:
lifetime- The desired lifetime of the CA certificate. Used to create the "notBeforeTime" and "notAfterTime" fields inside an X.509 certificate. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#lifetime PrivatecaCertificate#lifetime}- Returns:
this
-
pemCsr
@Stability(Stable) public PrivatecaCertificateConfig.Builder pemCsr(String pemCsr)
Sets the value ofPrivatecaCertificateConfig.getPemCsr()- Parameters:
pemCsr- Immutable. A pem-encoded X.509 certificate signing request (CSR). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#pem_csr PrivatecaCertificate#pem_csr}- Returns:
this
-
project
@Stability(Stable) public PrivatecaCertificateConfig.Builder project(String project)
Sets the value ofPrivatecaCertificateConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#project PrivatecaCertificate#project}.- Returns:
this
-
timeouts
@Stability(Stable) public PrivatecaCertificateConfig.Builder timeouts(PrivatecaCertificateTimeouts timeouts)
Sets the value ofPrivatecaCertificateConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#timeouts PrivatecaCertificate#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public PrivatecaCertificateConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public PrivatecaCertificateConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public PrivatecaCertificateConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public PrivatecaCertificateConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public PrivatecaCertificateConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public PrivatecaCertificateConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public PrivatecaCertificateConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public PrivatecaCertificateConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public PrivatecaCertificateConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public PrivatecaCertificateConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrivatecaCertificateConfig>- Returns:
- a new instance of
PrivatecaCertificateConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-