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

com.pulumi.azurenative.deviceregistry.inputs.UsernamePasswordCredentialsArgs 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.deviceregistry.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;


/**
 * The credentials for authentication mode UsernamePassword.
 * 
 */
public final class UsernamePasswordCredentialsArgs extends com.pulumi.resources.ResourceArgs {

    public static final UsernamePasswordCredentialsArgs Empty = new UsernamePasswordCredentialsArgs();

    /**
     * A reference to secret containing the password.
     * 
     */
    @Import(name="passwordReference", required=true)
    private Output passwordReference;

    /**
     * @return A reference to secret containing the password.
     * 
     */
    public Output passwordReference() {
        return this.passwordReference;
    }

    /**
     * A reference to secret containing the username.
     * 
     */
    @Import(name="usernameReference", required=true)
    private Output usernameReference;

    /**
     * @return A reference to secret containing the username.
     * 
     */
    public Output usernameReference() {
        return this.usernameReference;
    }

    private UsernamePasswordCredentialsArgs() {}

    private UsernamePasswordCredentialsArgs(UsernamePasswordCredentialsArgs $) {
        this.passwordReference = $.passwordReference;
        this.usernameReference = $.usernameReference;
    }

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

    public static final class Builder {
        private UsernamePasswordCredentialsArgs $;

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

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

        /**
         * @param passwordReference A reference to secret containing the password.
         * 
         * @return builder
         * 
         */
        public Builder passwordReference(Output passwordReference) {
            $.passwordReference = passwordReference;
            return this;
        }

        /**
         * @param passwordReference A reference to secret containing the password.
         * 
         * @return builder
         * 
         */
        public Builder passwordReference(String passwordReference) {
            return passwordReference(Output.of(passwordReference));
        }

        /**
         * @param usernameReference A reference to secret containing the username.
         * 
         * @return builder
         * 
         */
        public Builder usernameReference(Output usernameReference) {
            $.usernameReference = usernameReference;
            return this;
        }

        /**
         * @param usernameReference A reference to secret containing the username.
         * 
         * @return builder
         * 
         */
        public Builder usernameReference(String usernameReference) {
            return usernameReference(Output.of(usernameReference));
        }

        public UsernamePasswordCredentialsArgs build() {
            if ($.passwordReference == null) {
                throw new MissingRequiredPropertyException("UsernamePasswordCredentialsArgs", "passwordReference");
            }
            if ($.usernameReference == null) {
                throw new MissingRequiredPropertyException("UsernamePasswordCredentialsArgs", "usernameReference");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy