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

com.pulumi.azurenative.storagecache.inputs.CacheActiveDirectorySettingsCredentialsArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.storagecache.inputs;

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;


/**
 * Active Directory admin credentials used to join the HPC Cache to a domain.
 * 
 */
public final class CacheActiveDirectorySettingsCredentialsArgs extends com.pulumi.resources.ResourceArgs {

    public static final CacheActiveDirectorySettingsCredentialsArgs Empty = new CacheActiveDirectorySettingsCredentialsArgs();

    /**
     * Plain text password of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Plain text password of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * Username of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return Username of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
     * 
     */
    public Output username() {
        return this.username;
    }

    private CacheActiveDirectorySettingsCredentialsArgs() {}

    private CacheActiveDirectorySettingsCredentialsArgs(CacheActiveDirectorySettingsCredentialsArgs $) {
        this.password = $.password;
        this.username = $.username;
    }

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

    public static final class Builder {
        private CacheActiveDirectorySettingsCredentialsArgs $;

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

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

        /**
         * @param password Plain text password of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Plain text password of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param username Username of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Username of the Active Directory domain administrator. This value is stored encrypted and not returned on response.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public CacheActiveDirectorySettingsCredentialsArgs build() {
            if ($.username == null) {
                throw new MissingRequiredPropertyException("CacheActiveDirectorySettingsCredentialsArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy