Class ApplicationGatewayFirewallRule
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayFirewallRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayFirewallRule>
public final class ApplicationGatewayFirewallRule
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayFirewallRule>
A web application firewall rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayFirewallRule class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: The string representation of the web application firewall rule action.Get the description property: The description of the web application firewall rule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayFirewallRule from the JsonReader.intruleId()Get the ruleId property: The identifier of the web application firewall rule.Get the ruleIdString property: The string representation of the web application firewall rule identifier.Get the sensitivity property: The string representation of the web application firewall rule sensitivity.state()Get the state property: The string representation of the web application firewall rule state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the action property: The string representation of the web application firewall rule action.withDescription(String description) Set the description property: The description of the web application firewall rule.withRuleId(int ruleId) Set the ruleId property: The identifier of the web application firewall rule.withRuleIdString(String ruleIdString) Set the ruleIdString property: The string representation of the web application firewall rule identifier.withSensitivity(ApplicationGatewayWafRuleSensitivityTypes sensitivity) Set the sensitivity property: The string representation of the web application firewall rule sensitivity.Set the state property: The string representation of the web application firewall rule state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationGatewayFirewallRule
public ApplicationGatewayFirewallRule()Creates an instance of ApplicationGatewayFirewallRule class.
-
-
Method Details
-
ruleId
public int ruleId()Get the ruleId property: The identifier of the web application firewall rule.- Returns:
- the ruleId value.
-
withRuleId
Set the ruleId property: The identifier of the web application firewall rule.- Parameters:
ruleId- the ruleId value to set.- Returns:
- the ApplicationGatewayFirewallRule object itself.
-
ruleIdString
Get the ruleIdString property: The string representation of the web application firewall rule identifier.- Returns:
- the ruleIdString value.
-
withRuleIdString
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.
-
state
Get the state property: The string representation of the web application firewall rule state.- Returns:
- the state value.
-
withState
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.
-
action
Get the action property: The string representation of the web application firewall rule action.- Returns:
- the action value.
-
withAction
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.
-
sensitivity
Get the sensitivity property: The string representation of the web application firewall rule sensitivity.- Returns:
- the sensitivity value.
-
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.
-
description
Get the description property: The description of the web application firewall rule.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the web application firewall rule.- Parameters:
description- the description value to set.- Returns:
- the ApplicationGatewayFirewallRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApplicationGatewayFirewallRule>- Throws:
IOException
-
fromJson
public static ApplicationGatewayFirewallRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ApplicationGatewayFirewallRule.
-