Class SqlDatabaseInstanceSettingsIpConfiguration.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.sql_database_instance.SqlDatabaseInstanceSettingsIpConfiguration.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SqlDatabaseInstanceSettingsIpConfiguration>
- Enclosing interface:
- SqlDatabaseInstanceSettingsIpConfiguration
@Stability(Stable) public static final class SqlDatabaseInstanceSettingsIpConfiguration.Builder extends Object implements software.amazon.jsii.Builder<SqlDatabaseInstanceSettingsIpConfiguration>
A builder forSqlDatabaseInstanceSettingsIpConfiguration
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
allocatedIpRange
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder allocatedIpRange(String allocatedIpRange)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.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 instance ip will be created in the allocated range. The range name must comply with RFC 1035. 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
-
authorizedNetworks
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder authorizedNetworks(com.hashicorp.cdktf.IResolvable authorizedNetworks)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getAuthorizedNetworks()- Parameters:
authorizedNetworks- authorized_networks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#authorized_networks SqlDatabaseInstance#authorized_networks}- Returns:
this
-
authorizedNetworks
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder authorizedNetworks(List<? extends SqlDatabaseInstanceSettingsIpConfigurationAuthorizedNetworks> authorizedNetworks)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getAuthorizedNetworks()- Parameters:
authorizedNetworks- authorized_networks block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#authorized_networks SqlDatabaseInstance#authorized_networks}- Returns:
this
-
enablePrivatePathForGoogleCloudServices
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder enablePrivatePathForGoogleCloudServices(Boolean enablePrivatePathForGoogleCloudServices)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getEnablePrivatePathForGoogleCloudServices()- Parameters:
enablePrivatePathForGoogleCloudServices- Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#enable_private_path_for_google_cloud_services SqlDatabaseInstance#enable_private_path_for_google_cloud_services}- Returns:
this
-
enablePrivatePathForGoogleCloudServices
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder enablePrivatePathForGoogleCloudServices(com.hashicorp.cdktf.IResolvable enablePrivatePathForGoogleCloudServices)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getEnablePrivatePathForGoogleCloudServices()- Parameters:
enablePrivatePathForGoogleCloudServices- Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#enable_private_path_for_google_cloud_services SqlDatabaseInstance#enable_private_path_for_google_cloud_services}- Returns:
this
-
ipv4Enabled
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder ipv4Enabled(Boolean ipv4Enabled)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getIpv4Enabled()- Parameters:
ipv4Enabled- Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#ipv4_enabled SqlDatabaseInstance#ipv4_enabled}- Returns:
this
-
ipv4Enabled
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder ipv4Enabled(com.hashicorp.cdktf.IResolvable ipv4Enabled)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getIpv4Enabled()- Parameters:
ipv4Enabled- Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#ipv4_enabled SqlDatabaseInstance#ipv4_enabled}- Returns:
this
-
privateNetwork
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder privateNetwork(String privateNetwork)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getPrivateNetwork()- Parameters:
privateNetwork- The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#private_network SqlDatabaseInstance#private_network}- Returns:
this
-
pscConfig
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder pscConfig(com.hashicorp.cdktf.IResolvable pscConfig)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getPscConfig()- Parameters:
pscConfig- psc_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#psc_config SqlDatabaseInstance#psc_config}- Returns:
this
-
pscConfig
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder pscConfig(List<? extends SqlDatabaseInstanceSettingsIpConfigurationPscConfig> pscConfig)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getPscConfig()- Parameters:
pscConfig- psc_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#psc_config SqlDatabaseInstance#psc_config}- Returns:
this
-
requireSsl
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder requireSsl(Boolean requireSsl)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getRequireSsl()- Parameters:
requireSsl- Whether SSL connections over IP are enforced or not. To change this field, also set the corresponding value in ssl_mode if it has been set too. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#require_ssl SqlDatabaseInstance#require_ssl}- Returns:
this
-
requireSsl
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder requireSsl(com.hashicorp.cdktf.IResolvable requireSsl)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getRequireSsl()- Parameters:
requireSsl- Whether SSL connections over IP are enforced or not. To change this field, also set the corresponding value in ssl_mode if it has been set too. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#require_ssl SqlDatabaseInstance#require_ssl}- Returns:
this
-
serverCaMode
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder serverCaMode(String serverCaMode)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getServerCaMode()- Parameters:
serverCaMode- Specify how the server certificate's Certificate Authority is hosted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#server_ca_mode SqlDatabaseInstance#server_ca_mode}- Returns:
this
-
sslMode
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration.Builder sslMode(String sslMode)
Sets the value ofSqlDatabaseInstanceSettingsIpConfiguration.getSslMode()- Parameters:
sslMode- Specify how SSL connection should be enforced in DB connections. This field provides more SSL enforcement options compared to require_ssl. To change this field, also set the correspoding value in require_ssl until next major release. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_database_instance#ssl_mode SqlDatabaseInstance#ssl_mode}- Returns:
this
-
build
@Stability(Stable) public SqlDatabaseInstanceSettingsIpConfiguration build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SqlDatabaseInstanceSettingsIpConfiguration>- Returns:
- a new instance of
SqlDatabaseInstanceSettingsIpConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-
-