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

com.pulumi.azurenative.network.inputs.MatchVariableArgs 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.WebApplicationFirewallMatchVariable;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Define match variables.
 * 
 */
public final class MatchVariableArgs extends com.pulumi.resources.ResourceArgs {

    public static final MatchVariableArgs Empty = new MatchVariableArgs();

    /**
     * The selector of match variable.
     * 
     */
    @Import(name="selector")
    private @Nullable Output selector;

    /**
     * @return The selector of match variable.
     * 
     */
    public Optional> selector() {
        return Optional.ofNullable(this.selector);
    }

    /**
     * Match Variable.
     * 
     */
    @Import(name="variableName", required=true)
    private Output> variableName;

    /**
     * @return Match Variable.
     * 
     */
    public Output> variableName() {
        return this.variableName;
    }

    private MatchVariableArgs() {}

    private MatchVariableArgs(MatchVariableArgs $) {
        this.selector = $.selector;
        this.variableName = $.variableName;
    }

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

    public static final class Builder {
        private MatchVariableArgs $;

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

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

        /**
         * @param selector The selector of match variable.
         * 
         * @return builder
         * 
         */
        public Builder selector(@Nullable Output selector) {
            $.selector = selector;
            return this;
        }

        /**
         * @param selector The selector of match variable.
         * 
         * @return builder
         * 
         */
        public Builder selector(String selector) {
            return selector(Output.of(selector));
        }

        /**
         * @param variableName Match Variable.
         * 
         * @return builder
         * 
         */
        public Builder variableName(Output> variableName) {
            $.variableName = variableName;
            return this;
        }

        /**
         * @param variableName Match Variable.
         * 
         * @return builder
         * 
         */
        public Builder variableName(Either variableName) {
            return variableName(Output.of(variableName));
        }

        /**
         * @param variableName Match Variable.
         * 
         * @return builder
         * 
         */
        public Builder variableName(String variableName) {
            return variableName(Either.ofLeft(variableName));
        }

        /**
         * @param variableName Match Variable.
         * 
         * @return builder
         * 
         */
        public Builder variableName(WebApplicationFirewallMatchVariable variableName) {
            return variableName(Either.ofRight(variableName));
        }

        public MatchVariableArgs build() {
            if ($.variableName == null) {
                throw new MissingRequiredPropertyException("MatchVariableArgs", "variableName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy