ResponsePolicyRule class

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.

Constructors

ResponsePolicyRule({String? behavior, String? dnsName, String? kind, ResponsePolicyRuleLocalData? localData, String? ruleName})
ResponsePolicyRule.fromJson(Map json_)

Properties

behavior String?
Answer this query with a behavior rather than DNS data. Possible string values are:
getter/setter pair
dnsName String?
The DNS name (wildcard or exact) to apply this rule to.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
kind String?
getter/setter pair
localData ResponsePolicyRuleLocalData?
Answer this query directly with DNS data.
getter/setter pair
ruleName String?
An identifier for this rule.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited