Class SqlSourceRepresentationInstance.Builder

    • Method Detail

      • connection

        @Stability(Experimental)
        public SqlSourceRepresentationInstance.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public SqlSourceRepresentationInstance.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public SqlSourceRepresentationInstance.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public SqlSourceRepresentationInstance.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public SqlSourceRepresentationInstance.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public SqlSourceRepresentationInstance.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public SqlSourceRepresentationInstance.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • databaseVersion

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder databaseVersion​(String databaseVersion)
        The MySQL version running on your source database server.

        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}

        Parameters:
        databaseVersion - The MySQL version running on your source database server. This parameter is required.
        Returns:
        this
      • host

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder host​(String host)
        The IPv4 address and port for the external server, or the the DNS address for the external server.

        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}

        Parameters:
        host - The IPv4 address and port for the external server, or the the DNS address for the external server. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder name​(String name)
        The name of the source representation instance. Use any valid Cloud SQL instance name.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#name SqlSourceRepresentationInstance#name}

        Parameters:
        name - The name of the source representation instance. Use any valid Cloud SQL instance name. This parameter is required.
        Returns:
        this
      • caCertificate

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder caCertificate​(String 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}

        Parameters:
        caCertificate - The CA certificate on the external server. Include only if SSL/TLS is used on the external server. This parameter is required.
        Returns:
        this
      • clientCertificate

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder clientCertificate​(String 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}

        Parameters:
        clientCertificate - The client certificate on the external server. This parameter is required.
        Returns:
        this
      • clientKey

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder clientKey​(String 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}

        Parameters:
        clientKey - The private key file for the client certificate on the external server. This parameter is required.
        Returns:
        this
      • dumpFilePath

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder dumpFilePath​(String dumpFilePath)
        A file in the bucket that contains the data from the external server.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#dump_file_path SqlSourceRepresentationInstance#dump_file_path}

        Parameters:
        dumpFilePath - A file in the bucket that contains the data from the external server. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder id​(String 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.

        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}. This parameter is required.
        Returns:
        this
      • password

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder password​(String password)
        The password for the replication user account.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#password SqlSourceRepresentationInstance#password}

        Parameters:
        password - The password for the replication user account. This parameter is required.
        Returns:
        this
      • port

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder port​(Number port)
        The externally accessible port for the source database server. Defaults to 3306.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#port SqlSourceRepresentationInstance#port}

        Parameters:
        port - The externally accessible port for the source database server. Defaults to 3306. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#project SqlSourceRepresentationInstance#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#project SqlSourceRepresentationInstance#project}. This parameter is required.
        Returns:
        this
      • region

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder region​(String 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}

        Parameters:
        region - The Region in which the created instance should reside. If it is not provided, the provider region is used. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder timeouts​(SqlSourceRepresentationInstanceTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#timeouts SqlSourceRepresentationInstance#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this
      • username

        @Stability(Stable)
        public SqlSourceRepresentationInstance.Builder username​(String username)
        The replication user account 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#username SqlSourceRepresentationInstance#username}

        Parameters:
        username - The replication user account on the external server. This parameter is required.
        Returns:
        this