Class PrivatecaCertificateAuthorityConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • certificateAuthorityId

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder certificateAuthorityId​(String certificateAuthorityId)
        Parameters:
        certificateAuthorityId - The user provided Resource ID for this Certificate Authority. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#certificate_authority_id PrivatecaCertificateAuthority#certificate_authority_id}
        Returns:
        this
      • location

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder location​(String location)
        Parameters:
        location - Location of the CertificateAuthority. 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_authority#location PrivatecaCertificateAuthority#location}
        Returns:
        this
      • pool

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder pool​(String pool)
        Parameters:
        pool - The name of the CaPool this Certificate Authority 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_authority#pool PrivatecaCertificateAuthority#pool}
        Returns:
        this
      • deletionProtection

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder deletionProtection​(Boolean deletionProtection)
        Parameters:
        deletionProtection - Whether Terraform will be prevented from destroying the CertificateAuthority. When the field is set to true or unset in Terraform state, a 'terraform apply' or 'terraform destroy' that would delete the CertificateAuthority will fail. When the field is set to false, deleting the CertificateAuthority is allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#deletion_protection PrivatecaCertificateAuthority#deletion_protection}
        Returns:
        this
      • deletionProtection

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder deletionProtection​(com.hashicorp.cdktf.IResolvable deletionProtection)
        Parameters:
        deletionProtection - Whether Terraform will be prevented from destroying the CertificateAuthority. When the field is set to true or unset in Terraform state, a 'terraform apply' or 'terraform destroy' that would delete the CertificateAuthority will fail. When the field is set to false, deleting the CertificateAuthority is allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#deletion_protection PrivatecaCertificateAuthority#deletion_protection}
        Returns:
        this
      • desiredState

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder desiredState​(String desiredState)
        Parameters:
        desiredState - Desired state of the CertificateAuthority. Set this field to 'STAGED' to create a 'STAGED' root CA. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#desired_state PrivatecaCertificateAuthority#desired_state}
        Returns:
        this
      • gcsBucket

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder gcsBucket​(String gcsBucket)
        Parameters:
        gcsBucket - The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as 'gs://') or suffixes (such as '.googleapis.com'). For example, to use a bucket named my-bucket, you would simply specify 'my-bucket'. If not specified, a managed bucket will be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#gcs_bucket PrivatecaCertificateAuthority#gcs_bucket}
        Returns:
        this
      • id

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#id PrivatecaCertificateAuthority#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
      • ignoreActiveCertificatesOnDeletion

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder ignoreActiveCertificatesOnDeletion​(Boolean ignoreActiveCertificatesOnDeletion)
        Parameters:
        ignoreActiveCertificatesOnDeletion - This field allows the CA to be deleted even if the CA has active certs. Active certs include both unrevoked and unexpired certs. Use with care. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#ignore_active_certificates_on_deletion PrivatecaCertificateAuthority#ignore_active_certificates_on_deletion}
        Returns:
        this
      • ignoreActiveCertificatesOnDeletion

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder ignoreActiveCertificatesOnDeletion​(com.hashicorp.cdktf.IResolvable ignoreActiveCertificatesOnDeletion)
        Parameters:
        ignoreActiveCertificatesOnDeletion - This field allows the CA to be deleted even if the CA has active certs. Active certs include both unrevoked and unexpired certs. Use with care. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#ignore_active_certificates_on_deletion PrivatecaCertificateAuthority#ignore_active_certificates_on_deletion}
        Returns:
        this
      • labels

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder labels​(Map<String,​String> labels)
        Parameters:
        labels - Labels with user-defined metadata. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **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_authority#labels PrivatecaCertificateAuthority#labels}
        Returns:
        this
      • lifetime

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder lifetime​(String lifetime)
        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_authority#lifetime PrivatecaCertificateAuthority#lifetime}
        Returns:
        this
      • pemCaCertificate

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder pemCaCertificate​(String pemCaCertificate)
        Parameters:
        pemCaCertificate - The signed CA certificate issued from the subordinated CA's CSR. This is needed when activating the subordiante CA with a third party issuer. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#pem_ca_certificate PrivatecaCertificateAuthority#pem_ca_certificate}
        Returns:
        this
      • skipGracePeriod

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder skipGracePeriod​(Boolean skipGracePeriod)
        Parameters:
        skipGracePeriod - If this flag is set, the Certificate Authority will be deleted as soon as possible without a 30-day grace period where undeletion would have been allowed. If you proceed, there will be no way to recover this CA. Use with care. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#skip_grace_period PrivatecaCertificateAuthority#skip_grace_period}
        Returns:
        this
      • skipGracePeriod

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder skipGracePeriod​(com.hashicorp.cdktf.IResolvable skipGracePeriod)
        Parameters:
        skipGracePeriod - If this flag is set, the Certificate Authority will be deleted as soon as possible without a 30-day grace period where undeletion would have been allowed. If you proceed, there will be no way to recover this CA. Use with care. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#skip_grace_period PrivatecaCertificateAuthority#skip_grace_period}
        Returns:
        this
      • type

        @Stability(Stable)
        public PrivatecaCertificateAuthorityConfig.Builder type​(String type)
        Parameters:
        type - The Type of this CertificateAuthority. ~> **Note:** For 'SUBORDINATE' Certificate Authorities, they need to be activated before they can issue certificates. Default value: "SELF_SIGNED" Possible values: ["SELF_SIGNED", "SUBORDINATE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#type PrivatecaCertificateAuthority#type}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public PrivatecaCertificateAuthorityConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public PrivatecaCertificateAuthorityConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public PrivatecaCertificateAuthorityConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public PrivatecaCertificateAuthorityConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public PrivatecaCertificateAuthorityConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public PrivatecaCertificateAuthorityConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public PrivatecaCertificateAuthorityConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public PrivatecaCertificateAuthorityConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this