ApplicationGatewayFirewallRule Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApplicationGatewayFirewallRule

Implements

public final class ApplicationGatewayFirewallRule
implements JsonSerializable<ApplicationGatewayFirewallRule>

A web application firewall rule.

Method Summary

Modifier and Type Method and Description
ApplicationGatewayWafRuleActionTypes action()

Get the action property: The string representation of the web application firewall rule action.

String description()

Get the description property: The description of the web application firewall rule.

static ApplicationGatewayFirewallRule fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayFirewallRule from the JsonReader.

int ruleId()

Get the ruleId property: The identifier of the web application firewall rule.

String ruleIdString()

Get the ruleIdString property: The string representation of the web application firewall rule identifier.

ApplicationGatewayWafRuleSensitivityTypes sensitivity()

Get the sensitivity property: The string representation of the web application firewall rule sensitivity.

ApplicationGatewayWafRuleStateTypes state()

Get the state property: The string representation of the web application firewall rule state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

action

public ApplicationGatewayWafRuleActionTypes action()

Get the action property: The string representation of the web application firewall rule action.

Returns:

the action value.

description

public String description()

Get the description property: The description of the web application firewall rule.

Returns:

the description value.

fromJson

public static ApplicationGatewayFirewallRule fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayFirewallRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ruleId

public int ruleId()

Get the ruleId property: The identifier of the web application firewall rule.

Returns:

the ruleId value.

ruleIdString

public String ruleIdString()

Get the ruleIdString property: The string representation of the web application firewall rule identifier.

Returns:

the ruleIdString value.

sensitivity

public ApplicationGatewayWafRuleSensitivityTypes sensitivity()

Get the sensitivity property: The string representation of the web application firewall rule sensitivity.

Returns:

the sensitivity value.

state

public ApplicationGatewayWafRuleStateTypes state()

Get the state property: The string representation of the web application firewall rule state.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to