Class ComputeNetworkPeeringConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_network_peering.ComputeNetworkPeeringConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNetworkPeeringConfig>
- Enclosing interface:
- ComputeNetworkPeeringConfig
@Stability(Stable) public static final class ComputeNetworkPeeringConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeNetworkPeeringConfig>
A builder forComputeNetworkPeeringConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder name(String name)
Sets the value ofComputeNetworkPeeringConfig.getName()- Parameters:
name- Name of the peering. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#name ComputeNetworkPeering#name}- Returns:
this
-
network
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder network(String network)
Sets the value ofComputeNetworkPeeringConfig.getNetwork()- Parameters:
network- The primary network of the peering. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#network ComputeNetworkPeering#network}- Returns:
this
-
peerNetwork
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder peerNetwork(String peerNetwork)
Sets the value ofComputeNetworkPeeringConfig.getPeerNetwork()- Parameters:
peerNetwork- The peer network in the peering. The peer network may belong to a different project. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#peer_network ComputeNetworkPeering#peer_network}- Returns:
this
-
exportCustomRoutes
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder exportCustomRoutes(Boolean exportCustomRoutes)
Sets the value ofComputeNetworkPeeringConfig.getExportCustomRoutes()- Parameters:
exportCustomRoutes- Whether to export the custom routes to the peer network. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_custom_routes ComputeNetworkPeering#export_custom_routes}- Returns:
this
-
exportCustomRoutes
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder exportCustomRoutes(com.hashicorp.cdktf.IResolvable exportCustomRoutes)
Sets the value ofComputeNetworkPeeringConfig.getExportCustomRoutes()- Parameters:
exportCustomRoutes- Whether to export the custom routes to the peer network. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_custom_routes ComputeNetworkPeering#export_custom_routes}- Returns:
this
-
exportSubnetRoutesWithPublicIp
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder exportSubnetRoutesWithPublicIp(Boolean exportSubnetRoutesWithPublicIp)
Sets the value ofComputeNetworkPeeringConfig.getExportSubnetRoutesWithPublicIp()- Parameters:
exportSubnetRoutesWithPublicIp- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_subnet_routes_with_public_ip ComputeNetworkPeering#export_subnet_routes_with_public_ip}.- Returns:
this
-
exportSubnetRoutesWithPublicIp
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder exportSubnetRoutesWithPublicIp(com.hashicorp.cdktf.IResolvable exportSubnetRoutesWithPublicIp)
Sets the value ofComputeNetworkPeeringConfig.getExportSubnetRoutesWithPublicIp()- Parameters:
exportSubnetRoutesWithPublicIp- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_subnet_routes_with_public_ip ComputeNetworkPeering#export_subnet_routes_with_public_ip}.- Returns:
this
-
id
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder id(String id)
Sets the value ofComputeNetworkPeeringConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#id ComputeNetworkPeering#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
-
importCustomRoutes
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder importCustomRoutes(Boolean importCustomRoutes)
Sets the value ofComputeNetworkPeeringConfig.getImportCustomRoutes()- Parameters:
importCustomRoutes- Whether to export the custom routes from the peer network. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_custom_routes ComputeNetworkPeering#import_custom_routes}- Returns:
this
-
importCustomRoutes
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder importCustomRoutes(com.hashicorp.cdktf.IResolvable importCustomRoutes)
Sets the value ofComputeNetworkPeeringConfig.getImportCustomRoutes()- Parameters:
importCustomRoutes- Whether to export the custom routes from the peer network. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_custom_routes ComputeNetworkPeering#import_custom_routes}- Returns:
this
-
importSubnetRoutesWithPublicIp
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder importSubnetRoutesWithPublicIp(Boolean importSubnetRoutesWithPublicIp)
Sets the value ofComputeNetworkPeeringConfig.getImportSubnetRoutesWithPublicIp()- Parameters:
importSubnetRoutesWithPublicIp- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_subnet_routes_with_public_ip ComputeNetworkPeering#import_subnet_routes_with_public_ip}.- Returns:
this
-
importSubnetRoutesWithPublicIp
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder importSubnetRoutesWithPublicIp(com.hashicorp.cdktf.IResolvable importSubnetRoutesWithPublicIp)
Sets the value ofComputeNetworkPeeringConfig.getImportSubnetRoutesWithPublicIp()- Parameters:
importSubnetRoutesWithPublicIp- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_subnet_routes_with_public_ip ComputeNetworkPeering#import_subnet_routes_with_public_ip}.- Returns:
this
-
stackType
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder stackType(String stackType)
Sets the value ofComputeNetworkPeeringConfig.getStackType()- Parameters:
stackType- Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Possible values: ["IPV4_ONLY", "IPV4_IPV6"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#stack_type ComputeNetworkPeering#stack_type}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeNetworkPeeringConfig.Builder timeouts(ComputeNetworkPeeringTimeouts timeouts)
Sets the value ofComputeNetworkPeeringConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#timeouts ComputeNetworkPeering#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeNetworkPeeringConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNetworkPeeringConfig>- Returns:
- a new instance of
ComputeNetworkPeeringConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-