ApplicationGatewayFirewallRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ApplicationGatewayFirewallRule
- com.
Implements
public final class ApplicationGatewayFirewallRule
implements JsonSerializable<ApplicationGatewayFirewallRule>
A web application firewall rule.
Constructor Summary
Constructor | Description |
---|---|
ApplicationGatewayFirewallRule() |
Creates an instance of Application |
Method Summary
Modifier and Type | Method and Description |
---|---|
Application |
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
Application |
fromJson(JsonReader jsonReader)
Reads an instance of Application |
int |
ruleId()
Get the rule |
String |
ruleIdString()
Get the rule |
Application |
sensitivity()
Get the sensitivity property: The string representation of the web application firewall rule sensitivity. |
Application |
state()
Get the state property: The string representation of the web application firewall rule state. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Application |
withAction(ApplicationGatewayWafRuleActionTypes action)
Set the action property: The string representation of the web application firewall rule action. |
Application |
withDescription(String description)
Set the description property: The description of the web application firewall rule. |
Application |
withRuleId(int ruleId)
Set the rule |
Application |
withRuleIdString(String ruleIdString)
Set the rule |
Application |
withSensitivity(ApplicationGatewayWafRuleSensitivityTypes sensitivity)
Set the sensitivity property: The string representation of the web application firewall rule sensitivity. |
Application |
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:
description
public String description()
Get the description property: The description of the web application firewall rule.
Returns:
fromJson
public static ApplicationGatewayFirewallRule fromJson(JsonReader jsonReader)
Reads an instance of ApplicationGatewayFirewallRule from the JsonReader.
Parameters:
Returns:
Throws:
ruleId
public int ruleId()
Get the ruleId property: The identifier of the web application firewall rule.
Returns:
ruleIdString
public String ruleIdString()
Get the ruleIdString property: The string representation of the web application firewall rule identifier.
Returns:
sensitivity
public ApplicationGatewayWafRuleSensitivityTypes sensitivity()
Get the sensitivity property: The string representation of the web application firewall rule sensitivity.
Returns:
state
public ApplicationGatewayWafRuleStateTypes state()
Get the state property: The string representation of the web application firewall rule state.
Returns:
toJson
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:
Returns:
withDescription
public ApplicationGatewayFirewallRule withDescription(String description)
Set the description property: The description of the web application firewall rule.
Parameters:
Returns:
withRuleId
public ApplicationGatewayFirewallRule withRuleId(int ruleId)
Set the ruleId property: The identifier of the web application firewall rule.
Parameters:
Returns:
withRuleIdString
public ApplicationGatewayFirewallRule withRuleIdString(String ruleIdString)
Set the ruleIdString property: The string representation of the web application firewall rule identifier.
Parameters:
Returns:
withSensitivity
public ApplicationGatewayFirewallRule withSensitivity(ApplicationGatewayWafRuleSensitivityTypes sensitivity)
Set the sensitivity property: The string representation of the web application firewall rule sensitivity.
Parameters:
Returns:
withState
public ApplicationGatewayFirewallRule withState(ApplicationGatewayWafRuleStateTypes state)
Set the state property: The string representation of the web application firewall rule state.
Parameters:
Returns:
Applies to
Azure SDK for Java