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

import com.pulumi.azure.network.outputs.RouteMapRuleActionParameter;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class RouteMapRuleAction {
    /**
     * @return A `parameter` block as defined below.
     * 
     */
    private List<RouteMapRuleActionParameter> parameters;
    /**
     * @return The type of the action to be taken. Possible values are `Add`, `Drop`, `Remove`, `Replace` and `Unknown`.
     * 
     */
    private String type;

    private RouteMapRuleAction() {}
    /**
     * @return A `parameter` block as defined below.
     * 
     */
    public List<RouteMapRuleActionParameter> parameters() {
        return this.parameters;
    }
    /**
     * @return The type of the action to be taken. Possible values are `Add`, `Drop`, `Remove`, `Replace` and `Unknown`.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(RouteMapRuleAction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<RouteMapRuleActionParameter> parameters;
        private String type;
        public Builder() {}
        public Builder(RouteMapRuleAction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.parameters = defaults.parameters;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder parameters(List<RouteMapRuleActionParameter> parameters) {
            this.parameters = Objects.requireNonNull(parameters);
            return this;
        }
        public Builder parameters(RouteMapRuleActionParameter... parameters) {
            return parameters(List.of(parameters));
        }
        @CustomType.Setter
        public Builder type(String type) {
            this.type = Objects.requireNonNull(type);
            return this;
        }
        public RouteMapRuleAction build() {
            final var o = new RouteMapRuleAction();
            o.parameters = parameters;
            o.type = type;
            return o;
        }
    }
}
