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

com.pulumi.azurenative.devcenter.DevBoxDefinitionArgs 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.HibernateSupport;
import com.pulumi.azurenative.devcenter.inputs.ImageReferenceArgs;
import com.pulumi.azurenative.devcenter.inputs.SkuArgs;
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 DevBoxDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final DevBoxDefinitionArgs Empty = new DevBoxDefinitionArgs();

    /**
     * The name of the Dev Box definition.
     * 
     */
    @Import(name="devBoxDefinitionName")
    private @Nullable Output devBoxDefinitionName;

    /**
     * @return The name of the Dev Box definition.
     * 
     */
    public Optional> devBoxDefinitionName() {
        return Optional.ofNullable(this.devBoxDefinitionName);
    }

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

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

    /**
     * Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate
     * 
     */
    @Import(name="hibernateSupport")
    private @Nullable Output> hibernateSupport;

    /**
     * @return Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate
     * 
     */
    public Optional>> hibernateSupport() {
        return Optional.ofNullable(this.hibernateSupport);
    }

    /**
     * Image reference information.
     * 
     */
    @Import(name="imageReference", required=true)
    private Output imageReference;

    /**
     * @return Image reference information.
     * 
     */
    public Output imageReference() {
        return this.imageReference;
    }

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

    /**
     * The storage type used for the Operating System disk of Dev Boxes created using this definition.
     * 
     */
    @Import(name="osStorageType")
    private @Nullable Output osStorageType;

    /**
     * @return The storage type used for the Operating System disk of Dev Boxes created using this definition.
     * 
     */
    public Optional> osStorageType() {
        return Optional.ofNullable(this.osStorageType);
    }

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

    /**
     * The SKU for Dev Boxes created using this definition.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return The SKU for Dev Boxes created using this definition.
     * 
     */
    public Output sku() {
        return this.sku;
    }

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

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

    private DevBoxDefinitionArgs() {}

    private DevBoxDefinitionArgs(DevBoxDefinitionArgs $) {
        this.devBoxDefinitionName = $.devBoxDefinitionName;
        this.devCenterName = $.devCenterName;
        this.hibernateSupport = $.hibernateSupport;
        this.imageReference = $.imageReference;
        this.location = $.location;
        this.osStorageType = $.osStorageType;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private DevBoxDefinitionArgs $;

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

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

        /**
         * @param devBoxDefinitionName The name of the Dev Box definition.
         * 
         * @return builder
         * 
         */
        public Builder devBoxDefinitionName(@Nullable Output devBoxDefinitionName) {
            $.devBoxDefinitionName = devBoxDefinitionName;
            return this;
        }

        /**
         * @param devBoxDefinitionName The name of the Dev Box definition.
         * 
         * @return builder
         * 
         */
        public Builder devBoxDefinitionName(String devBoxDefinitionName) {
            return devBoxDefinitionName(Output.of(devBoxDefinitionName));
        }

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

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

        /**
         * @param hibernateSupport Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate
         * 
         * @return builder
         * 
         */
        public Builder hibernateSupport(@Nullable Output> hibernateSupport) {
            $.hibernateSupport = hibernateSupport;
            return this;
        }

        /**
         * @param hibernateSupport Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate
         * 
         * @return builder
         * 
         */
        public Builder hibernateSupport(Either hibernateSupport) {
            return hibernateSupport(Output.of(hibernateSupport));
        }

        /**
         * @param hibernateSupport Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate
         * 
         * @return builder
         * 
         */
        public Builder hibernateSupport(String hibernateSupport) {
            return hibernateSupport(Either.ofLeft(hibernateSupport));
        }

        /**
         * @param hibernateSupport Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate
         * 
         * @return builder
         * 
         */
        public Builder hibernateSupport(HibernateSupport hibernateSupport) {
            return hibernateSupport(Either.ofRight(hibernateSupport));
        }

        /**
         * @param imageReference Image reference information.
         * 
         * @return builder
         * 
         */
        public Builder imageReference(Output imageReference) {
            $.imageReference = imageReference;
            return this;
        }

        /**
         * @param imageReference Image reference information.
         * 
         * @return builder
         * 
         */
        public Builder imageReference(ImageReferenceArgs imageReference) {
            return imageReference(Output.of(imageReference));
        }

        /**
         * @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 osStorageType The storage type used for the Operating System disk of Dev Boxes created using this definition.
         * 
         * @return builder
         * 
         */
        public Builder osStorageType(@Nullable Output osStorageType) {
            $.osStorageType = osStorageType;
            return this;
        }

        /**
         * @param osStorageType The storage type used for the Operating System disk of Dev Boxes created using this definition.
         * 
         * @return builder
         * 
         */
        public Builder osStorageType(String osStorageType) {
            return osStorageType(Output.of(osStorageType));
        }

        /**
         * @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 sku The SKU for Dev Boxes created using this definition.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The SKU for Dev Boxes created using this definition.
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @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 DevBoxDefinitionArgs build() {
            if ($.devCenterName == null) {
                throw new MissingRequiredPropertyException("DevBoxDefinitionArgs", "devCenterName");
            }
            if ($.imageReference == null) {
                throw new MissingRequiredPropertyException("DevBoxDefinitionArgs", "imageReference");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DevBoxDefinitionArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("DevBoxDefinitionArgs", "sku");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy