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

com.pulumi.azurenative.devtestlab.LabArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.devtestlab.enums.EnvironmentPermission;
import com.pulumi.azurenative.devtestlab.enums.PremiumDataDisk;
import com.pulumi.azurenative.devtestlab.enums.StorageType;
import com.pulumi.azurenative.devtestlab.inputs.LabAnnouncementPropertiesArgs;
import com.pulumi.azurenative.devtestlab.inputs.LabSupportPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
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 LabArgs extends com.pulumi.resources.ResourceArgs {

    public static final LabArgs Empty = new LabArgs();

    /**
     * The properties of any lab announcement associated with this lab
     * 
     */
    @Import(name="announcement")
    private @Nullable Output announcement;

    /**
     * @return The properties of any lab announcement associated with this lab
     * 
     */
    public Optional> announcement() {
        return Optional.ofNullable(this.announcement);
    }

    /**
     * The access rights to be granted to the user when provisioning an environment
     * 
     */
    @Import(name="environmentPermission")
    private @Nullable Output> environmentPermission;

    /**
     * @return The access rights to be granted to the user when provisioning an environment
     * 
     */
    public Optional>> environmentPermission() {
        return Optional.ofNullable(this.environmentPermission);
    }

    /**
     * Extended properties of the lab used for experimental features
     * 
     */
    @Import(name="extendedProperties")
    private @Nullable Output> extendedProperties;

    /**
     * @return Extended properties of the lab used for experimental features
     * 
     */
    public Optional>> extendedProperties() {
        return Optional.ofNullable(this.extendedProperties);
    }

    /**
     * Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
     * 
     */
    @Import(name="labStorageType")
    private @Nullable Output> labStorageType;

    /**
     * @return Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
     * 
     */
    public Optional>> labStorageType() {
        return Optional.ofNullable(this.labStorageType);
    }

    /**
     * The location of the resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of the resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
     * 
     */
    @Import(name="mandatoryArtifactsResourceIdsLinux")
    private @Nullable Output> mandatoryArtifactsResourceIdsLinux;

    /**
     * @return The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
     * 
     */
    public Optional>> mandatoryArtifactsResourceIdsLinux() {
        return Optional.ofNullable(this.mandatoryArtifactsResourceIdsLinux);
    }

    /**
     * The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
     * 
     */
    @Import(name="mandatoryArtifactsResourceIdsWindows")
    private @Nullable Output> mandatoryArtifactsResourceIdsWindows;

    /**
     * @return The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
     * 
     */
    public Optional>> mandatoryArtifactsResourceIdsWindows() {
        return Optional.ofNullable(this.mandatoryArtifactsResourceIdsWindows);
    }

    /**
     * The name of the lab.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

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

    /**
     * The setting to enable usage of premium data disks.
     * When its value is 'Enabled', creation of standard or premium data disks is allowed.
     * When its value is 'Disabled', only creation of standard data disks is allowed.
     * 
     */
    @Import(name="premiumDataDisks")
    private @Nullable Output> premiumDataDisks;

    /**
     * @return The setting to enable usage of premium data disks.
     * When its value is 'Enabled', creation of standard or premium data disks is allowed.
     * When its value is 'Disabled', only creation of standard data disks is allowed.
     * 
     */
    public Optional>> premiumDataDisks() {
        return Optional.ofNullable(this.premiumDataDisks);
    }

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

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

    /**
     * The properties of any lab support message associated with this lab
     * 
     */
    @Import(name="support")
    private @Nullable Output support;

    /**
     * @return The properties of any lab support message associated with this lab
     * 
     */
    public Optional> support() {
        return Optional.ofNullable(this.support);
    }

    /**
     * The tags of the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tags of the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private LabArgs() {}

    private LabArgs(LabArgs $) {
        this.announcement = $.announcement;
        this.environmentPermission = $.environmentPermission;
        this.extendedProperties = $.extendedProperties;
        this.labStorageType = $.labStorageType;
        this.location = $.location;
        this.mandatoryArtifactsResourceIdsLinux = $.mandatoryArtifactsResourceIdsLinux;
        this.mandatoryArtifactsResourceIdsWindows = $.mandatoryArtifactsResourceIdsWindows;
        this.name = $.name;
        this.premiumDataDisks = $.premiumDataDisks;
        this.resourceGroupName = $.resourceGroupName;
        this.support = $.support;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private LabArgs $;

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

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

        /**
         * @param announcement The properties of any lab announcement associated with this lab
         * 
         * @return builder
         * 
         */
        public Builder announcement(@Nullable Output announcement) {
            $.announcement = announcement;
            return this;
        }

        /**
         * @param announcement The properties of any lab announcement associated with this lab
         * 
         * @return builder
         * 
         */
        public Builder announcement(LabAnnouncementPropertiesArgs announcement) {
            return announcement(Output.of(announcement));
        }

        /**
         * @param environmentPermission The access rights to be granted to the user when provisioning an environment
         * 
         * @return builder
         * 
         */
        public Builder environmentPermission(@Nullable Output> environmentPermission) {
            $.environmentPermission = environmentPermission;
            return this;
        }

        /**
         * @param environmentPermission The access rights to be granted to the user when provisioning an environment
         * 
         * @return builder
         * 
         */
        public Builder environmentPermission(Either environmentPermission) {
            return environmentPermission(Output.of(environmentPermission));
        }

        /**
         * @param environmentPermission The access rights to be granted to the user when provisioning an environment
         * 
         * @return builder
         * 
         */
        public Builder environmentPermission(String environmentPermission) {
            return environmentPermission(Either.ofLeft(environmentPermission));
        }

        /**
         * @param environmentPermission The access rights to be granted to the user when provisioning an environment
         * 
         * @return builder
         * 
         */
        public Builder environmentPermission(EnvironmentPermission environmentPermission) {
            return environmentPermission(Either.ofRight(environmentPermission));
        }

        /**
         * @param extendedProperties Extended properties of the lab used for experimental features
         * 
         * @return builder
         * 
         */
        public Builder extendedProperties(@Nullable Output> extendedProperties) {
            $.extendedProperties = extendedProperties;
            return this;
        }

        /**
         * @param extendedProperties Extended properties of the lab used for experimental features
         * 
         * @return builder
         * 
         */
        public Builder extendedProperties(Map extendedProperties) {
            return extendedProperties(Output.of(extendedProperties));
        }

        /**
         * @param labStorageType Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
         * 
         * @return builder
         * 
         */
        public Builder labStorageType(@Nullable Output> labStorageType) {
            $.labStorageType = labStorageType;
            return this;
        }

        /**
         * @param labStorageType Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
         * 
         * @return builder
         * 
         */
        public Builder labStorageType(Either labStorageType) {
            return labStorageType(Output.of(labStorageType));
        }

        /**
         * @param labStorageType Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
         * 
         * @return builder
         * 
         */
        public Builder labStorageType(String labStorageType) {
            return labStorageType(Either.ofLeft(labStorageType));
        }

        /**
         * @param labStorageType Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
         * 
         * @return builder
         * 
         */
        public Builder labStorageType(StorageType labStorageType) {
            return labStorageType(Either.ofRight(labStorageType));
        }

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

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

        /**
         * @param mandatoryArtifactsResourceIdsLinux The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
         * 
         * @return builder
         * 
         */
        public Builder mandatoryArtifactsResourceIdsLinux(@Nullable Output> mandatoryArtifactsResourceIdsLinux) {
            $.mandatoryArtifactsResourceIdsLinux = mandatoryArtifactsResourceIdsLinux;
            return this;
        }

        /**
         * @param mandatoryArtifactsResourceIdsLinux The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
         * 
         * @return builder
         * 
         */
        public Builder mandatoryArtifactsResourceIdsLinux(List mandatoryArtifactsResourceIdsLinux) {
            return mandatoryArtifactsResourceIdsLinux(Output.of(mandatoryArtifactsResourceIdsLinux));
        }

        /**
         * @param mandatoryArtifactsResourceIdsLinux The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
         * 
         * @return builder
         * 
         */
        public Builder mandatoryArtifactsResourceIdsLinux(String... mandatoryArtifactsResourceIdsLinux) {
            return mandatoryArtifactsResourceIdsLinux(List.of(mandatoryArtifactsResourceIdsLinux));
        }

        /**
         * @param mandatoryArtifactsResourceIdsWindows The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
         * 
         * @return builder
         * 
         */
        public Builder mandatoryArtifactsResourceIdsWindows(@Nullable Output> mandatoryArtifactsResourceIdsWindows) {
            $.mandatoryArtifactsResourceIdsWindows = mandatoryArtifactsResourceIdsWindows;
            return this;
        }

        /**
         * @param mandatoryArtifactsResourceIdsWindows The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
         * 
         * @return builder
         * 
         */
        public Builder mandatoryArtifactsResourceIdsWindows(List mandatoryArtifactsResourceIdsWindows) {
            return mandatoryArtifactsResourceIdsWindows(Output.of(mandatoryArtifactsResourceIdsWindows));
        }

        /**
         * @param mandatoryArtifactsResourceIdsWindows The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
         * 
         * @return builder
         * 
         */
        public Builder mandatoryArtifactsResourceIdsWindows(String... mandatoryArtifactsResourceIdsWindows) {
            return mandatoryArtifactsResourceIdsWindows(List.of(mandatoryArtifactsResourceIdsWindows));
        }

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

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

        /**
         * @param premiumDataDisks The setting to enable usage of premium data disks.
         * When its value is 'Enabled', creation of standard or premium data disks is allowed.
         * When its value is 'Disabled', only creation of standard data disks is allowed.
         * 
         * @return builder
         * 
         */
        public Builder premiumDataDisks(@Nullable Output> premiumDataDisks) {
            $.premiumDataDisks = premiumDataDisks;
            return this;
        }

        /**
         * @param premiumDataDisks The setting to enable usage of premium data disks.
         * When its value is 'Enabled', creation of standard or premium data disks is allowed.
         * When its value is 'Disabled', only creation of standard data disks is allowed.
         * 
         * @return builder
         * 
         */
        public Builder premiumDataDisks(Either premiumDataDisks) {
            return premiumDataDisks(Output.of(premiumDataDisks));
        }

        /**
         * @param premiumDataDisks The setting to enable usage of premium data disks.
         * When its value is 'Enabled', creation of standard or premium data disks is allowed.
         * When its value is 'Disabled', only creation of standard data disks is allowed.
         * 
         * @return builder
         * 
         */
        public Builder premiumDataDisks(String premiumDataDisks) {
            return premiumDataDisks(Either.ofLeft(premiumDataDisks));
        }

        /**
         * @param premiumDataDisks The setting to enable usage of premium data disks.
         * When its value is 'Enabled', creation of standard or premium data disks is allowed.
         * When its value is 'Disabled', only creation of standard data disks is allowed.
         * 
         * @return builder
         * 
         */
        public Builder premiumDataDisks(PremiumDataDisk premiumDataDisks) {
            return premiumDataDisks(Either.ofRight(premiumDataDisks));
        }

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

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

        /**
         * @param support The properties of any lab support message associated with this lab
         * 
         * @return builder
         * 
         */
        public Builder support(@Nullable Output support) {
            $.support = support;
            return this;
        }

        /**
         * @param support The properties of any lab support message associated with this lab
         * 
         * @return builder
         * 
         */
        public Builder support(LabSupportPropertiesArgs support) {
            return support(Output.of(support));
        }

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

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

        public LabArgs build() {
            $.labStorageType = Codegen.stringProp("labStorageType").left(StorageType.class).output().arg($.labStorageType).def("Premium").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("LabArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy