Class SqlDatabaseInstanceClone.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.sql_database_instance.SqlDatabaseInstanceClone.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SqlDatabaseInstanceClone>
- Enclosing interface:
- SqlDatabaseInstanceClone
@Stability(Stable) public static final class SqlDatabaseInstanceClone.Builder extends Object implements software.amazon.jsii.Builder<SqlDatabaseInstanceClone>
A builder forSqlDatabaseInstanceClone
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlDatabaseInstanceClone.BuilderallocatedIpRange(String allocatedIpRange)Sets the value ofSqlDatabaseInstanceClone.getAllocatedIpRange()SqlDatabaseInstanceClonebuild()Builds the configured instance.SqlDatabaseInstanceClone.BuilderdatabaseNames(List<String> databaseNames)Sets the value ofSqlDatabaseInstanceClone.getDatabaseNames()SqlDatabaseInstanceClone.BuilderpointInTime(String pointInTime)Sets the value ofSqlDatabaseInstanceClone.getPointInTime()SqlDatabaseInstanceClone.BuilderpreferredZone(String preferredZone)Sets the value ofSqlDatabaseInstanceClone.getPreferredZone()SqlDatabaseInstanceClone.BuildersourceInstanceName(String sourceInstanceName)Sets the value ofSqlDatabaseInstanceClone.getSourceInstanceName()
-
-
-
Method Detail
-
sourceInstanceName
@Stability(Stable) public SqlDatabaseInstanceClone.Builder sourceInstanceName(String sourceInstanceName)
Sets the value ofSqlDatabaseInstanceClone.getSourceInstanceName()- 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)
Sets the value ofSqlDatabaseInstanceClone.getAllocatedIpRange()- 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)
Sets the value ofSqlDatabaseInstanceClone.getDatabaseNames()- 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)
Sets the value ofSqlDatabaseInstanceClone.getPointInTime()- 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)
Sets the value ofSqlDatabaseInstanceClone.getPreferredZone()- 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
-
build
@Stability(Stable) public SqlDatabaseInstanceClone build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SqlDatabaseInstanceClone>- Returns:
- a new instance of
SqlDatabaseInstanceClone - Throws:
NullPointerException- if any required attribute was not provided
-
-