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

com.pulumi.azurenative.network.outputs.RouteMapRuleResponse Maven / Gradle / Ivy

// *** 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.outputs;

import com.pulumi.azurenative.network.outputs.ActionResponse;
import com.pulumi.azurenative.network.outputs.CriterionResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RouteMapRuleResponse {
    /**
     * @return List of actions which will be applied on a match.
     * 
     */
    private @Nullable List actions;
    /**
     * @return List of matching criterion which will be applied to traffic.
     * 
     */
    private @Nullable List matchCriteria;
    /**
     * @return The unique name for the rule.
     * 
     */
    private @Nullable String name;
    /**
     * @return Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.
     * 
     */
    private @Nullable String nextStepIfMatched;

    private RouteMapRuleResponse() {}
    /**
     * @return List of actions which will be applied on a match.
     * 
     */
    public List actions() {
        return this.actions == null ? List.of() : this.actions;
    }
    /**
     * @return List of matching criterion which will be applied to traffic.
     * 
     */
    public List matchCriteria() {
        return this.matchCriteria == null ? List.of() : this.matchCriteria;
    }
    /**
     * @return The unique name for the rule.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @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);
    }

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

    public static Builder builder(RouteMapRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List actions;
        private @Nullable List matchCriteria;
        private @Nullable String name;
        private @Nullable String nextStepIfMatched;
        public Builder() {}
        public Builder(RouteMapRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actions = defaults.actions;
    	      this.matchCriteria = defaults.matchCriteria;
    	      this.name = defaults.name;
    	      this.nextStepIfMatched = defaults.nextStepIfMatched;
        }

        @CustomType.Setter
        public Builder actions(@Nullable List actions) {

            this.actions = actions;
            return this;
        }
        public Builder actions(ActionResponse... actions) {
            return actions(List.of(actions));
        }
        @CustomType.Setter
        public Builder matchCriteria(@Nullable List matchCriteria) {

            this.matchCriteria = matchCriteria;
            return this;
        }
        public Builder matchCriteria(CriterionResponse... matchCriteria) {
            return matchCriteria(List.of(matchCriteria));
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder nextStepIfMatched(@Nullable String nextStepIfMatched) {

            this.nextStepIfMatched = nextStepIfMatched;
            return this;
        }
        public RouteMapRuleResponse build() {
            final var _resultValue = new RouteMapRuleResponse();
            _resultValue.actions = actions;
            _resultValue.matchCriteria = matchCriteria;
            _resultValue.name = name;
            _resultValue.nextStepIfMatched = nextStepIfMatched;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy