target.apidocs.com.google.api.services.compute.model.RouterNatRuleAction.html Maven / Gradle / Ivy
RouterNatRuleAction (Compute Engine API v1-rev20250107-2.0.0)
com.google.api.services.compute.model
Class RouterNatRuleAction
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.RouterNatRuleAction
-
public final class RouterNatRuleAction
extends com.google.api.client.json.GenericJson
Model definition for RouterNatRuleAction.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
RouterNatRuleAction()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
RouterNatRuleAction
clone()
List<String>
getSourceNatActiveIps()
A list of URLs of the IP resources used for this NAT rule.
List<String>
getSourceNatActiveRanges()
A list of URLs of the subnetworks used as source ranges for this NAT Rule.
List<String>
getSourceNatDrainIps()
A list of URLs of the IP resources to be drained.
List<String>
getSourceNatDrainRanges()
A list of URLs of subnetworks representing source ranges to be drained.
RouterNatRuleAction
set(String fieldName,
Object value)
RouterNatRuleAction
setSourceNatActiveIps(List<String> sourceNatActiveIps)
A list of URLs of the IP resources used for this NAT rule.
RouterNatRuleAction
setSourceNatActiveRanges(List<String> sourceNatActiveRanges)
A list of URLs of the subnetworks used as source ranges for this NAT Rule.
RouterNatRuleAction
setSourceNatDrainIps(List<String> sourceNatDrainIps)
A list of URLs of the IP resources to be drained.
RouterNatRuleAction
setSourceNatDrainRanges(List<String> sourceNatDrainRanges)
A list of URLs of subnetworks representing source ranges to be drained.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getSourceNatActiveIps
public List<String> getSourceNatActiveIps()
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.
- Returns:
- value or
null for none
-
setSourceNatActiveIps
public RouterNatRuleAction setSourceNatActiveIps(List<String> 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.
- Parameters:
sourceNatActiveIps - sourceNatActiveIps or null for none
-
getSourceNatActiveRanges
public List<String> getSourceNatActiveRanges()
A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks
must have purpose set to PRIVATE_NAT. This field is used for private NAT.
- Returns:
- value or
null for none
-
setSourceNatActiveRanges
public RouterNatRuleAction setSourceNatActiveRanges(List<String> sourceNatActiveRanges)
A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks
must have purpose set to PRIVATE_NAT. This field is used for private NAT.
- Parameters:
sourceNatActiveRanges - sourceNatActiveRanges or null for none
-
getSourceNatDrainIps
public List<String> getSourceNatDrainIps()
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.
- Returns:
- value or
null for none
-
setSourceNatDrainIps
public RouterNatRuleAction setSourceNatDrainIps(List<String> 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.
- Parameters:
sourceNatDrainIps - sourceNatDrainIps or null for none
-
getSourceNatDrainRanges
public List<String> getSourceNatDrainRanges()
A list of URLs of subnetworks representing source ranges to be drained. This is only supported
on patch/update, and these subnetworks must have previously been used as active ranges in this
NAT Rule. This field is used for private NAT.
- Returns:
- value or
null for none
-
setSourceNatDrainRanges
public RouterNatRuleAction setSourceNatDrainRanges(List<String> sourceNatDrainRanges)
A list of URLs of subnetworks representing source ranges to be drained. This is only supported
on patch/update, and these subnetworks must have previously been used as active ranges in this
NAT Rule. This field is used for private NAT.
- Parameters:
sourceNatDrainRanges - sourceNatDrainRanges or null for none
-
set
public RouterNatRuleAction set(String fieldName,
Object value)
- Overrides:
set in class com.google.api.client.json.GenericJson
-
clone
public RouterNatRuleAction clone()
- Overrides:
clone in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy