Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network; import com.fasterxml.jackson.annotation.JsonProperty;
Set of conditions in the Rewrite Rule in Application Gateway.
/** * Set of conditions in the Rewrite Rule in Application Gateway. */
public class ApplicationGatewayRewriteRuleCondition {
The condition parameter of the RewriteRuleCondition.
/** * The condition parameter of the RewriteRuleCondition. */
@JsonProperty(value = "variable") private String variable;
The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
/** * The pattern, either fixed string or regular expression, that evaluates * the truthfulness of the condition. */
@JsonProperty(value = "pattern") private String pattern;
Setting this paramter to truth value with force the pattern to do a case in-sensitive comparison.
/** * Setting this paramter to truth value with force the pattern to do a case * in-sensitive comparison. */
@JsonProperty(value = "ignoreCase") private Boolean ignoreCase;
Setting this value as truth will force to check the negation of the condition given by the user.
/** * Setting this value as truth will force to check the negation of the * condition given by the user. */
@JsonProperty(value = "negate") private Boolean negate;
Get the condition parameter of the RewriteRuleCondition.
Returns:the variable value
/** * Get the condition parameter of the RewriteRuleCondition. * * @return the variable value */
public String variable() { return this.variable; }
Set the condition parameter of the RewriteRuleCondition.
Params:
  • variable – the variable value to set
Returns:the ApplicationGatewayRewriteRuleCondition object itself.
/** * Set the condition parameter of the RewriteRuleCondition. * * @param variable the variable value to set * @return the ApplicationGatewayRewriteRuleCondition object itself. */
public ApplicationGatewayRewriteRuleCondition withVariable(String variable) { this.variable = variable; return this; }
Get the pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
Returns:the pattern value
/** * Get the pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition. * * @return the pattern value */
public String pattern() { return this.pattern; }
Set the pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.
Params:
  • pattern – the pattern value to set
Returns:the ApplicationGatewayRewriteRuleCondition object itself.
/** * Set the pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition. * * @param pattern the pattern value to set * @return the ApplicationGatewayRewriteRuleCondition object itself. */
public ApplicationGatewayRewriteRuleCondition withPattern(String pattern) { this.pattern = pattern; return this; }
Get setting this paramter to truth value with force the pattern to do a case in-sensitive comparison.
Returns:the ignoreCase value
/** * Get setting this paramter to truth value with force the pattern to do a case in-sensitive comparison. * * @return the ignoreCase value */
public Boolean ignoreCase() { return this.ignoreCase; }
Set setting this paramter to truth value with force the pattern to do a case in-sensitive comparison.
Params:
  • ignoreCase – the ignoreCase value to set
Returns:the ApplicationGatewayRewriteRuleCondition object itself.
/** * Set setting this paramter to truth value with force the pattern to do a case in-sensitive comparison. * * @param ignoreCase the ignoreCase value to set * @return the ApplicationGatewayRewriteRuleCondition object itself. */
public ApplicationGatewayRewriteRuleCondition withIgnoreCase(Boolean ignoreCase) { this.ignoreCase = ignoreCase; return this; }
Get setting this value as truth will force to check the negation of the condition given by the user.
Returns:the negate value
/** * Get setting this value as truth will force to check the negation of the condition given by the user. * * @return the negate value */
public Boolean negate() { return this.negate; }
Set setting this value as truth will force to check the negation of the condition given by the user.
Params:
  • negate – the negate value to set
Returns:the ApplicationGatewayRewriteRuleCondition object itself.
/** * Set setting this value as truth will force to check the negation of the condition given by the user. * * @param negate the negate value to set * @return the ApplicationGatewayRewriteRuleCondition object itself. */
public ApplicationGatewayRewriteRuleCondition withNegate(Boolean negate) { this.negate = negate; return this; } }