Class SqlDatabaseInstanceClone.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • sourceInstanceName

        @Stability(Stable)
        public SqlDatabaseInstanceClone.Builder sourceInstanceName​(String sourceInstanceName)
        Parameters:
        sourceInstanceName - The name of the instance from which the point in time should be restored. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#source_instance_name SqlDatabaseInstance#source_instance_name}
        Returns:
        this
      • allocatedIpRange

        @Stability(Stable)
        public SqlDatabaseInstanceClone.Builder allocatedIpRange​(String allocatedIpRange)
        Parameters:
        allocatedIpRange - The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#allocated_ip_range SqlDatabaseInstance#allocated_ip_range}
        Returns:
        this
      • databaseNames

        @Stability(Stable)
        public SqlDatabaseInstanceClone.Builder databaseNames​(List<String> databaseNames)
        Parameters:
        databaseNames - (SQL Server only, use with point_in_time) clone only the specified databases from the source instance. Clone all databases if empty. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#database_names SqlDatabaseInstance#database_names}
        Returns:
        this
      • pointInTime

        @Stability(Stable)
        public SqlDatabaseInstanceClone.Builder pointInTime​(String pointInTime)
        Parameters:
        pointInTime - The timestamp of the point in time that should be restored. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#point_in_time SqlDatabaseInstance#point_in_time}
        Returns:
        this
      • preferredZone

        @Stability(Stable)
        public SqlDatabaseInstanceClone.Builder preferredZone​(String preferredZone)
        Parameters:
        preferredZone - (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#preferred_zone SqlDatabaseInstance#preferred_zone}
        Returns:
        this