target.apidocs.com.google.api.services.dns.model.ResponsePolicyRule.html Maven / Gradle / Ivy
ResponsePolicyRule (Cloud DNS API v1-rev20240118-2.0.0)
com.google.api.services.dns.model
Class ResponsePolicyRule
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dns.model.ResponsePolicyRule
-
public final class ResponsePolicyRule
extends com.google.api.client.json.GenericJson
A Response Policy Rule is a selector that applies its behavior to queries that match the
selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query
subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the
dns_name field with the longest matching suffix.
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
- 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
ResponsePolicyRule()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ResponsePolicyRule
clone()
String
getBehavior()
Answer this query with a behavior rather than DNS data.
String
getDnsName()
The DNS name (wildcard or exact) to apply this rule to.
String
getKind()
ResponsePolicyRuleLocalData
getLocalData()
Answer this query directly with DNS data.
String
getRuleName()
An identifier for this rule.
ResponsePolicyRule
set(String fieldName,
Object value)
ResponsePolicyRule
setBehavior(String behavior)
Answer this query with a behavior rather than DNS data.
ResponsePolicyRule
setDnsName(String dnsName)
The DNS name (wildcard or exact) to apply this rule to.
ResponsePolicyRule
setKind(String kind)
ResponsePolicyRule
setLocalData(ResponsePolicyRuleLocalData localData)
Answer this query directly with DNS data.
ResponsePolicyRule
setRuleName(String ruleName)
An identifier for this rule.
-
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
-
getBehavior
public String getBehavior()
Answer this query with a behavior rather than DNS data.
- Returns:
- value or
null
for none
-
setBehavior
public ResponsePolicyRule setBehavior(String behavior)
Answer this query with a behavior rather than DNS data.
- Parameters:
behavior
- behavior or null
for none
-
getDnsName
public String getDnsName()
The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response
Policy Rule.
- Returns:
- value or
null
for none
-
setDnsName
public ResponsePolicyRule setDnsName(String dnsName)
The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response
Policy Rule.
- Parameters:
dnsName
- dnsName or null
for none
-
getKind
public String getKind()
- Returns:
- value or
null
for none
-
setKind
public ResponsePolicyRule setKind(String kind)
- Parameters:
kind
- kind or null
for none
-
getLocalData
public ResponsePolicyRuleLocalData getLocalData()
Answer this query directly with DNS data. These ResourceRecordSets override any other DNS
behavior for the matched name; in particular they override private zones, the public internet,
and GCP internal DNS. No SOA nor NS types are allowed.
- Returns:
- value or
null
for none
-
setLocalData
public ResponsePolicyRule setLocalData(ResponsePolicyRuleLocalData localData)
Answer this query directly with DNS data. These ResourceRecordSets override any other DNS
behavior for the matched name; in particular they override private zones, the public internet,
and GCP internal DNS. No SOA nor NS types are allowed.
- Parameters:
localData
- localData or null
for none
-
getRuleName
public String getRuleName()
An identifier for this rule. Must be unique with the ResponsePolicy.
- Returns:
- value or
null
for none
-
setRuleName
public ResponsePolicyRule setRuleName(String ruleName)
An identifier for this rule. Must be unique with the ResponsePolicy.
- Parameters:
ruleName
- ruleName or null
for none
-
set
public ResponsePolicyRule set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ResponsePolicyRule clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy