public final class RouterNat extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
RouterNat() |
| Modifier and Type | Method and Description |
|---|---|
RouterNat |
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> |
getNatIps()
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> |
getSubnetworks()
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 |
set(String fieldName,
Object value) |
RouterNat |
setIcmpIdleTimeoutSec(Integer icmpIdleTimeoutSec)
Timeout (in seconds) for ICMP connections.
|
RouterNat |
setLogConfig(RouterNatLogConfig logConfig)
Configure logging on this NAT.
|
RouterNat |
setMinPortsPerVm(Integer minPortsPerVm)
Minimum number of ports allocated to a VM from this NAT config.
|
RouterNat |
setName(String name)
Unique name of this Nat service.
|
RouterNat |
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 |
setNatIps(List<String> natIps)
A list of URLs of the IP resources used for this Nat service.
|
RouterNat |
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 |
setSubnetworks(List<RouterNatSubnetworkToNat> subnetworks)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat |
setTcpEstablishedIdleTimeoutSec(Integer tcpEstablishedIdleTimeoutSec)
Timeout (in seconds) for TCP established connections.
|
RouterNat |
setTcpTransitoryIdleTimeoutSec(Integer tcpTransitoryIdleTimeoutSec)
Timeout (in seconds) for TCP transitory connections.
|
RouterNat |
setUdpIdleTimeoutSec(Integer udpIdleTimeoutSec)
Timeout (in seconds) for UDP connections.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getIcmpIdleTimeoutSec()
null for nonepublic RouterNat setIcmpIdleTimeoutSec(Integer icmpIdleTimeoutSec)
icmpIdleTimeoutSec - icmpIdleTimeoutSec or null for nonepublic RouterNatLogConfig getLogConfig()
null for nonepublic RouterNat setLogConfig(RouterNatLogConfig logConfig)
logConfig - logConfig or null for nonepublic Integer getMinPortsPerVm()
null for nonepublic RouterNat setMinPortsPerVm(Integer minPortsPerVm)
minPortsPerVm - minPortsPerVm or null for nonepublic String getName()
null for nonepublic RouterNat setName(String name)
name - name or null for nonepublic String getNatIpAllocateOption()
null for nonepublic RouterNat setNatIpAllocateOption(String natIpAllocateOption)
natIpAllocateOption - natIpAllocateOption or null for nonepublic List<String> getNatIps()
null for nonepublic RouterNat setNatIps(List<String> natIps)
natIps - natIps or null for nonepublic String getSourceSubnetworkIpRangesToNat()
null for nonepublic RouterNat setSourceSubnetworkIpRangesToNat(String sourceSubnetworkIpRangesToNat)
sourceSubnetworkIpRangesToNat - sourceSubnetworkIpRangesToNat or null for nonepublic List<RouterNatSubnetworkToNat> getSubnetworks()
null for nonepublic RouterNat setSubnetworks(List<RouterNatSubnetworkToNat> subnetworks)
subnetworks - subnetworks or null for nonepublic Integer getTcpEstablishedIdleTimeoutSec()
null for nonepublic RouterNat setTcpEstablishedIdleTimeoutSec(Integer tcpEstablishedIdleTimeoutSec)
tcpEstablishedIdleTimeoutSec - tcpEstablishedIdleTimeoutSec or null for nonepublic Integer getTcpTransitoryIdleTimeoutSec()
null for nonepublic RouterNat setTcpTransitoryIdleTimeoutSec(Integer tcpTransitoryIdleTimeoutSec)
tcpTransitoryIdleTimeoutSec - tcpTransitoryIdleTimeoutSec or null for nonepublic Integer getUdpIdleTimeoutSec()
null for nonepublic RouterNat setUdpIdleTimeoutSec(Integer udpIdleTimeoutSec)
udpIdleTimeoutSec - udpIdleTimeoutSec or null for nonepublic RouterNat set(String fieldName, Object value)
set in class GenericJsonpublic RouterNat clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.