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

com.pulumi.azurenative.networkcloud.inputs.KeySetUserArgs 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.networkcloud.inputs;

import com.pulumi.azurenative.networkcloud.inputs.SshPublicKeyArgs;
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 KeySetUserArgs extends com.pulumi.resources.ResourceArgs {

    public static final KeySetUserArgs Empty = new KeySetUserArgs();

    /**
     * The user name that will be used for access.
     * 
     */
    @Import(name="azureUserName", required=true)
    private Output azureUserName;

    /**
     * @return The user name that will be used for access.
     * 
     */
    public Output azureUserName() {
        return this.azureUserName;
    }

    /**
     * The free-form description for this user.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The free-form description for this user.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
     * 
     */
    @Import(name="sshPublicKey", required=true)
    private Output sshPublicKey;

    /**
     * @return The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
     * 
     */
    public Output sshPublicKey() {
        return this.sshPublicKey;
    }

    /**
     * The user principal name (email format) used to validate this user's group membership.
     * 
     */
    @Import(name="userPrincipalName")
    private @Nullable Output userPrincipalName;

    /**
     * @return The user principal name (email format) used to validate this user's group membership.
     * 
     */
    public Optional> userPrincipalName() {
        return Optional.ofNullable(this.userPrincipalName);
    }

    private KeySetUserArgs() {}

    private KeySetUserArgs(KeySetUserArgs $) {
        this.azureUserName = $.azureUserName;
        this.description = $.description;
        this.sshPublicKey = $.sshPublicKey;
        this.userPrincipalName = $.userPrincipalName;
    }

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

    public static final class Builder {
        private KeySetUserArgs $;

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

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

        /**
         * @param azureUserName The user name that will be used for access.
         * 
         * @return builder
         * 
         */
        public Builder azureUserName(Output azureUserName) {
            $.azureUserName = azureUserName;
            return this;
        }

        /**
         * @param azureUserName The user name that will be used for access.
         * 
         * @return builder
         * 
         */
        public Builder azureUserName(String azureUserName) {
            return azureUserName(Output.of(azureUserName));
        }

        /**
         * @param description The free-form description for this user.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The free-form description for this user.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param sshPublicKey The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
         * 
         * @return builder
         * 
         */
        public Builder sshPublicKey(Output sshPublicKey) {
            $.sshPublicKey = sshPublicKey;
            return this;
        }

        /**
         * @param sshPublicKey The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
         * 
         * @return builder
         * 
         */
        public Builder sshPublicKey(SshPublicKeyArgs sshPublicKey) {
            return sshPublicKey(Output.of(sshPublicKey));
        }

        /**
         * @param userPrincipalName The user principal name (email format) used to validate this user's group membership.
         * 
         * @return builder
         * 
         */
        public Builder userPrincipalName(@Nullable Output userPrincipalName) {
            $.userPrincipalName = userPrincipalName;
            return this;
        }

        /**
         * @param userPrincipalName The user principal name (email format) used to validate this user's group membership.
         * 
         * @return builder
         * 
         */
        public Builder userPrincipalName(String userPrincipalName) {
            return userPrincipalName(Output.of(userPrincipalName));
        }

        public KeySetUserArgs build() {
            if ($.azureUserName == null) {
                throw new MissingRequiredPropertyException("KeySetUserArgs", "azureUserName");
            }
            if ($.sshPublicKey == null) {
                throw new MissingRequiredPropertyException("KeySetUserArgs", "sshPublicKey");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy