Class ComputeRouterNatSubnetwork.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public ComputeRouterNatSubnetwork.Builder name​(String name)
        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)
        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)
        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