WebApplicationFirewallCustomRule Class

  • java.lang.Object
    • com.microsoft.azure.management.network.WebApplicationFirewallCustomRule

public class WebApplicationFirewallCustomRule

Defines contents of a web application rule.

Constructor Summary

Constructor Description
WebApplicationFirewallCustomRule()

Method Summary

Modifier and Type Method and Description
WebApplicationFirewallAction action()

Get type of Actions.

java.lang.String etag()

Get a unique read-only string that changes whenever the resource is updated.

java.util.List<MatchCondition> matchConditions()

Get list of match conditions.

java.lang.String name()

Get the name of the resource that is unique within a policy.

int priority()

Get priority of the rule.

WebApplicationFirewallRuleType ruleType()

Get the rule type.

WebApplicationFirewallCustomRule withAction(WebApplicationFirewallAction action)

Set type of Actions.

WebApplicationFirewallCustomRule withMatchConditions(List<MatchCondition> matchConditions)

Set list of match conditions.

WebApplicationFirewallCustomRule withName(String name)

Set the name of the resource that is unique within a policy.

WebApplicationFirewallCustomRule withPriority(int priority)

Set priority of the rule.

WebApplicationFirewallCustomRule withRuleType(WebApplicationFirewallRuleType ruleType)

Set the rule type.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

WebApplicationFirewallCustomRule

public WebApplicationFirewallCustomRule()

Method Details

action

public WebApplicationFirewallAction action()

Get type of Actions. Possible values include: 'Allow', 'Block', 'Log'.

Returns:

the action value

etag

public String etag()

Get a unique read-only string that changes whenever the resource is updated.

Returns:

the etag value

matchConditions

public List matchConditions()

Get list of match conditions.

Returns:

the matchConditions value

name

public String name()

Get the name of the resource that is unique within a policy. This name can be used to access the resource.

Returns:

the name value

priority

public int priority()

Get priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.

Returns:

the priority value

ruleType

public WebApplicationFirewallRuleType ruleType()

Get the rule type. Possible values include: 'MatchRule', 'Invalid'.

Returns:

the ruleType value

withAction

public WebApplicationFirewallCustomRule withAction(WebApplicationFirewallAction action)

Set type of Actions. Possible values include: 'Allow', 'Block', 'Log'.

Parameters:

action - the action value to set

Returns:

the WebApplicationFirewallCustomRule object itself.

withMatchConditions

public WebApplicationFirewallCustomRule withMatchConditions(List matchConditions)

Set list of match conditions.

Parameters:

matchConditions - the matchConditions value to set

Returns:

the WebApplicationFirewallCustomRule object itself.

withName

public WebApplicationFirewallCustomRule withName(String name)

Set the name of the resource that is unique within a policy. This name can be used to access the resource.

Parameters:

name - the name value to set

Returns:

the WebApplicationFirewallCustomRule object itself.

withPriority

public WebApplicationFirewallCustomRule withPriority(int priority)

Set priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.

Parameters:

priority - the priority value to set

Returns:

the WebApplicationFirewallCustomRule object itself.

withRuleType

public WebApplicationFirewallCustomRule withRuleType(WebApplicationFirewallRuleType ruleType)

Set the rule type. Possible values include: 'MatchRule', 'Invalid'.

Parameters:

ruleType - the ruleType value to set

Returns:

the WebApplicationFirewallCustomRule object itself.

Applies to