WebApplicationFirewallCustomRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. WebApplicationFirewallCustomRule
- com.
Implements
public final class WebApplicationFirewallCustomRule
implements JsonSerializable<WebApplicationFirewallCustomRule>
Defines contents of a web application rule.
Constructor Summary
Constructor | Description |
---|---|
WebApplicationFirewallCustomRule() |
Creates an instance of Web |
Method Summary
Modifier and Type | Method and Description |
---|---|
Web |
action()
Get the action property: Type of Actions. |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Web |
fromJson(JsonReader jsonReader)
Reads an instance of Web |
List<Group |
groupByUserSession()
Get the group |
List<Match |
matchConditions()
Get the match |
String |
name()
Get the name property: The name of the resource that is unique within a policy. |
int |
priority()
Get the priority property: Priority of the rule. |
Application |
rateLimitDuration()
Get the rate |
Integer |
rateLimitThreshold()
Get the rate |
Web |
ruleType()
Get the rule |
Web |
state()
Get the state property: Describes if the custom rule is in enabled or disabled state. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Web |
withAction(WebApplicationFirewallAction action)
Set the action property: Type of Actions. |
Web |
withGroupByUserSession(List<GroupByUserSession> groupByUserSession)
Set the group |
Web |
withMatchConditions(List<MatchCondition> matchConditions)
Set the match |
Web |
withName(String name)
Set the name property: The name of the resource that is unique within a policy. |
Web |
withPriority(int priority)
Set the priority property: Priority of the rule. |
Web |
withRateLimitDuration(ApplicationGatewayFirewallRateLimitDuration rateLimitDuration)
Set the rate |
Web |
withRateLimitThreshold(Integer rateLimitThreshold)
Set the rate |
Web |
withRuleType(WebApplicationFirewallRuleType ruleType)
Set the rule |
Web |
withState(WebApplicationFirewallState state)
Set the state property: Describes if the custom rule is in enabled or disabled state. |
Methods inherited from java.lang.Object
Constructor Details
WebApplicationFirewallCustomRule
public WebApplicationFirewallCustomRule()
Creates an instance of WebApplicationFirewallCustomRule class.
Method Details
action
public WebApplicationFirewallAction action()
Get the action property: Type of Actions.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static WebApplicationFirewallCustomRule fromJson(JsonReader jsonReader)
Reads an instance of WebApplicationFirewallCustomRule from the JsonReader.
Parameters:
Returns:
Throws:
groupByUserSession
public List
Get the groupByUserSession property: List of user session identifier group by clauses.
Returns:
matchConditions
public List
Get the matchConditions property: List of match conditions.
Returns:
name
public String name()
Get the name property: The name of the resource that is unique within a policy. This name can be used to access the resource.
Returns:
priority
public int priority()
Get the priority property: Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
Returns:
rateLimitDuration
public ApplicationGatewayFirewallRateLimitDuration rateLimitDuration()
Get the rateLimitDuration property: Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule.
Returns:
rateLimitThreshold
public Integer rateLimitThreshold()
Get the rateLimitThreshold property: Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal to 1.
Returns:
ruleType
public WebApplicationFirewallRuleType ruleType()
Get the ruleType property: The rule type.
Returns:
state
public WebApplicationFirewallState state()
Get the state property: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAction
public WebApplicationFirewallCustomRule withAction(WebApplicationFirewallAction action)
Set the action property: Type of Actions.
Parameters:
Returns:
withGroupByUserSession
public WebApplicationFirewallCustomRule withGroupByUserSession(List
Set the groupByUserSession property: List of user session identifier group by clauses.
Parameters:
Returns:
withMatchConditions
public WebApplicationFirewallCustomRule withMatchConditions(List
Set the matchConditions property: List of match conditions.
Parameters:
Returns:
withName
public WebApplicationFirewallCustomRule withName(String name)
Set the name property: The name of the resource that is unique within a policy. This name can be used to access the resource.
Parameters:
Returns:
withPriority
public WebApplicationFirewallCustomRule withPriority(int priority)
Set the priority property: Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
Parameters:
Returns:
withRateLimitDuration
public WebApplicationFirewallCustomRule withRateLimitDuration(ApplicationGatewayFirewallRateLimitDuration rateLimitDuration)
Set the rateLimitDuration property: Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule.
Parameters:
Returns:
withRateLimitThreshold
public WebApplicationFirewallCustomRule withRateLimitThreshold(Integer rateLimitThreshold)
Set the rateLimitThreshold property: Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal to 1.
Parameters:
Returns:
withRuleType
public WebApplicationFirewallCustomRule withRuleType(WebApplicationFirewallRuleType ruleType)
Set the ruleType property: The rule type.
Parameters:
Returns:
withState
public WebApplicationFirewallCustomRule withState(WebApplicationFirewallState state)
Set the state property: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
Parameters:
Returns:
Applies to
Azure SDK for Java