public final class Policy 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 Cloud DNS 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 |
|---|
Policy() |
| Modifier and Type | Method and Description |
|---|---|
Policy |
clone() |
PolicyAlternativeNameServerConfig |
getAlternativeNameServerConfig()
Sets an alternative name server for the associated networks.
|
String |
getDescription()
A mutable string of at most 1024 characters associated with this resource for the user's
convenience.
|
Boolean |
getEnableInboundForwarding()
Allows networks bound to this policy to receive DNS queries sent by VMs or applications over
VPN connections.
|
Boolean |
getEnableLogging()
Controls whether logging is enabled for the networks bound to this policy.
|
BigInteger |
getId()
Unique identifier for the resource; defined by the server (output only).
|
String |
getKind() |
String |
getName()
User-assigned name for this policy.
|
List<PolicyNetwork> |
getNetworks()
List of network names specifying networks to which this policy is applied.
|
Policy |
set(String fieldName,
Object value) |
Policy |
setAlternativeNameServerConfig(PolicyAlternativeNameServerConfig alternativeNameServerConfig)
Sets an alternative name server for the associated networks.
|
Policy |
setDescription(String description)
A mutable string of at most 1024 characters associated with this resource for the user's
convenience.
|
Policy |
setEnableInboundForwarding(Boolean enableInboundForwarding)
Allows networks bound to this policy to receive DNS queries sent by VMs or applications over
VPN connections.
|
Policy |
setEnableLogging(Boolean enableLogging)
Controls whether logging is enabled for the networks bound to this policy.
|
Policy |
setId(BigInteger id)
Unique identifier for the resource; defined by the server (output only).
|
Policy |
setKind(String kind) |
Policy |
setName(String name)
User-assigned name for this policy.
|
Policy |
setNetworks(List<PolicyNetwork> networks)
List of network names specifying networks to which this policy is applied.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic PolicyAlternativeNameServerConfig getAlternativeNameServerConfig()
null for nonepublic Policy setAlternativeNameServerConfig(PolicyAlternativeNameServerConfig alternativeNameServerConfig)
alternativeNameServerConfig - alternativeNameServerConfig or null for nonepublic String getDescription()
null for nonepublic Policy setDescription(String description)
description - description or null for nonepublic Boolean getEnableInboundForwarding()
null for nonepublic Policy setEnableInboundForwarding(Boolean enableInboundForwarding)
enableInboundForwarding - enableInboundForwarding or null for nonepublic Boolean getEnableLogging()
null for nonepublic Policy setEnableLogging(Boolean enableLogging)
enableLogging - enableLogging or null for nonepublic BigInteger getId()
null for nonepublic Policy setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic String getName()
null for nonepublic Policy setName(String name)
name - name or null for nonepublic List<PolicyNetwork> getNetworks()
null for nonepublic Policy setNetworks(List<PolicyNetwork> networks)
networks - networks or null for nonepublic Policy set(String fieldName, Object value)
set in class GenericJsonpublic Policy clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.