Class ApplicationGatewayRewriteRule
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayRewriteRule>
public final class ApplicationGatewayRewriteRule
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayRewriteRule>
Rewrite rule of an application gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayRewriteRule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the actionSet property: Set of actions to be done as part of the rewrite Rule.Get the conditions property: Conditions based on which the action set execution will be evaluated.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayRewriteRule from the JsonReader.name()Get the name property: Name of the rewrite rule that is unique within an Application Gateway.Get the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the actionSet property: Set of actions to be done as part of the rewrite Rule.withConditions(List<ApplicationGatewayRewriteRuleCondition> conditions) Set the conditions property: Conditions based on which the action set execution will be evaluated.Set the name property: Name of the rewrite rule that is unique within an Application Gateway.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationGatewayRewriteRule
public ApplicationGatewayRewriteRule()Creates an instance of ApplicationGatewayRewriteRule class.
-
-
Method Details
-
name
Get the name property: Name of the rewrite rule that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
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
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
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApplicationGatewayRewriteRule>- Throws:
IOException
-
fromJson
public static ApplicationGatewayRewriteRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayRewriteRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayRewriteRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ApplicationGatewayRewriteRule.
-