Class ServiceNetworkingConnectionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.service_networking_connection.ServiceNetworkingConnectionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceNetworkingConnectionConfig>
- Enclosing interface:
- ServiceNetworkingConnectionConfig
@Stability(Stable) public static final class ServiceNetworkingConnectionConfig.Builder extends Object implements software.amazon.jsii.Builder<ServiceNetworkingConnectionConfig>
A builder forServiceNetworkingConnectionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
network
@Stability(Stable) public ServiceNetworkingConnectionConfig.Builder network(String network)
Sets the value ofServiceNetworkingConnectionConfig.getNetwork()- Parameters:
network- Name of VPC network connected with service producers using VPC peering. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#network ServiceNetworkingConnection#network}- Returns:
this
-
reservedPeeringRanges
@Stability(Stable) public ServiceNetworkingConnectionConfig.Builder reservedPeeringRanges(List<String> reservedPeeringRanges)
Sets the value ofServiceNetworkingConnectionConfig.getReservedPeeringRanges()- Parameters:
reservedPeeringRanges- Named IP address range(s) of PEERING type reserved for this service provider. This parameter is required. Note that invoking this method with a different range when connection is already established will not reallocate already provisioned service producer subnetworks. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#reserved_peering_ranges ServiceNetworkingConnection#reserved_peering_ranges}- Returns:
this
-
service
@Stability(Stable) public ServiceNetworkingConnectionConfig.Builder service(String service)
Sets the value ofServiceNetworkingConnectionConfig.getService()- Parameters:
service- Provider peering service that is managing peering connectivity for a service provider organization. This parameter is required. For Google services that support this functionality it is 'servicenetworking.googleapis.com'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#service ServiceNetworkingConnection#service}- Returns:
this
-
deletionPolicy
@Stability(Stable) public ServiceNetworkingConnectionConfig.Builder deletionPolicy(String deletionPolicy)
Sets the value ofServiceNetworkingConnectionConfig.getDeletionPolicy()- Parameters:
deletionPolicy- When set to ABANDON, terraform will abandon management of the resource instead of deleting it. Prevents terraform apply failures with CloudSQL. Note: The resource will still exist. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#deletion_policy ServiceNetworkingConnection#deletion_policy}- Returns:
this
-
id
@Stability(Stable) public ServiceNetworkingConnectionConfig.Builder id(String id)
Sets the value ofServiceNetworkingConnectionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#id ServiceNetworkingConnection#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
-
timeouts
@Stability(Stable) public ServiceNetworkingConnectionConfig.Builder timeouts(ServiceNetworkingConnectionTimeouts timeouts)
Sets the value ofServiceNetworkingConnectionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#timeouts ServiceNetworkingConnection#timeouts}- Returns:
this
-
updateOnCreationFail
@Stability(Stable) public ServiceNetworkingConnectionConfig.Builder updateOnCreationFail(Boolean updateOnCreationFail)
Sets the value ofServiceNetworkingConnectionConfig.getUpdateOnCreationFail()- Parameters:
updateOnCreationFail- When set to true, enforce an update of the reserved peering ranges on the existing service networking connection in case of a new connection creation failure. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#update_on_creation_fail ServiceNetworkingConnection#update_on_creation_fail}- Returns:
this
-
updateOnCreationFail
@Stability(Stable) public ServiceNetworkingConnectionConfig.Builder updateOnCreationFail(com.hashicorp.cdktf.IResolvable updateOnCreationFail)
Sets the value ofServiceNetworkingConnectionConfig.getUpdateOnCreationFail()- Parameters:
updateOnCreationFail- When set to true, enforce an update of the reserved peering ranges on the existing service networking connection in case of a new connection creation failure. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#update_on_creation_fail ServiceNetworkingConnection#update_on_creation_fail}- Returns:
this
-
connection
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public ServiceNetworkingConnectionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ServiceNetworkingConnectionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceNetworkingConnectionConfig>- Returns:
- a new instance of
ServiceNetworkingConnectionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-