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

com.pulumi.azure.storage.inputs.LocalUserState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.storage.inputs;

import com.pulumi.azure.storage.inputs.LocalUserPermissionScopeArgs;
import com.pulumi.azure.storage.inputs.LocalUserSshAuthorizedKeyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final LocalUserState Empty = new LocalUserState();

    /**
     * The home directory of the Storage Account Local User.
     * 
     */
    @Import(name="homeDirectory")
    private @Nullable Output homeDirectory;

    /**
     * @return The home directory of the Storage Account Local User.
     * 
     */
    public Optional> homeDirectory() {
        return Optional.ofNullable(this.homeDirectory);
    }

    /**
     * The name which should be used for this Storage Account Local User. Changing this forces a new Storage Account Local User to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Storage Account Local User. Changing this forces a new Storage Account Local User to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The value of the password, which is only available when `ssh_password_enabled` is set to `true`.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The value of the password, which is only available when `ssh_password_enabled` is set to `true`.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * One or more `permission_scope` blocks as defined below.
     * 
     */
    @Import(name="permissionScopes")
    private @Nullable Output> permissionScopes;

    /**
     * @return One or more `permission_scope` blocks as defined below.
     * 
     */
    public Optional>> permissionScopes() {
        return Optional.ofNullable(this.permissionScopes);
    }

    /**
     * The unique Security Identifier of this Storage Account Local User.
     * 
     */
    @Import(name="sid")
    private @Nullable Output sid;

    /**
     * @return The unique Security Identifier of this Storage Account Local User.
     * 
     */
    public Optional> sid() {
        return Optional.ofNullable(this.sid);
    }

    /**
     * One or more `ssh_authorized_key` blocks as defined below.
     * 
     */
    @Import(name="sshAuthorizedKeys")
    private @Nullable Output> sshAuthorizedKeys;

    /**
     * @return One or more `ssh_authorized_key` blocks as defined below.
     * 
     */
    public Optional>> sshAuthorizedKeys() {
        return Optional.ofNullable(this.sshAuthorizedKeys);
    }

    /**
     * Specifies whether SSH Key Authentication is enabled. Defaults to `false`.
     * 
     */
    @Import(name="sshKeyEnabled")
    private @Nullable Output sshKeyEnabled;

    /**
     * @return Specifies whether SSH Key Authentication is enabled. Defaults to `false`.
     * 
     */
    public Optional> sshKeyEnabled() {
        return Optional.ofNullable(this.sshKeyEnabled);
    }

    /**
     * Specifies whether SSH Password Authentication is enabled. Defaults to `false`.
     * 
     */
    @Import(name="sshPasswordEnabled")
    private @Nullable Output sshPasswordEnabled;

    /**
     * @return Specifies whether SSH Password Authentication is enabled. Defaults to `false`.
     * 
     */
    public Optional> sshPasswordEnabled() {
        return Optional.ofNullable(this.sshPasswordEnabled);
    }

    /**
     * The ID of the Storage Account that this Storage Account Local User resides in. Changing this forces a new Storage Account Local User to be created.
     * 
     */
    @Import(name="storageAccountId")
    private @Nullable Output storageAccountId;

    /**
     * @return The ID of the Storage Account that this Storage Account Local User resides in. Changing this forces a new Storage Account Local User to be created.
     * 
     */
    public Optional> storageAccountId() {
        return Optional.ofNullable(this.storageAccountId);
    }

    private LocalUserState() {}

    private LocalUserState(LocalUserState $) {
        this.homeDirectory = $.homeDirectory;
        this.name = $.name;
        this.password = $.password;
        this.permissionScopes = $.permissionScopes;
        this.sid = $.sid;
        this.sshAuthorizedKeys = $.sshAuthorizedKeys;
        this.sshKeyEnabled = $.sshKeyEnabled;
        this.sshPasswordEnabled = $.sshPasswordEnabled;
        this.storageAccountId = $.storageAccountId;
    }

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

    public static final class Builder {
        private LocalUserState $;

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

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

        /**
         * @param homeDirectory The home directory of the Storage Account Local User.
         * 
         * @return builder
         * 
         */
        public Builder homeDirectory(@Nullable Output homeDirectory) {
            $.homeDirectory = homeDirectory;
            return this;
        }

        /**
         * @param homeDirectory The home directory of the Storage Account Local User.
         * 
         * @return builder
         * 
         */
        public Builder homeDirectory(String homeDirectory) {
            return homeDirectory(Output.of(homeDirectory));
        }

        /**
         * @param name The name which should be used for this Storage Account Local User. Changing this forces a new Storage Account Local User to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Storage Account Local User. Changing this forces a new Storage Account Local User to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param password The value of the password, which is only available when `ssh_password_enabled` is set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The value of the password, which is only available when `ssh_password_enabled` is set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param permissionScopes One or more `permission_scope` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder permissionScopes(@Nullable Output> permissionScopes) {
            $.permissionScopes = permissionScopes;
            return this;
        }

        /**
         * @param permissionScopes One or more `permission_scope` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder permissionScopes(List permissionScopes) {
            return permissionScopes(Output.of(permissionScopes));
        }

        /**
         * @param permissionScopes One or more `permission_scope` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder permissionScopes(LocalUserPermissionScopeArgs... permissionScopes) {
            return permissionScopes(List.of(permissionScopes));
        }

        /**
         * @param sid The unique Security Identifier of this Storage Account Local User.
         * 
         * @return builder
         * 
         */
        public Builder sid(@Nullable Output sid) {
            $.sid = sid;
            return this;
        }

        /**
         * @param sid The unique Security Identifier of this Storage Account Local User.
         * 
         * @return builder
         * 
         */
        public Builder sid(String sid) {
            return sid(Output.of(sid));
        }

        /**
         * @param sshAuthorizedKeys One or more `ssh_authorized_key` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder sshAuthorizedKeys(@Nullable Output> sshAuthorizedKeys) {
            $.sshAuthorizedKeys = sshAuthorizedKeys;
            return this;
        }

        /**
         * @param sshAuthorizedKeys One or more `ssh_authorized_key` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder sshAuthorizedKeys(List sshAuthorizedKeys) {
            return sshAuthorizedKeys(Output.of(sshAuthorizedKeys));
        }

        /**
         * @param sshAuthorizedKeys One or more `ssh_authorized_key` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder sshAuthorizedKeys(LocalUserSshAuthorizedKeyArgs... sshAuthorizedKeys) {
            return sshAuthorizedKeys(List.of(sshAuthorizedKeys));
        }

        /**
         * @param sshKeyEnabled Specifies whether SSH Key Authentication is enabled. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder sshKeyEnabled(@Nullable Output sshKeyEnabled) {
            $.sshKeyEnabled = sshKeyEnabled;
            return this;
        }

        /**
         * @param sshKeyEnabled Specifies whether SSH Key Authentication is enabled. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder sshKeyEnabled(Boolean sshKeyEnabled) {
            return sshKeyEnabled(Output.of(sshKeyEnabled));
        }

        /**
         * @param sshPasswordEnabled Specifies whether SSH Password Authentication is enabled. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder sshPasswordEnabled(@Nullable Output sshPasswordEnabled) {
            $.sshPasswordEnabled = sshPasswordEnabled;
            return this;
        }

        /**
         * @param sshPasswordEnabled Specifies whether SSH Password Authentication is enabled. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder sshPasswordEnabled(Boolean sshPasswordEnabled) {
            return sshPasswordEnabled(Output.of(sshPasswordEnabled));
        }

        /**
         * @param storageAccountId The ID of the Storage Account that this Storage Account Local User resides in. Changing this forces a new Storage Account Local User to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(@Nullable Output storageAccountId) {
            $.storageAccountId = storageAccountId;
            return this;
        }

        /**
         * @param storageAccountId The ID of the Storage Account that this Storage Account Local User resides in. Changing this forces a new Storage Account Local User to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(String storageAccountId) {
            return storageAccountId(Output.of(storageAccountId));
        }

        public LocalUserState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy