ApplicationGatewayFirewallRuleSet Class

public final class ApplicationGatewayFirewallRuleSet
extends Resource

A web application firewall rule set.

Constructor Summary

Constructor Description
ApplicationGatewayFirewallRuleSet()

Creates an instance of ApplicationGatewayFirewallRuleSet class.

Method Summary

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

Reads an instance of ApplicationGatewayFirewallRuleSet from the JsonReader.

String id()

Get the id property: Resource ID.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the web application firewall rule set.

List<ApplicationGatewayFirewallRuleGroup> ruleGroups()

Get the ruleGroups property: The rule groups of the web application firewall rule set.

String ruleSetType()

Get the ruleSetType property: The type of the web application firewall rule set.

String ruleSetVersion()

Get the ruleSetVersion property: The version of the web application firewall rule set type.

List<ApplicationGatewayTierTypes> tiers()

Get the tiers property: Tier of an application gateway that support the rule set.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ApplicationGatewayFirewallRuleSet withId(String id)

Set the id property: Resource ID.

ApplicationGatewayFirewallRuleSet withLocation(String location)
ApplicationGatewayFirewallRuleSet withRuleGroups(List<ApplicationGatewayFirewallRuleGroup> ruleGroups)

Set the ruleGroups property: The rule groups of the web application firewall rule set.

ApplicationGatewayFirewallRuleSet withRuleSetType(String ruleSetType)

Set the ruleSetType property: The type of the web application firewall rule set.

ApplicationGatewayFirewallRuleSet withRuleSetVersion(String ruleSetVersion)

Set the ruleSetVersion property: The version of the web application firewall rule set type.

ApplicationGatewayFirewallRuleSet withTags(Map<String,String> tags)
ApplicationGatewayFirewallRuleSet withTiers(List<ApplicationGatewayTierTypes> tiers)

Set the tiers property: Tier of an application gateway that support the rule set.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayFirewallRuleSet

public ApplicationGatewayFirewallRuleSet()

Creates an instance of ApplicationGatewayFirewallRuleSet class.

Method Details

fromJson

public static ApplicationGatewayFirewallRuleSet fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayFirewallRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplicationGatewayFirewallRuleSet 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.

id

public String id()

Get the id property: Resource ID.

Overrides:

ApplicationGatewayFirewallRuleSet.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ApplicationGatewayFirewallRuleSet.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the web application firewall rule set.

Returns:

the provisioningState value.

ruleGroups

public List ruleGroups()

Get the ruleGroups property: The rule groups of the web application firewall rule set.

Returns:

the ruleGroups value.

ruleSetType

public String ruleSetType()

Get the ruleSetType property: The type of the web application firewall rule set.

Returns:

the ruleSetType value.

ruleSetVersion

public String ruleSetVersion()

Get the ruleSetVersion property: The version of the web application firewall rule set type.

Returns:

the ruleSetVersion value.

tiers

public List tiers()

Get the tiers property: Tier of an application gateway that support the rule set.

Returns:

the tiers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ApplicationGatewayFirewallRuleSet.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ApplicationGatewayFirewallRuleSet.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public ApplicationGatewayFirewallRuleSet withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the ApplicationGatewayFirewallRuleSet object itself.

withLocation

public ApplicationGatewayFirewallRuleSet withLocation(String location)

Overrides:

ApplicationGatewayFirewallRuleSet.withLocation(String location)

Parameters:

location

withRuleGroups

public ApplicationGatewayFirewallRuleSet withRuleGroups(List ruleGroups)

Set the ruleGroups property: The rule groups of the web application firewall rule set.

Parameters:

ruleGroups - the ruleGroups value to set.

Returns:

the ApplicationGatewayFirewallRuleSet object itself.

withRuleSetType

public ApplicationGatewayFirewallRuleSet withRuleSetType(String ruleSetType)

Set the ruleSetType property: The type of the web application firewall rule set.

Parameters:

ruleSetType - the ruleSetType value to set.

Returns:

the ApplicationGatewayFirewallRuleSet object itself.

withRuleSetVersion

public ApplicationGatewayFirewallRuleSet withRuleSetVersion(String ruleSetVersion)

Set the ruleSetVersion property: The version of the web application firewall rule set type.

Parameters:

ruleSetVersion - the ruleSetVersion value to set.

Returns:

the ApplicationGatewayFirewallRuleSet object itself.

withTags

public ApplicationGatewayFirewallRuleSet withTags(Map tags)

Overrides:

ApplicationGatewayFirewallRuleSet.withTags(Map<String,String> tags)

Parameters:

tags

withTiers

public ApplicationGatewayFirewallRuleSet withTiers(List tiers)

Set the tiers property: Tier of an application gateway that support the rule set.

Parameters:

tiers - the tiers value to set.

Returns:

the ApplicationGatewayFirewallRuleSet object itself.

Applies to