target.apidocs.com.google.api.services.compute.model.RouterNatRule.html Maven / Gradle / Ivy
RouterNatRule (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute.model
Class RouterNatRule
- 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.RouterNatRule
-
public final class RouterNatRule
extends GenericJson
Model definition for RouterNatRule.
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
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
RouterNatRule()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
RouterNatRule
clone()
RouterNatRuleAction
getAction()
The action to be enforced for traffic that matches this rule.
String
getDescription()
An optional description of this rule.
String
getMatch()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated
against.
Long
getPriority()
An integer indicating the priority of a rule in the list.
RouterNatRule
set(String fieldName,
Object value)
RouterNatRule
setAction(RouterNatRuleAction action)
The action to be enforced for traffic that matches this rule.
RouterNatRule
setDescription(String description)
An optional description of this rule.
RouterNatRule
setMatch(String match)
CEL expression that specifies the match condition that egress traffic from a VM is evaluated
against.
RouterNatRule
setPriority(Long priority)
An integer indicating the priority of a rule in the list.
-
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
-
getAction
public RouterNatRuleAction getAction()
The action to be enforced for traffic that matches this rule.
- Returns:
- value or
null
for none
-
setAction
public RouterNatRule setAction(RouterNatRuleAction action)
The action to be enforced for traffic that matches this rule.
- Parameters:
action
- action or null
for none
-
getDescription
public String getDescription()
An optional description of this rule.
- Returns:
- value or
null
for none
-
setDescription
public RouterNatRule setDescription(String description)
An optional description of this rule.
- Parameters:
description
- description or null
for none
-
getMatch
public String getMatch()
CEL expression that specifies the match condition that egress traffic from a VM is evaluated
against. If it evaluates to true, the corresponding ?action? is enforced.
The following examples are valid match expressions:
"inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')"
"destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'"
- Returns:
- value or
null
for none
-
setMatch
public RouterNatRule setMatch(String match)
CEL expression that specifies the match condition that egress traffic from a VM is evaluated
against. If it evaluates to true, the corresponding ?action? is enforced.
The following examples are valid match expressions:
"inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')"
"destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'"
- Parameters:
match
- match or null
for none
-
getPriority
public Long getPriority()
An integer indicating the priority of a rule in the list. The priority must be a positive value
between 0 and 65000. The priority must be unique among rules within a NAT.
- Returns:
- value or
null
for none
-
setPriority
public RouterNatRule setPriority(Long priority)
An integer indicating the priority of a rule in the list. The priority must be a positive value
between 0 and 65000. The priority must be unique among rules within a NAT.
- Parameters:
priority
- priority or null
for none
-
set
public RouterNatRule set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public RouterNatRule clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy