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

com.pulumi.azurenative.network.inputs.ApplicationGatewayRewriteRuleArgs Maven / Gradle / Ivy

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.network.inputs;

import com.pulumi.azurenative.network.inputs.ApplicationGatewayRewriteRuleActionSetArgs;
import com.pulumi.azurenative.network.inputs.ApplicationGatewayRewriteRuleConditionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Rewrite rule of an application gateway.
 * 
 */
public final class ApplicationGatewayRewriteRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayRewriteRuleArgs Empty = new ApplicationGatewayRewriteRuleArgs();

    /**
     * Set of actions to be done as part of the rewrite Rule.
     * 
     */
    @Import(name="actionSet")
    private @Nullable Output actionSet;

    /**
     * @return Set of actions to be done as part of the rewrite Rule.
     * 
     */
    public Optional> actionSet() {
        return Optional.ofNullable(this.actionSet);
    }

    /**
     * Conditions based on which the action set execution will be evaluated.
     * 
     */
    @Import(name="conditions")
    private @Nullable Output> conditions;

    /**
     * @return Conditions based on which the action set execution will be evaluated.
     * 
     */
    public Optional>> conditions() {
        return Optional.ofNullable(this.conditions);
    }

    /**
     * Name of the rewrite rule that is unique within an Application Gateway.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the rewrite rule that is unique within an Application Gateway.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
     * 
     */
    @Import(name="ruleSequence")
    private @Nullable Output ruleSequence;

    /**
     * @return Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
     * 
     */
    public Optional> ruleSequence() {
        return Optional.ofNullable(this.ruleSequence);
    }

    private ApplicationGatewayRewriteRuleArgs() {}

    private ApplicationGatewayRewriteRuleArgs(ApplicationGatewayRewriteRuleArgs $) {
        this.actionSet = $.actionSet;
        this.conditions = $.conditions;
        this.name = $.name;
        this.ruleSequence = $.ruleSequence;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ApplicationGatewayRewriteRuleArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ApplicationGatewayRewriteRuleArgs $;

        public Builder() {
            $ = new ApplicationGatewayRewriteRuleArgs();
        }

        public Builder(ApplicationGatewayRewriteRuleArgs defaults) {
            $ = new ApplicationGatewayRewriteRuleArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param actionSet Set of actions to be done as part of the rewrite Rule.
         * 
         * @return builder
         * 
         */
        public Builder actionSet(@Nullable Output actionSet) {
            $.actionSet = actionSet;
            return this;
        }

        /**
         * @param actionSet Set of actions to be done as part of the rewrite Rule.
         * 
         * @return builder
         * 
         */
        public Builder actionSet(ApplicationGatewayRewriteRuleActionSetArgs actionSet) {
            return actionSet(Output.of(actionSet));
        }

        /**
         * @param conditions Conditions based on which the action set execution will be evaluated.
         * 
         * @return builder
         * 
         */
        public Builder conditions(@Nullable Output> conditions) {
            $.conditions = conditions;
            return this;
        }

        /**
         * @param conditions Conditions based on which the action set execution will be evaluated.
         * 
         * @return builder
         * 
         */
        public Builder conditions(List conditions) {
            return conditions(Output.of(conditions));
        }

        /**
         * @param conditions Conditions based on which the action set execution will be evaluated.
         * 
         * @return builder
         * 
         */
        public Builder conditions(ApplicationGatewayRewriteRuleConditionArgs... conditions) {
            return conditions(List.of(conditions));
        }

        /**
         * @param name Name of the rewrite rule that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the rewrite rule that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param ruleSequence Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
         * 
         * @return builder
         * 
         */
        public Builder ruleSequence(@Nullable Output ruleSequence) {
            $.ruleSequence = ruleSequence;
            return this;
        }

        /**
         * @param ruleSequence Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet.
         * 
         * @return builder
         * 
         */
        public Builder ruleSequence(Integer ruleSequence) {
            return ruleSequence(Output.of(ruleSequence));
        }

        public ApplicationGatewayRewriteRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy