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

com.pulumi.azurenative.avs.inputs.PSCredentialExecutionParameterArgs 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.avs.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;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * a powershell credential object
 * 
 */
public final class PSCredentialExecutionParameterArgs extends com.pulumi.resources.ResourceArgs {

    public static final PSCredentialExecutionParameterArgs Empty = new PSCredentialExecutionParameterArgs();

    /**
     * The parameter name
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The parameter name
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * password for login
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return password for login
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The type of execution parameter
     * Expected value is 'Credential'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of execution parameter
     * Expected value is 'Credential'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * username for login
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return username for login
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private PSCredentialExecutionParameterArgs() {}

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

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

    public static final class Builder {
        private PSCredentialExecutionParameterArgs $;

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

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

        /**
         * @param name The parameter name
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The parameter name
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param password password for login
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password password for login
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param type The type of execution parameter
         * Expected value is 'Credential'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of execution parameter
         * Expected value is 'Credential'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param username username for login
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username username for login
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy