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

com.pulumi.azurenative.authorization.VariableArgs 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.authorization;

import com.pulumi.azurenative.authorization.inputs.PolicyVariableColumnArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class VariableArgs extends com.pulumi.resources.ResourceArgs {

    public static final VariableArgs Empty = new VariableArgs();

    /**
     * Variable column definitions.
     * 
     */
    @Import(name="columns", required=true)
    private Output> columns;

    /**
     * @return Variable column definitions.
     * 
     */
    public Output> columns() {
        return this.columns;
    }

    /**
     * The name of the variable to operate on.
     * 
     */
    @Import(name="variableName")
    private @Nullable Output variableName;

    /**
     * @return The name of the variable to operate on.
     * 
     */
    public Optional> variableName() {
        return Optional.ofNullable(this.variableName);
    }

    private VariableArgs() {}

    private VariableArgs(VariableArgs $) {
        this.columns = $.columns;
        this.variableName = $.variableName;
    }

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

    public static final class Builder {
        private VariableArgs $;

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

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

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

        /**
         * @param columns Variable column definitions.
         * 
         * @return builder
         * 
         */
        public Builder columns(List columns) {
            return columns(Output.of(columns));
        }

        /**
         * @param columns Variable column definitions.
         * 
         * @return builder
         * 
         */
        public Builder columns(PolicyVariableColumnArgs... columns) {
            return columns(List.of(columns));
        }

        /**
         * @param variableName The name of the variable to operate on.
         * 
         * @return builder
         * 
         */
        public Builder variableName(@Nullable Output variableName) {
            $.variableName = variableName;
            return this;
        }

        /**
         * @param variableName The name of the variable to operate on.
         * 
         * @return builder
         * 
         */
        public Builder variableName(String variableName) {
            return variableName(Output.of(variableName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy