All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.dns.model.ResponsePolicyRule.html Maven / Gradle / Ivy

There is a newer version: v2-rev20220505-1.32.1
Show newest version






ResponsePolicyRule (Cloud DNS API v1-rev20240118-2.0.0)












com.google.api.services.dns.model

Class ResponsePolicyRule

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    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.
    • Constructor Detail

      • ResponsePolicyRule

        public ResponsePolicyRule()
    • 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
      • 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
      • 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