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

com.pulumi.azure.devcenter.DevBoxDefinitionArgs Maven / Gradle / Ivy

// *** 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.azure.devcenter;

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 ID of the associated Dev Center. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="devCenterId", required=true)
    private Output devCenterId;

    /**
     * @return The ID of the associated Dev Center. Changing this forces a new resource to be created.
     * 
     */
    public Output devCenterId() {
        return this.devCenterId;
    }

    /**
     * The ID of the image for the Dev Center Dev Box Definition.
     * 
     */
    @Import(name="imageReferenceId", required=true)
    private Output imageReferenceId;

    /**
     * @return The ID of the image for the Dev Center Dev Box Definition.
     * 
     */
    public Output imageReferenceId() {
        return this.imageReferenceId;
    }

    /**
     * The Azure Region where the Dev Center Dev Box Definition should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The Azure Region where the Dev Center Dev Box Definition should exist. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the name of this Dev Center Dev Box Definition. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of this Dev Center Dev Box Definition. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the SKU for the Dev Center Dev Box Definition.
     * 
     */
    @Import(name="skuName", required=true)
    private Output skuName;

    /**
     * @return The name of the SKU for the Dev Center Dev Box Definition.
     * 
     */
    public Output skuName() {
        return this.skuName;
    }

    /**
     * A mapping of tags which should be assigned to the Dev Center Dev Box Definition.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Dev Center Dev Box Definition.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private DevBoxDefinitionArgs() {}

    private DevBoxDefinitionArgs(DevBoxDefinitionArgs $) {
        this.devCenterId = $.devCenterId;
        this.imageReferenceId = $.imageReferenceId;
        this.location = $.location;
        this.name = $.name;
        this.skuName = $.skuName;
        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 devCenterId The ID of the associated Dev Center. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder devCenterId(Output devCenterId) {
            $.devCenterId = devCenterId;
            return this;
        }

        /**
         * @param devCenterId The ID of the associated Dev Center. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder devCenterId(String devCenterId) {
            return devCenterId(Output.of(devCenterId));
        }

        /**
         * @param imageReferenceId The ID of the image for the Dev Center Dev Box Definition.
         * 
         * @return builder
         * 
         */
        public Builder imageReferenceId(Output imageReferenceId) {
            $.imageReferenceId = imageReferenceId;
            return this;
        }

        /**
         * @param imageReferenceId The ID of the image for the Dev Center Dev Box Definition.
         * 
         * @return builder
         * 
         */
        public Builder imageReferenceId(String imageReferenceId) {
            return imageReferenceId(Output.of(imageReferenceId));
        }

        /**
         * @param location The Azure Region where the Dev Center Dev Box Definition should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The Azure Region where the Dev Center Dev Box Definition should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name Specifies the name of this Dev Center Dev Box Definition. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of this Dev Center Dev Box Definition. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param skuName The name of the SKU for the Dev Center Dev Box Definition.
         * 
         * @return builder
         * 
         */
        public Builder skuName(Output skuName) {
            $.skuName = skuName;
            return this;
        }

        /**
         * @param skuName The name of the SKU for the Dev Center Dev Box Definition.
         * 
         * @return builder
         * 
         */
        public Builder skuName(String skuName) {
            return skuName(Output.of(skuName));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Dev Center Dev Box Definition.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Dev Center Dev Box Definition.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public DevBoxDefinitionArgs build() {
            if ($.devCenterId == null) {
                throw new MissingRequiredPropertyException("DevBoxDefinitionArgs", "devCenterId");
            }
            if ($.imageReferenceId == null) {
                throw new MissingRequiredPropertyException("DevBoxDefinitionArgs", "imageReferenceId");
            }
            if ($.skuName == null) {
                throw new MissingRequiredPropertyException("DevBoxDefinitionArgs", "skuName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy