ApplicationGatewayRewriteRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ApplicationGatewayRewriteRule
- com.
Implements
public final class ApplicationGatewayRewriteRule
implements JsonSerializable<ApplicationGatewayRewriteRule>
Rewrite rule of an application gateway.
Constructor Summary
Constructor | Description |
---|---|
ApplicationGatewayRewriteRule() |
Creates an instance of Application |
Method Summary
Modifier and Type | Method and Description |
---|---|
Application |
actionSet()
Get the action |
List<Application |
conditions()
Get the conditions property: Conditions based on which the action set execution will be evaluated. |
static
Application |
fromJson(JsonReader jsonReader)
Reads an instance of Application |
String |
name()
Get the name property: Name of the rewrite rule that is unique within an Application Gateway. |
Integer |
ruleSequence()
Get the rule |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Application |
withActionSet(ApplicationGatewayRewriteRuleActionSet actionSet)
Set the action |
Application |
withConditions(List<ApplicationGatewayRewriteRuleCondition> conditions)
Set the conditions property: Conditions based on which the action set execution will be evaluated. |
Application |
withName(String name)
Set the name property: Name of the rewrite rule that is unique within an Application Gateway. |
Application |
withRuleSequence(Integer ruleSequence)
Set the rule |
Methods inherited from java.lang.Object
Constructor Details
ApplicationGatewayRewriteRule
public ApplicationGatewayRewriteRule()
Creates an instance of ApplicationGatewayRewriteRule class.
Method Details
actionSet
public ApplicationGatewayRewriteRuleActionSet actionSet()
Get the actionSet property: Set of actions to be done as part of the rewrite Rule.
Returns:
conditions
public List
Get the conditions property: Conditions based on which the action set execution will be evaluated.
Returns:
fromJson
public static ApplicationGatewayRewriteRule fromJson(JsonReader jsonReader)
Reads an instance of ApplicationGatewayRewriteRule from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the rewrite rule that is unique within an Application Gateway.
Returns:
ruleSequence
public Integer ruleSequence()
Get the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
Returns:
toJson
validate
public void validate()
Validates the instance.
withActionSet
public ApplicationGatewayRewriteRule withActionSet(ApplicationGatewayRewriteRuleActionSet actionSet)
Set the actionSet property: Set of actions to be done as part of the rewrite Rule.
Parameters:
Returns:
withConditions
public ApplicationGatewayRewriteRule withConditions(List
Set the conditions property: Conditions based on which the action set execution will be evaluated.
Parameters:
Returns:
withName
public ApplicationGatewayRewriteRule withName(String name)
Set the name property: Name of the rewrite rule that is unique within an Application Gateway.
Parameters:
Returns:
withRuleSequence
public ApplicationGatewayRewriteRule withRuleSequence(Integer ruleSequence)
Set the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
Parameters:
Returns:
Applies to
Azure SDK for Java