ApplicationGatewayFirewallRule Class

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

Implements

public final class ApplicationGatewayFirewallRule
implements JsonSerializable<ApplicationGatewayFirewallRule>

A web application firewall rule.

Constructor Summary

Constructor Description
ApplicationGatewayFirewallRule()

Creates an instance of ApplicationGatewayFirewallRule class.

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.

ApplicationGatewayFirewallRule withAction(ApplicationGatewayWafRuleActionTypes action)

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

ApplicationGatewayFirewallRule withDescription(String description)

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

ApplicationGatewayFirewallRule withRuleId(int ruleId)

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

ApplicationGatewayFirewallRule withRuleIdString(String ruleIdString)

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

ApplicationGatewayFirewallRule withSensitivity(ApplicationGatewayWafRuleSensitivityTypes sensitivity)

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

ApplicationGatewayFirewallRule withState(ApplicationGatewayWafRuleStateTypes state)

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

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayFirewallRule

public ApplicationGatewayFirewallRule()

Creates an instance of ApplicationGatewayFirewallRule class.

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.

withAction

public ApplicationGatewayFirewallRule withAction(ApplicationGatewayWafRuleActionTypes action)

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

Parameters:

action - the action value to set.

Returns:

the ApplicationGatewayFirewallRule object itself.

withDescription

public ApplicationGatewayFirewallRule withDescription(String description)

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

Parameters:

description - the description value to set.

Returns:

the ApplicationGatewayFirewallRule object itself.

withRuleId

public ApplicationGatewayFirewallRule withRuleId(int ruleId)

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

Parameters:

ruleId - the ruleId value to set.

Returns:

the ApplicationGatewayFirewallRule object itself.

withRuleIdString

public ApplicationGatewayFirewallRule withRuleIdString(String ruleIdString)

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

Parameters:

ruleIdString - the ruleIdString value to set.

Returns:

the ApplicationGatewayFirewallRule object itself.

withSensitivity

public ApplicationGatewayFirewallRule withSensitivity(ApplicationGatewayWafRuleSensitivityTypes sensitivity)

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

Parameters:

sensitivity - the sensitivity value to set.

Returns:

the ApplicationGatewayFirewallRule object itself.

withState

public ApplicationGatewayFirewallRule withState(ApplicationGatewayWafRuleStateTypes state)

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

Parameters:

state - the state value to set.

Returns:

the ApplicationGatewayFirewallRule object itself.

Applies to