Class ApplicationGatewayFirewallRuleGroup
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayFirewallRuleGroup
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayFirewallRuleGroup>
public final class ApplicationGatewayFirewallRuleGroup
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayFirewallRuleGroup>
A web application firewall rule group.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayFirewallRuleGroup class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The description of the web application firewall rule group.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayFirewallRuleGroup from the JsonReader.Get the ruleGroupName property: The name of the web application firewall rule group.rules()Get the rules property: The rules of the web application firewall rule group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: The description of the web application firewall rule group.withRuleGroupName(String ruleGroupName) Set the ruleGroupName property: The name of the web application firewall rule group.Set the rules property: The rules of the web application firewall rule group.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
-
ApplicationGatewayFirewallRuleGroup
public ApplicationGatewayFirewallRuleGroup()Creates an instance of ApplicationGatewayFirewallRuleGroup class.
-
-
Method Details
-
ruleGroupName
Get the ruleGroupName property: The name of the web application firewall rule group.- Returns:
- the ruleGroupName value.
-
withRuleGroupName
Set the ruleGroupName property: The name of the web application firewall rule group.- Parameters:
ruleGroupName- the ruleGroupName value to set.- Returns:
- the ApplicationGatewayFirewallRuleGroup object itself.
-
description
Get the description property: The description of the web application firewall rule group.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the web application firewall rule group.- Parameters:
description- the description value to set.- Returns:
- the ApplicationGatewayFirewallRuleGroup object itself.
-
rules
Get the rules property: The rules of the web application firewall rule group.- Returns:
- the rules value.
-
withRules
Set the rules property: The rules of the web application firewall rule group.- Parameters:
rules- the rules value to set.- Returns:
- the ApplicationGatewayFirewallRuleGroup 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<ApplicationGatewayFirewallRuleGroup>- Throws:
IOException
-
fromJson
public static ApplicationGatewayFirewallRuleGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayFirewallRuleGroup from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayFirewallRuleGroup 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 ApplicationGatewayFirewallRuleGroup.
-