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

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

import com.pulumi.azurenative.databoxedge.enums.UserType;
import com.pulumi.azurenative.databoxedge.inputs.AsymmetricEncryptedSecretArgs;
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.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 device name.
     * 
     */
    @Import(name="deviceName", required=true)
    private Output deviceName;

    /**
     * @return The device name.
     * 
     */
    public Output deviceName() {
        return this.deviceName;
    }

    /**
     * The password details.
     * 
     */
    @Import(name="encryptedPassword")
    private @Nullable Output encryptedPassword;

    /**
     * @return The password details.
     * 
     */
    public Optional> encryptedPassword() {
        return Optional.ofNullable(this.encryptedPassword);
    }

    /**
     * The user name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

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

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

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

    /**
     * Type of the user.
     * 
     */
    @Import(name="userType", required=true)
    private Output> userType;

    /**
     * @return Type of the user.
     * 
     */
    public Output> userType() {
        return this.userType;
    }

    private UserArgs() {}

    private UserArgs(UserArgs $) {
        this.deviceName = $.deviceName;
        this.encryptedPassword = $.encryptedPassword;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.userType = $.userType;
    }

    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 deviceName The device name.
         * 
         * @return builder
         * 
         */
        public Builder deviceName(Output deviceName) {
            $.deviceName = deviceName;
            return this;
        }

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

        /**
         * @param encryptedPassword The password details.
         * 
         * @return builder
         * 
         */
        public Builder encryptedPassword(@Nullable Output encryptedPassword) {
            $.encryptedPassword = encryptedPassword;
            return this;
        }

        /**
         * @param encryptedPassword The password details.
         * 
         * @return builder
         * 
         */
        public Builder encryptedPassword(AsymmetricEncryptedSecretArgs encryptedPassword) {
            return encryptedPassword(Output.of(encryptedPassword));
        }

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

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

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

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

        /**
         * @param userType Type of the user.
         * 
         * @return builder
         * 
         */
        public Builder userType(Output> userType) {
            $.userType = userType;
            return this;
        }

        /**
         * @param userType Type of the user.
         * 
         * @return builder
         * 
         */
        public Builder userType(Either userType) {
            return userType(Output.of(userType));
        }

        /**
         * @param userType Type of the user.
         * 
         * @return builder
         * 
         */
        public Builder userType(String userType) {
            return userType(Either.ofLeft(userType));
        }

        /**
         * @param userType Type of the user.
         * 
         * @return builder
         * 
         */
        public Builder userType(UserType userType) {
            return userType(Either.ofRight(userType));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy