public final class RoutePolicy
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 |
---|
RoutePolicy() |
Modifier and Type | Method and Description |
---|---|
RoutePolicy |
clone() |
byte[] |
decodeFingerprint()
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of
the Route Policy used for optimistic locking.
|
RoutePolicy |
encodeFingerprint(byte[] fingerprint)
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of
the Route Policy used for optimistic locking.
|
String |
getFingerprint()
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of
the Route Policy used for optimistic locking.
|
String |
getName()
Route Policy name, which must be a resource ID segment and unique within all the router's Route
Policies.
|
List<RoutePolicyPolicyTerm> |
getTerms()
List of terms (the order in the list is not important, they are evaluated in order of
priority).
|
String |
getType() |
RoutePolicy |
set(String fieldName,
Object value) |
RoutePolicy |
setFingerprint(String fingerprint)
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of
the Route Policy used for optimistic locking.
|
RoutePolicy |
setName(String name)
Route Policy name, which must be a resource ID segment and unique within all the router's Route
Policies.
|
RoutePolicy |
setTerms(List<RoutePolicyPolicyTerm> terms)
List of terms (the order in the list is not important, they are evaluated in order of
priority).
|
RoutePolicy |
setType(String type) |
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 getFingerprint()
null
for nonedecodeFingerprint()
public byte[] decodeFingerprint()
null
for nonegetFingerprint()
public RoutePolicy setFingerprint(String fingerprint)
fingerprint
- fingerprint or null
for none#encodeFingerprint()
public RoutePolicy encodeFingerprint(byte[] fingerprint)
The value is encoded Base64 or {@code null} for none.
public String getName()
null
for nonepublic RoutePolicy setName(String name)
name
- name or null
for nonepublic List<RoutePolicyPolicyTerm> getTerms()
null
for nonepublic RoutePolicy setTerms(List<RoutePolicyPolicyTerm> terms)
terms
- terms or null
for nonepublic String getType()
null
for nonepublic RoutePolicy setType(String type)
type
- type or null
for nonepublic RoutePolicy set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public RoutePolicy clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.