Modifier and Type | Method and Description |
---|---|
RouterNat.Builder |
addAllNatIps(List<String> natIps)
A list of URLs of the IP resources used for this Nat service.
|
RouterNat.Builder |
addAllSubnetworks(List<RouterNatSubnetworkToNat> subnetworks)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
addNatIps(String natIps)
A list of URLs of the IP resources used for this Nat service.
|
RouterNat.Builder |
addSubnetworks(RouterNatSubnetworkToNat subnetworks)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat |
build() |
RouterNat.Builder |
clone() |
Integer |
getIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections.
|
RouterNatLogConfig |
getLogConfig()
Configure logging on this NAT.
|
Integer |
getMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config.
|
String |
getName()
Unique name of this Nat service.
|
String |
getNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY:
Uses only Nat IP addresses provided by customers.
|
List<String> |
getNatIpsList()
A list of URLs of the IP resources used for this Nat service.
|
String |
getSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: -
ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
List<RouterNatSubnetworkToNat> |
getSubnetworksList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
Integer |
getTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections.
|
Integer |
getTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections.
|
Integer |
getUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections.
|
RouterNat.Builder |
mergeFrom(RouterNat other) |
RouterNat.Builder |
setIcmpIdleTimeoutSec(Integer icmpIdleTimeoutSec)
Timeout (in seconds) for ICMP connections.
|
RouterNat.Builder |
setLogConfig(RouterNatLogConfig logConfig)
Configure logging on this NAT.
|
RouterNat.Builder |
setMinPortsPerVm(Integer minPortsPerVm)
Minimum number of ports allocated to a VM from this NAT config.
|
RouterNat.Builder |
setName(String name)
Unique name of this Nat service.
|
RouterNat.Builder |
setNatIpAllocateOption(String natIpAllocateOption)
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY:
Uses only Nat IP addresses provided by customers.
|
RouterNat.Builder |
setSourceSubnetworkIpRangesToNat(String sourceSubnetworkIpRangesToNat)
Specify the Nat option, which can take one of the following values: -
ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
RouterNat.Builder |
setTcpEstablishedIdleTimeoutSec(Integer tcpEstablishedIdleTimeoutSec)
Timeout (in seconds) for TCP established connections.
|
RouterNat.Builder |
setTcpTransitoryIdleTimeoutSec(Integer tcpTransitoryIdleTimeoutSec)
Timeout (in seconds) for TCP transitory connections.
|
RouterNat.Builder |
setUdpIdleTimeoutSec(Integer udpIdleTimeoutSec)
Timeout (in seconds) for UDP connections.
|
public RouterNat.Builder mergeFrom(RouterNat other)
public Integer getIcmpIdleTimeoutSec()
public RouterNat.Builder setIcmpIdleTimeoutSec(Integer icmpIdleTimeoutSec)
public RouterNatLogConfig getLogConfig()
public RouterNat.Builder setLogConfig(RouterNatLogConfig logConfig)
public Integer getMinPortsPerVm()
public RouterNat.Builder setMinPortsPerVm(Integer minPortsPerVm)
public String getName()
public RouterNat.Builder setName(String name)
public String getNatIpAllocateOption()
public RouterNat.Builder setNatIpAllocateOption(String natIpAllocateOption)
public List<String> getNatIpsList()
public RouterNat.Builder addAllNatIps(List<String> natIps)
public RouterNat.Builder addNatIps(String natIps)
public String getSourceSubnetworkIpRangesToNat()
public RouterNat.Builder setSourceSubnetworkIpRangesToNat(String sourceSubnetworkIpRangesToNat)
public List<RouterNatSubnetworkToNat> getSubnetworksList()
public RouterNat.Builder addAllSubnetworks(List<RouterNatSubnetworkToNat> subnetworks)
public RouterNat.Builder addSubnetworks(RouterNatSubnetworkToNat subnetworks)
public Integer getTcpEstablishedIdleTimeoutSec()
public RouterNat.Builder setTcpEstablishedIdleTimeoutSec(Integer tcpEstablishedIdleTimeoutSec)
public Integer getTcpTransitoryIdleTimeoutSec()
public RouterNat.Builder setTcpTransitoryIdleTimeoutSec(Integer tcpTransitoryIdleTimeoutSec)
public Integer getUdpIdleTimeoutSec()
public RouterNat.Builder setUdpIdleTimeoutSec(Integer udpIdleTimeoutSec)
public RouterNat build()
public RouterNat.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.