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

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

There is a newer version: 2.78.0
Show 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.enums.NextStep;
import com.pulumi.azurenative.network.inputs.ActionArgs;
import com.pulumi.azurenative.network.inputs.CriterionArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A RouteMap Rule.
 * 
 */
public final class RouteMapRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final RouteMapRuleArgs Empty = new RouteMapRuleArgs();

    /**
     * List of actions which will be applied on a match.
     * 
     */
    @Import(name="actions")
    private @Nullable Output> actions;

    /**
     * @return List of actions which will be applied on a match.
     * 
     */
    public Optional>> actions() {
        return Optional.ofNullable(this.actions);
    }

    /**
     * List of matching criterion which will be applied to traffic.
     * 
     */
    @Import(name="matchCriteria")
    private @Nullable Output> matchCriteria;

    /**
     * @return List of matching criterion which will be applied to traffic.
     * 
     */
    public Optional>> matchCriteria() {
        return Optional.ofNullable(this.matchCriteria);
    }

    /**
     * The unique name for the rule.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The unique name for the rule.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
     * 
     */
    @Import(name="nextStepIfMatched")
    private @Nullable Output> nextStepIfMatched;

    /**
     * @return Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
     * 
     */
    public Optional>> nextStepIfMatched() {
        return Optional.ofNullable(this.nextStepIfMatched);
    }

    private RouteMapRuleArgs() {}

    private RouteMapRuleArgs(RouteMapRuleArgs $) {
        this.actions = $.actions;
        this.matchCriteria = $.matchCriteria;
        this.name = $.name;
        this.nextStepIfMatched = $.nextStepIfMatched;
    }

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

    public static final class Builder {
        private RouteMapRuleArgs $;

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

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

        /**
         * @param actions List of actions which will be applied on a match.
         * 
         * @return builder
         * 
         */
        public Builder actions(@Nullable Output> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions List of actions which will be applied on a match.
         * 
         * @return builder
         * 
         */
        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions List of actions which will be applied on a match.
         * 
         * @return builder
         * 
         */
        public Builder actions(ActionArgs... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param matchCriteria List of matching criterion which will be applied to traffic.
         * 
         * @return builder
         * 
         */
        public Builder matchCriteria(@Nullable Output> matchCriteria) {
            $.matchCriteria = matchCriteria;
            return this;
        }

        /**
         * @param matchCriteria List of matching criterion which will be applied to traffic.
         * 
         * @return builder
         * 
         */
        public Builder matchCriteria(List matchCriteria) {
            return matchCriteria(Output.of(matchCriteria));
        }

        /**
         * @param matchCriteria List of matching criterion which will be applied to traffic.
         * 
         * @return builder
         * 
         */
        public Builder matchCriteria(CriterionArgs... matchCriteria) {
            return matchCriteria(List.of(matchCriteria));
        }

        /**
         * @param name The unique name for the rule.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The unique name for the rule.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nextStepIfMatched Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
         * 
         * @return builder
         * 
         */
        public Builder nextStepIfMatched(@Nullable Output> nextStepIfMatched) {
            $.nextStepIfMatched = nextStepIfMatched;
            return this;
        }

        /**
         * @param nextStepIfMatched Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
         * 
         * @return builder
         * 
         */
        public Builder nextStepIfMatched(Either nextStepIfMatched) {
            return nextStepIfMatched(Output.of(nextStepIfMatched));
        }

        /**
         * @param nextStepIfMatched Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
         * 
         * @return builder
         * 
         */
        public Builder nextStepIfMatched(String nextStepIfMatched) {
            return nextStepIfMatched(Either.ofLeft(nextStepIfMatched));
        }

        /**
         * @param nextStepIfMatched Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
         * 
         * @return builder
         * 
         */
        public Builder nextStepIfMatched(NextStep nextStepIfMatched) {
            return nextStepIfMatched(Either.ofRight(nextStepIfMatched));
        }

        public RouteMapRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy