Class SqlSourceRepresentationInstanceConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • databaseVersion

        @Stability(Stable)
        public SqlSourceRepresentationInstanceConfig.Builder databaseVersion​(String databaseVersion)
        Parameters:
        databaseVersion - The MySQL version running on your source database server. This parameter is required. Possible values: ["MYSQL_5_6", "MYSQL_5_7", "MYSQL_8_0", "POSTGRES_9_6", "POSTGRES_10", "POSTGRES_11", "POSTGRES_12", "POSTGRES_13", "POSTGRES_14"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#database_version SqlSourceRepresentationInstance#database_version}
        Returns:
        this
      • host

        @Stability(Stable)
        public SqlSourceRepresentationInstanceConfig.Builder host​(String host)
        Parameters:
        host - The IPv4 address and port for the external server, or the the DNS address for the external server. This parameter is required. If the external server is hosted on Cloud SQL, the port is 5432. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#host SqlSourceRepresentationInstance#host}
        Returns:
        this
      • name

        @Stability(Stable)
        public SqlSourceRepresentationInstanceConfig.Builder name​(String name)
        Parameters:
        name - The name of the source representation instance. Use any valid Cloud SQL instance name. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#name SqlSourceRepresentationInstance#name}
        Returns:
        this
      • caCertificate

        @Stability(Stable)
        public SqlSourceRepresentationInstanceConfig.Builder caCertificate​(String caCertificate)
        Parameters:
        caCertificate - The CA certificate on the external server. Include only if SSL/TLS is used on the external server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#ca_certificate SqlSourceRepresentationInstance#ca_certificate}
        Returns:
        this
      • clientCertificate

        @Stability(Stable)
        public SqlSourceRepresentationInstanceConfig.Builder clientCertificate​(String clientCertificate)
        Parameters:
        clientCertificate - The client certificate on the external server. Required only for server-client authentication. Include only if SSL/TLS is used on the external server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#client_certificate SqlSourceRepresentationInstance#client_certificate}
        Returns:
        this
      • clientKey

        @Stability(Stable)
        public SqlSourceRepresentationInstanceConfig.Builder clientKey​(String clientKey)
        Parameters:
        clientKey - The private key file for the client certificate on the external server. Required only for server-client authentication. Include only if SSL/TLS is used on the external server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#client_key SqlSourceRepresentationInstance#client_key}
        Returns:
        this
      • id

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

        @Stability(Stable)
        public SqlSourceRepresentationInstanceConfig.Builder region​(String region)
        Parameters:
        region - The Region in which the created instance should reside. If it is not provided, the provider region is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#region SqlSourceRepresentationInstance#region}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this