DnsSecurityRuleAction Class

  • java.lang.Object
    • com.azure.resourcemanager.dnsresolver.models.DnsSecurityRuleAction

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 DnsSecurityRuleAction class.

Method Summary

Modifier and Type Method and Description
ActionType actionType()

Get the actionType property: The type of action to take.

static DnsSecurityRuleAction fromJson(JsonReader jsonReader)

Reads an instance of DnsSecurityRuleAction from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
DnsSecurityRuleAction withActionType(ActionType actionType)

Set the actionType property: The type of action to take.

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:

the actionType value.

fromJson

public static DnsSecurityRuleAction fromJson(JsonReader jsonReader)

Reads an instance of DnsSecurityRuleAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DnsSecurityRuleAction if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DnsSecurityRuleAction.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withActionType

public DnsSecurityRuleAction withActionType(ActionType actionType)

Set the actionType property: The type of action to take.

Parameters:

actionType - the actionType value to set.

Returns:

the DnsSecurityRuleAction object itself.

Applies to