Class ApplicationGatewayRewriteRuleCondition
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRuleCondition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayRewriteRuleCondition>
public final class ApplicationGatewayRewriteRuleCondition
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayRewriteRuleCondition>
Set of conditions in the Rewrite Rule in Application Gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayRewriteRuleCondition class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayRewriteRuleCondition from the JsonReader.Get the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.negate()Get the negate property: Setting this value as truth will force to check the negation of the condition given by the user.pattern()Get the pattern property: The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.variable()Get the variable property: The condition parameter of the RewriteRuleCondition.withIgnoreCase(Boolean ignoreCase) Set the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.withNegate(Boolean negate) Set the negate property: Setting this value as truth will force to check the negation of the condition given by the user.withPattern(String pattern) Set the pattern property: The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.withVariable(String variable) Set the variable property: The condition parameter of the RewriteRuleCondition.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
-
ApplicationGatewayRewriteRuleCondition
public ApplicationGatewayRewriteRuleCondition()Creates an instance of ApplicationGatewayRewriteRuleCondition class.
-
-
Method Details
-
variable
Get the variable property: The condition parameter of the RewriteRuleCondition.- Returns:
- the variable value.
-
withVariable
Set the variable property: The condition parameter of the RewriteRuleCondition.- Parameters:
variable- the variable value to set.- Returns:
- the ApplicationGatewayRewriteRuleCondition object itself.
-
pattern
Get the pattern property: The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.- Returns:
- the pattern value.
-
withPattern
Set the pattern property: The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.- Parameters:
pattern- the pattern value to set.- Returns:
- the ApplicationGatewayRewriteRuleCondition object itself.
-
ignoreCase
Get the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.- Returns:
- the ignoreCase value.
-
withIgnoreCase
Set the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.- Parameters:
ignoreCase- the ignoreCase value to set.- Returns:
- the ApplicationGatewayRewriteRuleCondition object itself.
-
negate
Get the negate property: Setting this value as truth will force to check the negation of the condition given by the user.- Returns:
- the negate value.
-
withNegate
Set the negate property: Setting this value as truth will force to check the negation of the condition given by the user.- Parameters:
negate- the negate value to set.- Returns:
- the ApplicationGatewayRewriteRuleCondition 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<ApplicationGatewayRewriteRuleCondition>- Throws:
IOException
-
fromJson
public static ApplicationGatewayRewriteRuleCondition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayRewriteRuleCondition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayRewriteRuleCondition 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 ApplicationGatewayRewriteRuleCondition.
-