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

com.pulumi.azurenative.autonomousdevelopmentplatform.DataPoolArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.autonomousdevelopmentplatform;

import com.pulumi.azurenative.autonomousdevelopmentplatform.inputs.DataPoolLocationArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DataPoolArgs Empty = new DataPoolArgs();

    /**
     * The name of the ADP account
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the ADP account
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The name of the Data Pool
     * 
     */
    @Import(name="dataPoolName")
    private @Nullable Output dataPoolName;

    /**
     * @return The name of the Data Pool
     * 
     */
    public Optional> dataPoolName() {
        return Optional.ofNullable(this.dataPoolName);
    }

    /**
     * Gets or sets the collection of locations where Data Pool resources should be created
     * 
     */
    @Import(name="locations", required=true)
    private Output> locations;

    /**
     * @return Gets or sets the collection of locations where Data Pool resources should be created
     * 
     */
    public Output> locations() {
        return this.locations;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private DataPoolArgs() {}

    private DataPoolArgs(DataPoolArgs $) {
        this.accountName = $.accountName;
        this.dataPoolName = $.dataPoolName;
        this.locations = $.locations;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private DataPoolArgs $;

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

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

        /**
         * @param accountName The name of the ADP account
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the ADP account
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param dataPoolName The name of the Data Pool
         * 
         * @return builder
         * 
         */
        public Builder dataPoolName(@Nullable Output dataPoolName) {
            $.dataPoolName = dataPoolName;
            return this;
        }

        /**
         * @param dataPoolName The name of the Data Pool
         * 
         * @return builder
         * 
         */
        public Builder dataPoolName(String dataPoolName) {
            return dataPoolName(Output.of(dataPoolName));
        }

        /**
         * @param locations Gets or sets the collection of locations where Data Pool resources should be created
         * 
         * @return builder
         * 
         */
        public Builder locations(Output> locations) {
            $.locations = locations;
            return this;
        }

        /**
         * @param locations Gets or sets the collection of locations where Data Pool resources should be created
         * 
         * @return builder
         * 
         */
        public Builder locations(List locations) {
            return locations(Output.of(locations));
        }

        /**
         * @param locations Gets or sets the collection of locations where Data Pool resources should be created
         * 
         * @return builder
         * 
         */
        public Builder locations(DataPoolLocationArgs... locations) {
            return locations(List.of(locations));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public DataPoolArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("DataPoolArgs", "accountName");
            }
            if ($.locations == null) {
                throw new MissingRequiredPropertyException("DataPoolArgs", "locations");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DataPoolArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy