Class ComputeRouterNatSubnetwork.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_router_nat.ComputeRouterNatSubnetwork.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRouterNatSubnetwork>
- Enclosing interface:
- ComputeRouterNatSubnetwork
@Stability(Stable) public static final class ComputeRouterNatSubnetwork.Builder extends Object implements software.amazon.jsii.Builder<ComputeRouterNatSubnetwork>
A builder forComputeRouterNatSubnetwork
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRouterNatSubnetworkbuild()Builds the configured instance.ComputeRouterNatSubnetwork.Buildername(String name)Sets the value ofComputeRouterNatSubnetwork.getName()ComputeRouterNatSubnetwork.BuildersecondaryIpRangeNames(List<String> secondaryIpRangeNames)Sets the value ofComputeRouterNatSubnetwork.getSecondaryIpRangeNames()ComputeRouterNatSubnetwork.BuildersourceIpRangesToNat(List<String> sourceIpRangesToNat)Sets the value ofComputeRouterNatSubnetwork.getSourceIpRangesToNat()
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeRouterNatSubnetwork.Builder name(String name)
Sets the value ofComputeRouterNatSubnetwork.getName()- Parameters:
name- Self-link of subnetwork to NAT. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_nat#name ComputeRouterNat#name}- Returns:
this
-
sourceIpRangesToNat
@Stability(Stable) public ComputeRouterNatSubnetwork.Builder sourceIpRangesToNat(List<String> sourceIpRangesToNat)
Sets the value ofComputeRouterNatSubnetwork.getSourceIpRangesToNat()- Parameters:
sourceIpRangesToNat- List of options for which source IPs in the subnetwork should have NAT enabled. Supported values include: 'ALL_IP_RANGES', 'LIST_OF_SECONDARY_IP_RANGES', 'PRIMARY_IP_RANGE'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_nat#source_ip_ranges_to_nat ComputeRouterNat#source_ip_ranges_to_nat}- Returns:
this
-
secondaryIpRangeNames
@Stability(Stable) public ComputeRouterNatSubnetwork.Builder secondaryIpRangeNames(List<String> secondaryIpRangeNames)
Sets the value ofComputeRouterNatSubnetwork.getSecondaryIpRangeNames()- Parameters:
secondaryIpRangeNames- List of the secondary ranges of the subnetwork that are allowed to use NAT. This can be populated only if 'LIST_OF_SECONDARY_IP_RANGES' is one of the values in sourceIpRangesToNat Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_nat#secondary_ip_range_names ComputeRouterNat#secondary_ip_range_names}- Returns:
this
-
build
@Stability(Stable) public ComputeRouterNatSubnetwork build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRouterNatSubnetwork>- Returns:
- a new instance of
ComputeRouterNatSubnetwork - Throws:
NullPointerException- if any required attribute was not provided
-
-