public final class RouterNat
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RouterNat() |
Modifier and Type | Method and Description |
---|---|
RouterNat |
clone() |
String |
getAutoNetworkTier()
The network tier to use when automatically reserving NAT IP addresses.
|
List<String> |
getDrainNatIps()
A list of URLs of the IP resources to be drained.
|
Boolean |
getEnableDynamicPortAllocation()
Enable Dynamic Port Allocation.
|
Boolean |
getEnableEndpointIndependentMapping() |
List<String> |
getEndpointTypes()
List of NAT-ted endpoint types supported by the Nat Gateway.
|
Integer |
getIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections.
|
RouterNatLogConfig |
getLogConfig()
Configure logging on this NAT.
|
Integer |
getMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is
enabled.
|
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.
|
List<RouterNatRule> |
getRules()
A list of rules associated with this NAT.
|
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 |
getTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
|
Integer |
getTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections.
|
String |
getType()
Indicates whether this NAT is used for public or private IP translation.
|
Integer |
getUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections.
|
RouterNat |
set(String fieldName,
Object value) |
RouterNat |
setAutoNetworkTier(String autoNetworkTier)
The network tier to use when automatically reserving NAT IP addresses.
|
RouterNat |
setDrainNatIps(List<String> drainNatIps)
A list of URLs of the IP resources to be drained.
|
RouterNat |
setEnableDynamicPortAllocation(Boolean enableDynamicPortAllocation)
Enable Dynamic Port Allocation.
|
RouterNat |
setEnableEndpointIndependentMapping(Boolean enableEndpointIndependentMapping) |
RouterNat |
setEndpointTypes(List<String> endpointTypes)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
RouterNat |
setIcmpIdleTimeoutSec(Integer icmpIdleTimeoutSec)
Timeout (in seconds) for ICMP connections.
|
RouterNat |
setLogConfig(RouterNatLogConfig logConfig)
Configure logging on this NAT.
|
RouterNat |
setMaxPortsPerVm(Integer maxPortsPerVm)
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is
enabled.
|
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 |
setRules(List<RouterNatRule> rules)
A list of rules associated with this NAT.
|
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 |
setTcpTimeWaitTimeoutSec(Integer tcpTimeWaitTimeoutSec)
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
|
RouterNat |
setTcpTransitoryIdleTimeoutSec(Integer tcpTransitoryIdleTimeoutSec)
Timeout (in seconds) for TCP transitory connections.
|
RouterNat |
setType(String type)
Indicates whether this NAT is used for public or private IP translation.
|
RouterNat |
setUdpIdleTimeoutSec(Integer udpIdleTimeoutSec)
Timeout (in seconds) for UDP connections.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getAutoNetworkTier()
null
for nonepublic RouterNat setAutoNetworkTier(String autoNetworkTier)
autoNetworkTier
- autoNetworkTier or null
for nonepublic List<String> getDrainNatIps()
null
for nonepublic RouterNat setDrainNatIps(List<String> drainNatIps)
drainNatIps
- drainNatIps or null
for nonepublic Boolean getEnableDynamicPortAllocation()
null
for nonepublic RouterNat setEnableDynamicPortAllocation(Boolean enableDynamicPortAllocation)
enableDynamicPortAllocation
- enableDynamicPortAllocation or null
for nonepublic Boolean getEnableEndpointIndependentMapping()
null
for nonepublic RouterNat setEnableEndpointIndependentMapping(Boolean enableEndpointIndependentMapping)
enableEndpointIndependentMapping
- enableEndpointIndependentMapping or null
for nonepublic List<String> getEndpointTypes()
null
for nonepublic RouterNat setEndpointTypes(List<String> endpointTypes)
endpointTypes
- endpointTypes or null
for nonepublic 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 getMaxPortsPerVm()
null
for nonepublic RouterNat setMaxPortsPerVm(Integer maxPortsPerVm)
maxPortsPerVm
- maxPortsPerVm 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 List<RouterNatRule> getRules()
null
for nonepublic RouterNat setRules(List<RouterNatRule> rules)
rules
- rules 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 getTcpTimeWaitTimeoutSec()
null
for nonepublic RouterNat setTcpTimeWaitTimeoutSec(Integer tcpTimeWaitTimeoutSec)
tcpTimeWaitTimeoutSec
- tcpTimeWaitTimeoutSec or null
for nonepublic Integer getTcpTransitoryIdleTimeoutSec()
null
for nonepublic RouterNat setTcpTransitoryIdleTimeoutSec(Integer tcpTransitoryIdleTimeoutSec)
tcpTransitoryIdleTimeoutSec
- tcpTransitoryIdleTimeoutSec or null
for nonepublic String getType()
null
for nonepublic RouterNat setType(String type)
type
- type 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 com.google.api.client.json.GenericJson
public RouterNat clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.