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

com.pulumi.azurenative.labservices.UserArgs 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.labservices;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final UserArgs Empty = new UserArgs();

    /**
     * The amount of usage quota time the user gets in addition to the lab usage quota.
     * 
     */
    @Import(name="additionalUsageQuota")
    private @Nullable Output additionalUsageQuota;

    /**
     * @return The amount of usage quota time the user gets in addition to the lab usage quota.
     * 
     */
    public Optional> additionalUsageQuota() {
        return Optional.ofNullable(this.additionalUsageQuota);
    }

    /**
     * Email address of the user.
     * 
     */
    @Import(name="email", required=true)
    private Output email;

    /**
     * @return Email address of the user.
     * 
     */
    public Output email() {
        return this.email;
    }

    /**
     * The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
     * 
     */
    @Import(name="labName", required=true)
    private Output labName;

    /**
     * @return The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
     * 
     */
    public Output labName() {
        return this.labName;
    }

    /**
     * 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 name of the user that uniquely identifies it within containing lab. Used in resource URIs.
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    private UserArgs() {}

    private UserArgs(UserArgs $) {
        this.additionalUsageQuota = $.additionalUsageQuota;
        this.email = $.email;
        this.labName = $.labName;
        this.resourceGroupName = $.resourceGroupName;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private UserArgs $;

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

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

        /**
         * @param additionalUsageQuota The amount of usage quota time the user gets in addition to the lab usage quota.
         * 
         * @return builder
         * 
         */
        public Builder additionalUsageQuota(@Nullable Output additionalUsageQuota) {
            $.additionalUsageQuota = additionalUsageQuota;
            return this;
        }

        /**
         * @param additionalUsageQuota The amount of usage quota time the user gets in addition to the lab usage quota.
         * 
         * @return builder
         * 
         */
        public Builder additionalUsageQuota(String additionalUsageQuota) {
            return additionalUsageQuota(Output.of(additionalUsageQuota));
        }

        /**
         * @param email Email address of the user.
         * 
         * @return builder
         * 
         */
        public Builder email(Output email) {
            $.email = email;
            return this;
        }

        /**
         * @param email Email address of the user.
         * 
         * @return builder
         * 
         */
        public Builder email(String email) {
            return email(Output.of(email));
        }

        /**
         * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
         * 
         * @return builder
         * 
         */
        public Builder labName(Output labName) {
            $.labName = labName;
            return this;
        }

        /**
         * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
         * 
         * @return builder
         * 
         */
        public Builder labName(String labName) {
            return labName(Output.of(labName));
        }

        /**
         * @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 userName The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public UserArgs build() {
            if ($.email == null) {
                throw new MissingRequiredPropertyException("UserArgs", "email");
            }
            if ($.labName == null) {
                throw new MissingRequiredPropertyException("UserArgs", "labName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("UserArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy