Partilhar via


ApplicationGatewayFirewallDisabledRuleGroup Class

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

Implements

public final class ApplicationGatewayFirewallDisabledRuleGroup
implements JsonSerializable<ApplicationGatewayFirewallDisabledRuleGroup>

Allows to disable rules within a rule group or an entire rule group.

Constructor Summary

Constructor Description
ApplicationGatewayFirewallDisabledRuleGroup()

Creates an instance of ApplicationGatewayFirewallDisabledRuleGroup class.

Method Summary

Modifier and Type Method and Description
static ApplicationGatewayFirewallDisabledRuleGroup fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayFirewallDisabledRuleGroup from the JsonReader.

String ruleGroupName()

Get the ruleGroupName property: The name of the rule group that will be disabled.

List<Integer> rules()

Get the rules property: The list of rules that will be disabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayFirewallDisabledRuleGroup withRuleGroupName(String ruleGroupName)

Set the ruleGroupName property: The name of the rule group that will be disabled.

ApplicationGatewayFirewallDisabledRuleGroup withRules(List<Integer> rules)

Set the rules property: The list of rules that will be disabled.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayFirewallDisabledRuleGroup

public ApplicationGatewayFirewallDisabledRuleGroup()

Creates an instance of ApplicationGatewayFirewallDisabledRuleGroup class.

Method Details

fromJson

public static ApplicationGatewayFirewallDisabledRuleGroup fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayFirewallDisabledRuleGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGatewayFirewallDisabledRuleGroup 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 rule group that will be disabled.

Returns:

the ruleGroupName value.

rules

public List rules()

Get the rules property: The list of rules that will be disabled. If null, all rules of the rule group will be disabled.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRuleGroupName

public ApplicationGatewayFirewallDisabledRuleGroup withRuleGroupName(String ruleGroupName)

Set the ruleGroupName property: The name of the rule group that will be disabled.

Parameters:

ruleGroupName - the ruleGroupName value to set.

Returns:

the ApplicationGatewayFirewallDisabledRuleGroup object itself.

withRules

public ApplicationGatewayFirewallDisabledRuleGroup withRules(List rules)

Set the rules property: The list of rules that will be disabled. If null, all rules of the rule group will be disabled.

Parameters:

rules - the rules value to set.

Returns:

the ApplicationGatewayFirewallDisabledRuleGroup object itself.

Applies to