Class ComputeRouterNatRulesAction.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_router_nat.ComputeRouterNatRulesAction.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRouterNatRulesAction>
- Enclosing interface:
- ComputeRouterNatRulesAction
@Stability(Stable) public static final class ComputeRouterNatRulesAction.Builder extends Object implements software.amazon.jsii.Builder<ComputeRouterNatRulesAction>
A builder forComputeRouterNatRulesAction
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRouterNatRulesActionbuild()Builds the configured instance.ComputeRouterNatRulesAction.BuildersourceNatActiveIps(List<String> sourceNatActiveIps)Sets the value ofComputeRouterNatRulesAction.getSourceNatActiveIps()ComputeRouterNatRulesAction.BuildersourceNatDrainIps(List<String> sourceNatDrainIps)Sets the value ofComputeRouterNatRulesAction.getSourceNatDrainIps()
-
-
-
Method Detail
-
sourceNatActiveIps
@Stability(Stable) public ComputeRouterNatRulesAction.Builder sourceNatActiveIps(List<String> sourceNatActiveIps)
Sets the value ofComputeRouterNatRulesAction.getSourceNatActiveIps()- Parameters:
sourceNatActiveIps- A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_nat#source_nat_active_ips ComputeRouterNat#source_nat_active_ips}- Returns:
this
-
sourceNatDrainIps
@Stability(Stable) public ComputeRouterNatRulesAction.Builder sourceNatDrainIps(List<String> sourceNatDrainIps)
Sets the value ofComputeRouterNatRulesAction.getSourceNatDrainIps()- Parameters:
sourceNatDrainIps- A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_nat#source_nat_drain_ips ComputeRouterNat#source_nat_drain_ips}- Returns:
this
-
build
@Stability(Stable) public ComputeRouterNatRulesAction build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRouterNatRulesAction>- Returns:
- a new instance of
ComputeRouterNatRulesAction - Throws:
NullPointerException- if any required attribute was not provided
-
-