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

com.pulumi.azurenative.devcenter.PoolArgs 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.devcenter;

import com.pulumi.azurenative.devcenter.enums.LicenseType;
import com.pulumi.azurenative.devcenter.enums.LocalAdminStatus;
import com.pulumi.azurenative.devcenter.inputs.StopOnDisconnectConfigurationArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PoolArgs Empty = new PoolArgs();

    /**
     * Name of a Dev Box definition in parent Project of this Pool
     * 
     */
    @Import(name="devBoxDefinitionName", required=true)
    private Output devBoxDefinitionName;

    /**
     * @return Name of a Dev Box definition in parent Project of this Pool
     * 
     */
    public Output devBoxDefinitionName() {
        return this.devBoxDefinitionName;
    }

    /**
     * Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
     * 
     */
    @Import(name="licenseType", required=true)
    private Output> licenseType;

    /**
     * @return Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
     * 
     */
    public Output> licenseType() {
        return this.licenseType;
    }

    /**
     * Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
     * 
     */
    @Import(name="localAdministrator", required=true)
    private Output> localAdministrator;

    /**
     * @return Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
     * 
     */
    public Output> localAdministrator() {
        return this.localAdministrator;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Name of a Network Connection in parent Project of this Pool
     * 
     */
    @Import(name="networkConnectionName", required=true)
    private Output networkConnectionName;

    /**
     * @return Name of a Network Connection in parent Project of this Pool
     * 
     */
    public Output networkConnectionName() {
        return this.networkConnectionName;
    }

    /**
     * Name of the pool.
     * 
     */
    @Import(name="poolName")
    private @Nullable Output poolName;

    /**
     * @return Name of the pool.
     * 
     */
    public Optional> poolName() {
        return Optional.ofNullable(this.poolName);
    }

    /**
     * The name of the project.
     * 
     */
    @Import(name="projectName", required=true)
    private Output projectName;

    /**
     * @return The name of the project.
     * 
     */
    public Output projectName() {
        return this.projectName;
    }

    /**
     * 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;
    }

    /**
     * Stop on disconnect configuration settings for Dev Boxes created in this pool.
     * 
     */
    @Import(name="stopOnDisconnect")
    private @Nullable Output stopOnDisconnect;

    /**
     * @return Stop on disconnect configuration settings for Dev Boxes created in this pool.
     * 
     */
    public Optional> stopOnDisconnect() {
        return Optional.ofNullable(this.stopOnDisconnect);
    }

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

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

    private PoolArgs() {}

    private PoolArgs(PoolArgs $) {
        this.devBoxDefinitionName = $.devBoxDefinitionName;
        this.licenseType = $.licenseType;
        this.localAdministrator = $.localAdministrator;
        this.location = $.location;
        this.networkConnectionName = $.networkConnectionName;
        this.poolName = $.poolName;
        this.projectName = $.projectName;
        this.resourceGroupName = $.resourceGroupName;
        this.stopOnDisconnect = $.stopOnDisconnect;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PoolArgs $;

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

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

        /**
         * @param devBoxDefinitionName Name of a Dev Box definition in parent Project of this Pool
         * 
         * @return builder
         * 
         */
        public Builder devBoxDefinitionName(Output devBoxDefinitionName) {
            $.devBoxDefinitionName = devBoxDefinitionName;
            return this;
        }

        /**
         * @param devBoxDefinitionName Name of a Dev Box definition in parent Project of this Pool
         * 
         * @return builder
         * 
         */
        public Builder devBoxDefinitionName(String devBoxDefinitionName) {
            return devBoxDefinitionName(Output.of(devBoxDefinitionName));
        }

        /**
         * @param licenseType Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
         * 
         * @return builder
         * 
         */
        public Builder licenseType(Output> licenseType) {
            $.licenseType = licenseType;
            return this;
        }

        /**
         * @param licenseType Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
         * 
         * @return builder
         * 
         */
        public Builder licenseType(Either licenseType) {
            return licenseType(Output.of(licenseType));
        }

        /**
         * @param licenseType Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
         * 
         * @return builder
         * 
         */
        public Builder licenseType(String licenseType) {
            return licenseType(Either.ofLeft(licenseType));
        }

        /**
         * @param licenseType Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
         * 
         * @return builder
         * 
         */
        public Builder licenseType(LicenseType licenseType) {
            return licenseType(Either.ofRight(licenseType));
        }

        /**
         * @param localAdministrator Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
         * 
         * @return builder
         * 
         */
        public Builder localAdministrator(Output> localAdministrator) {
            $.localAdministrator = localAdministrator;
            return this;
        }

        /**
         * @param localAdministrator Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
         * 
         * @return builder
         * 
         */
        public Builder localAdministrator(Either localAdministrator) {
            return localAdministrator(Output.of(localAdministrator));
        }

        /**
         * @param localAdministrator Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
         * 
         * @return builder
         * 
         */
        public Builder localAdministrator(String localAdministrator) {
            return localAdministrator(Either.ofLeft(localAdministrator));
        }

        /**
         * @param localAdministrator Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
         * 
         * @return builder
         * 
         */
        public Builder localAdministrator(LocalAdminStatus localAdministrator) {
            return localAdministrator(Either.ofRight(localAdministrator));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param networkConnectionName Name of a Network Connection in parent Project of this Pool
         * 
         * @return builder
         * 
         */
        public Builder networkConnectionName(Output networkConnectionName) {
            $.networkConnectionName = networkConnectionName;
            return this;
        }

        /**
         * @param networkConnectionName Name of a Network Connection in parent Project of this Pool
         * 
         * @return builder
         * 
         */
        public Builder networkConnectionName(String networkConnectionName) {
            return networkConnectionName(Output.of(networkConnectionName));
        }

        /**
         * @param poolName Name of the pool.
         * 
         * @return builder
         * 
         */
        public Builder poolName(@Nullable Output poolName) {
            $.poolName = poolName;
            return this;
        }

        /**
         * @param poolName Name of the pool.
         * 
         * @return builder
         * 
         */
        public Builder poolName(String poolName) {
            return poolName(Output.of(poolName));
        }

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

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

        /**
         * @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 stopOnDisconnect Stop on disconnect configuration settings for Dev Boxes created in this pool.
         * 
         * @return builder
         * 
         */
        public Builder stopOnDisconnect(@Nullable Output stopOnDisconnect) {
            $.stopOnDisconnect = stopOnDisconnect;
            return this;
        }

        /**
         * @param stopOnDisconnect Stop on disconnect configuration settings for Dev Boxes created in this pool.
         * 
         * @return builder
         * 
         */
        public Builder stopOnDisconnect(StopOnDisconnectConfigurationArgs stopOnDisconnect) {
            return stopOnDisconnect(Output.of(stopOnDisconnect));
        }

        /**
         * @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 PoolArgs build() {
            if ($.devBoxDefinitionName == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "devBoxDefinitionName");
            }
            if ($.licenseType == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "licenseType");
            }
            if ($.localAdministrator == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "localAdministrator");
            }
            if ($.networkConnectionName == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "networkConnectionName");
            }
            if ($.projectName == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "projectName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PoolArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy