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

com.pulumi.azurenative.datafactory.inputs.CmdkeySetupArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.datafactory.inputs.AzureKeyVaultSecretReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.SecureStringArgs;
import com.pulumi.core.Either;
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.Object;
import java.lang.String;
import java.util.Objects;


/**
 * The custom setup of running cmdkey commands.
 * 
 */
public final class CmdkeySetupArgs extends com.pulumi.resources.ResourceArgs {

    public static final CmdkeySetupArgs Empty = new CmdkeySetupArgs();

    /**
     * The password of data source access.
     * 
     */
    @Import(name="password", required=true)
    private Output> password;

    /**
     * @return The password of data source access.
     * 
     */
    public Output> password() {
        return this.password;
    }

    /**
     * The server name of data source access. Type: string.
     * 
     */
    @Import(name="targetName", required=true)
    private Output targetName;

    /**
     * @return The server name of data source access. Type: string.
     * 
     */
    public Output targetName() {
        return this.targetName;
    }

    /**
     * The type of custom setup.
     * Expected value is 'CmdkeySetup'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of custom setup.
     * Expected value is 'CmdkeySetup'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The user name of data source access. Type: string.
     * 
     */
    @Import(name="userName", required=true)
    private Output userName;

    /**
     * @return The user name of data source access. Type: string.
     * 
     */
    public Output userName() {
        return this.userName;
    }

    private CmdkeySetupArgs() {}

    private CmdkeySetupArgs(CmdkeySetupArgs $) {
        this.password = $.password;
        this.targetName = $.targetName;
        this.type = $.type;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private CmdkeySetupArgs $;

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

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

        /**
         * @param password The password of data source access.
         * 
         * @return builder
         * 
         */
        public Builder password(Output> password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password of data source access.
         * 
         * @return builder
         * 
         */
        public Builder password(Either password) {
            return password(Output.of(password));
        }

        /**
         * @param password The password of data source access.
         * 
         * @return builder
         * 
         */
        public Builder password(AzureKeyVaultSecretReferenceArgs password) {
            return password(Either.ofLeft(password));
        }

        /**
         * @param password The password of data source access.
         * 
         * @return builder
         * 
         */
        public Builder password(SecureStringArgs password) {
            return password(Either.ofRight(password));
        }

        /**
         * @param targetName The server name of data source access. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder targetName(Output targetName) {
            $.targetName = targetName;
            return this;
        }

        /**
         * @param targetName The server name of data source access. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder targetName(Object targetName) {
            return targetName(Output.of(targetName));
        }

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

        /**
         * @param type The type of custom setup.
         * Expected value is 'CmdkeySetup'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param userName The user name of data source access. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder userName(Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The user name of data source access. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder userName(Object userName) {
            return userName(Output.of(userName));
        }

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

}