All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.network.ApplicationGatewayRewriteRule Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * 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.
 */
public class ApplicationGatewayRewriteRule {
    /**
     * 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.
     */
    @JsonProperty(value = "ruleSequence")
    private Integer ruleSequence;

    /**
     * Conditions based on which the action set execution will be evaluated.
     */
    @JsonProperty(value = "conditions")
    private List conditions;

    /**
     * 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.
     *
     * @return the name value
     */
    public String name() {
        return this.name;
    }

    /**
     * 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.
     *
     * @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.
     *
     * @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.
     *
     * @return the conditions value
     */
    public List conditions() {
        return this.conditions;
    }

    /**
     * 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 conditions) {
        this.conditions = conditions;
        return this;
    }

    /**
     * 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.
     *
     * @param actionSet the actionSet value to set
     * @return the ApplicationGatewayRewriteRule object itself.
     */
    public ApplicationGatewayRewriteRule withActionSet(ApplicationGatewayRewriteRuleActionSet actionSet) {
        this.actionSet = actionSet;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy