ApplicationGatewayFirewallRuleGroup Class

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

Implements

public final class ApplicationGatewayFirewallRuleGroup
implements JsonSerializable<ApplicationGatewayFirewallRuleGroup>

A web application firewall rule group.

Constructor Summary

Constructor Description
ApplicationGatewayFirewallRuleGroup()

Creates an instance of ApplicationGatewayFirewallRuleGroup class.

Method Summary

Modifier and Type Method and Description
String description()

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

static ApplicationGatewayFirewallRuleGroup fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayFirewallRuleGroup from the JsonReader.

String ruleGroupName()

Get the ruleGroupName property: The name of the web application firewall rule group.

List<ApplicationGatewayFirewallRule> rules()

Get the rules property: The rules of the web application firewall rule group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayFirewallRuleGroup withDescription(String description)

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

ApplicationGatewayFirewallRuleGroup withRuleGroupName(String ruleGroupName)

Set the ruleGroupName property: The name of the web application firewall rule group.

ApplicationGatewayFirewallRuleGroup withRules(List<ApplicationGatewayFirewallRule> rules)

Set the rules property: The rules of the web application firewall rule group.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayFirewallRuleGroup

public ApplicationGatewayFirewallRuleGroup()

Creates an instance of ApplicationGatewayFirewallRuleGroup class.

Method Details

description

public String description()

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

Returns:

the description value.

fromJson

public static ApplicationGatewayFirewallRuleGroup fromJson(JsonReader jsonReader)

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:

IOException

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

ruleGroupName

public String ruleGroupName()

Get the ruleGroupName property: The name of the web application firewall rule group.

Returns:

the ruleGroupName value.

rules

public List rules()

Get the rules property: The rules of the web application firewall rule group.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public ApplicationGatewayFirewallRuleGroup withDescription(String description)

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.

withRuleGroupName

public ApplicationGatewayFirewallRuleGroup withRuleGroupName(String ruleGroupName)

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.

withRules

public ApplicationGatewayFirewallRuleGroup withRules(List rules)

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.

Applies to