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

import com.pulumi.azure.Utilities;
import com.pulumi.azure.devtest.LabArgs;
import com.pulumi.azure.devtest.inputs.LabState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages a Dev Test Lab.
 * 
 * ## Example Usage
 * ```java
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.devtest.Lab;
 * import com.pulumi.azure.devtest.LabArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var exampleResourceGroup = new ResourceGroup(&#34;exampleResourceGroup&#34;, ResourceGroupArgs.builder()        
 *             .location(&#34;West Europe&#34;)
 *             .build());
 * 
 *         var exampleLab = new Lab(&#34;exampleLab&#34;, LabArgs.builder()        
 *             .location(exampleResourceGroup.location())
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .tags(Map.of(&#34;Sydney&#34;, &#34;Australia&#34;))
 *             .build());
 * 
 *     }
 * }
 * ```
 * 
 * ## Import
 * 
 * Dev Test Labs can be imported using the `resource id`, e.g.
 * 
 * ```sh
 *  $ pulumi import azure:devtest/lab:Lab lab1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DevTestLab/labs/lab1
 * ```
 * 
 */
@ResourceType(type="azure:devtest/lab:Lab")
public class Lab extends com.pulumi.resources.CustomResource {
    /**
     * The ID of the Storage Account used for Artifact Storage.
     * 
     */
    @Export(name="artifactsStorageAccountId", refs={String.class}, tree="[0]")
    private Output<String> artifactsStorageAccountId;

    /**
     * @return The ID of the Storage Account used for Artifact Storage.
     * 
     */
    public Output<String> artifactsStorageAccountId() {
        return this.artifactsStorageAccountId;
    }
    /**
     * The ID of the Default Premium Storage Account for this Dev Test Lab.
     * 
     */
    @Export(name="defaultPremiumStorageAccountId", refs={String.class}, tree="[0]")
    private Output<String> defaultPremiumStorageAccountId;

    /**
     * @return The ID of the Default Premium Storage Account for this Dev Test Lab.
     * 
     */
    public Output<String> defaultPremiumStorageAccountId() {
        return this.defaultPremiumStorageAccountId;
    }
    /**
     * The ID of the Default Storage Account for this Dev Test Lab.
     * 
     */
    @Export(name="defaultStorageAccountId", refs={String.class}, tree="[0]")
    private Output<String> defaultStorageAccountId;

    /**
     * @return The ID of the Default Storage Account for this Dev Test Lab.
     * 
     */
    public Output<String> defaultStorageAccountId() {
        return this.defaultStorageAccountId;
    }
    /**
     * The ID of the Key used for this Dev Test Lab.
     * 
     */
    @Export(name="keyVaultId", refs={String.class}, tree="[0]")
    private Output<String> keyVaultId;

    /**
     * @return The ID of the Key used for this Dev Test Lab.
     * 
     */
    public Output<String> keyVaultId() {
        return this.keyVaultId;
    }
    /**
     * Specifies the supported Azure location where the Dev Test Lab should exist. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="location", refs={String.class}, tree="[0]")
    private Output<String> location;

    /**
     * @return Specifies the supported Azure location where the Dev Test Lab should exist. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> location() {
        return this.location;
    }
    /**
     * Specifies the name of the Dev Test Lab. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="name", refs={String.class}, tree="[0]")
    private Output<String> name;

    /**
     * @return Specifies the name of the Dev Test Lab. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> name() {
        return this.name;
    }
    /**
     * The ID of the Storage Account used for Storage of Premium Data Disk.
     * 
     */
    @Export(name="premiumDataDiskStorageAccountId", refs={String.class}, tree="[0]")
    private Output<String> premiumDataDiskStorageAccountId;

    /**
     * @return The ID of the Storage Account used for Storage of Premium Data Disk.
     * 
     */
    public Output<String> premiumDataDiskStorageAccountId() {
        return this.premiumDataDiskStorageAccountId;
    }
    /**
     * The name of the resource group under which the Dev Test Lab resource has to be created. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="resourceGroupName", refs={String.class}, tree="[0]")
    private Output<String> resourceGroupName;

    /**
     * @return The name of the resource group under which the Dev Test Lab resource has to be created. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> resourceGroupName() {
        return this.resourceGroupName;
    }
    /**
     * The type of storage used by the Dev Test Lab. Possible values are `Standard` and `Premium`. Defaults to `Premium`.
     * 
     * &gt; **Note:** `storage_type` has been deprecated as the API no longer supports it and will be removed in Version 4.0 of the provider.
     * 
     * @deprecated
     * `storage_type` is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0.
     * 
     */
    @Deprecated /* `storage_type` is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. */
    @Export(name="storageType", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> storageType;

    /**
     * @return The type of storage used by the Dev Test Lab. Possible values are `Standard` and `Premium`. Defaults to `Premium`.
     * 
     * &gt; **Note:** `storage_type` has been deprecated as the API no longer supports it and will be removed in Version 4.0 of the provider.
     * 
     */
    public Output<Optional<String>> storageType() {
        return Codegen.optional(this.storageType);
    }
    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
    private Output</* @Nullable */ Map<String,String>> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Output<Optional<Map<String,String>>> tags() {
        return Codegen.optional(this.tags);
    }
    /**
     * The unique immutable identifier of the Dev Test Lab.
     * 
     */
    @Export(name="uniqueIdentifier", refs={String.class}, tree="[0]")
    private Output<String> uniqueIdentifier;

    /**
     * @return The unique immutable identifier of the Dev Test Lab.
     * 
     */
    public Output<String> uniqueIdentifier() {
        return this.uniqueIdentifier;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public Lab(String name) {
        this(name, LabArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public Lab(String name, LabArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public Lab(String name, LabArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:devtest/lab:Lab", name, args == null ? LabArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private Lab(String name, Output<String> id, @Nullable LabState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:devtest/lab:Lab", name, state, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static Lab get(String name, Output<String> id, @Nullable LabState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new Lab(name, id, state, options);
    }
}
