DnsSecurityRuleAction Class
- java.
lang. Object - com.
azure. resourcemanager. dnsresolver. models. DnsSecurityRuleAction
- com.
Implements
public final class DnsSecurityRuleAction
implements JsonSerializable<DnsSecurityRuleAction>
The action to take on DNS requests that match the DNS security rule.
Constructor Summary
| Constructor | Description |
|---|---|
| DnsSecurityRuleAction() |
Creates an instance of Dns |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Action |
actionType()
Get the action |
|
static
Dns |
fromJson(JsonReader jsonReader)
Reads an instance of Dns |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Dns |
withActionType(ActionType actionType)
Set the action |
Methods inherited from java.lang.Object
Constructor Details
DnsSecurityRuleAction
public DnsSecurityRuleAction()
Creates an instance of DnsSecurityRuleAction class.
Method Details
actionType
public ActionType actionType()
Get the actionType property: The type of action to take.
Returns:
fromJson
public static DnsSecurityRuleAction fromJson(JsonReader jsonReader)
Reads an instance of DnsSecurityRuleAction from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withActionType
public DnsSecurityRuleAction withActionType(ActionType actionType)
Set the actionType property: The type of action to take.
Parameters:
Returns: