Class ApplicationGatewayRewriteRule
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRule
-
public final class ApplicationGatewayRewriteRule extends Object
Rewrite rule of an application gateway.
-
-
Constructor Summary
Constructors Constructor Description ApplicationGatewayRewriteRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationGatewayRewriteRuleActionSetactionSet()Get the actionSet property: Set of actions to be done as part of the rewrite Rule.List<ApplicationGatewayRewriteRuleCondition>conditions()Get the conditions property: Conditions based on which the action set execution will be evaluated.Stringname()Get the name property: Name of the rewrite rule that is unique within an Application Gateway.IntegerruleSequence()Get the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.voidvalidate()Validates the instance.ApplicationGatewayRewriteRulewithActionSet(ApplicationGatewayRewriteRuleActionSet actionSet)Set the actionSet property: Set of actions to be done as part of the rewrite Rule.ApplicationGatewayRewriteRulewithConditions(List<ApplicationGatewayRewriteRuleCondition> conditions)Set the conditions property: Conditions based on which the action set execution will be evaluated.ApplicationGatewayRewriteRulewithName(String name)Set the name property: Name of the rewrite rule that is unique within an Application Gateway.ApplicationGatewayRewriteRulewithRuleSequence(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.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the rewrite rule that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
public ApplicationGatewayRewriteRule withName(String name)
Set the name property: Name of the rewrite rule that is unique within an Application Gateway.- Parameters:
name- the name value to set.- Returns:
- the ApplicationGatewayRewriteRule object itself.
-
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:
- the ruleSequence value.
-
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:
ruleSequence- the ruleSequence value to set.- Returns:
- the ApplicationGatewayRewriteRule object itself.
-
conditions
public List<ApplicationGatewayRewriteRuleCondition> conditions()
Get the conditions property: Conditions based on which the action set execution will be evaluated.- Returns:
- the conditions value.
-
withConditions
public ApplicationGatewayRewriteRule withConditions(List<ApplicationGatewayRewriteRuleCondition> conditions)
Set the conditions property: Conditions based on which the action set execution will be evaluated.- Parameters:
conditions- the conditions value to set.- Returns:
- the ApplicationGatewayRewriteRule object itself.
-
actionSet
public ApplicationGatewayRewriteRuleActionSet actionSet()
Get the actionSet property: Set of actions to be done as part of the rewrite Rule.- Returns:
- the actionSet value.
-
withActionSet
public ApplicationGatewayRewriteRule withActionSet(ApplicationGatewayRewriteRuleActionSet actionSet)
Set the actionSet property: Set of actions to be done as part of the rewrite Rule.- Parameters:
actionSet- the actionSet value to set.- Returns:
- the ApplicationGatewayRewriteRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-