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

com.pulumi.azurenative.videoanalyzer.inputs.UsernamePasswordCredentialsArgs Maven / Gradle / Ivy

// *** 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.videoanalyzer.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Username and password credentials.
 * 
 */
public final class UsernamePasswordCredentialsArgs extends com.pulumi.resources.ResourceArgs {

    public static final UsernamePasswordCredentialsArgs Empty = new UsernamePasswordCredentialsArgs();

    /**
     * Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
     * 
     */
    @Import(name="password", required=true)
    private Output password;

    /**
     * @return Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
     * 
     */
    public Output password() {
        return this.password;
    }

    /**
     * The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.UsernamePasswordCredentials'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.UsernamePasswordCredentials'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Username to be presented as part of the credentials.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return Username to be presented as part of the credentials.
     * 
     */
    public Output username() {
        return this.username;
    }

    private UsernamePasswordCredentialsArgs() {}

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

    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 password Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
         * 
         * @return builder
         * 
         */
        public Builder password(Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param type The discriminator for derived types.
         * Expected value is '#Microsoft.VideoAnalyzer.UsernamePasswordCredentials'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The discriminator for derived types.
         * Expected value is '#Microsoft.VideoAnalyzer.UsernamePasswordCredentials'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param username Username to be presented as part of the credentials.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Username to be presented as part of the credentials.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public UsernamePasswordCredentialsArgs build() {
            if ($.password == null) {
                throw new MissingRequiredPropertyException("UsernamePasswordCredentialsArgs", "password");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            if ($.username == null) {
                throw new MissingRequiredPropertyException("UsernamePasswordCredentialsArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy