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 java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Rewrite rule of an application gateway.
/** * Rewrite rule of an application gateway. */
public class ApplicationGatewayRewriteRule {
Name of the rewrite rule that is unique within an Application Gateway.
/** * Name of the rewrite rule that is unique within an Application Gateway. */
@JsonProperty(value = "name") private String name;
Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
/** * Rule Sequence of the rewrite rule that determines the order of execution * of a particular rule in a RewriteRuleSet. */
@JsonProperty(value = "ruleSequence") private Integer ruleSequence;
Conditions based on which the action set execution will be evaluated.
/** * Conditions based on which the action set execution will be evaluated. */
@JsonProperty(value = "conditions") private List<ApplicationGatewayRewriteRuleCondition> conditions;
Set of actions to be done as part of the rewrite Rule.
/** * Set of actions to be done as part of the rewrite Rule. */
@JsonProperty(value = "actionSet") private ApplicationGatewayRewriteRuleActionSet actionSet;
Get name of the rewrite rule that is unique within an Application Gateway.
Returns:the name value
/** * Get name of the rewrite rule that is unique within an Application Gateway. * * @return the name value */
public String name() { return this.name; }
Set name of the rewrite rule that is unique within an Application Gateway.
Params:
  • name – the name value to set
Returns:the ApplicationGatewayRewriteRule object itself.
/** * Set name of the rewrite rule that is unique within an Application Gateway. * * @param name the name value to set * @return the ApplicationGatewayRewriteRule object itself. */
public ApplicationGatewayRewriteRule withName(String name) { this.name = name; return this; }
Get rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
Returns:the ruleSequence value
/** * Get rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet. * * @return the ruleSequence value */
public Integer ruleSequence() { return this.ruleSequence; }
Set rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
Params:
  • ruleSequence – the ruleSequence value to set
Returns:the ApplicationGatewayRewriteRule object itself.
/** * Set rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet. * * @param ruleSequence the ruleSequence value to set * @return the ApplicationGatewayRewriteRule object itself. */
public ApplicationGatewayRewriteRule withRuleSequence(Integer ruleSequence) { this.ruleSequence = ruleSequence; return this; }
Get conditions based on which the action set execution will be evaluated.
Returns:the conditions value
/** * Get conditions based on which the action set execution will be evaluated. * * @return the conditions value */
public List<ApplicationGatewayRewriteRuleCondition> conditions() { return this.conditions; }
Set conditions based on which the action set execution will be evaluated.
Params:
  • conditions – the conditions value to set
Returns:the ApplicationGatewayRewriteRule object itself.
/** * Set conditions based on which the action set execution will be evaluated. * * @param conditions the conditions value to set * @return the ApplicationGatewayRewriteRule object itself. */
public ApplicationGatewayRewriteRule withConditions(List<ApplicationGatewayRewriteRuleCondition> conditions) { this.conditions = conditions; return this; }
Get set of actions to be done as part of the rewrite Rule.
Returns:the actionSet value
/** * Get set of actions to be done as part of the rewrite Rule. * * @return the actionSet value */
public ApplicationGatewayRewriteRuleActionSet actionSet() { return this.actionSet; }
Set set of actions to be done as part of the rewrite Rule.
Params:
  • actionSet – the actionSet value to set
Returns:the ApplicationGatewayRewriteRule object itself.
/** * Set set of actions to be done as part of the rewrite Rule. * * @param actionSet the actionSet value to set * @return the ApplicationGatewayRewriteRule object itself. */
public ApplicationGatewayRewriteRule withActionSet(ApplicationGatewayRewriteRuleActionSet actionSet) { this.actionSet = actionSet; return this; } }