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

com.pulumi.azurenative.datafactory.inputs.SSISAccessCredentialArgs 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.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.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.util.Objects;


/**
 * SSIS access credential.
 * 
 */
public final class SSISAccessCredentialArgs extends com.pulumi.resources.ResourceArgs {

    public static final SSISAccessCredentialArgs Empty = new SSISAccessCredentialArgs();

    /**
     * Domain for windows authentication. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="domain", required=true)
    private Output domain;

    /**
     * @return Domain for windows authentication. Type: string (or Expression with resultType string).
     * 
     */
    public Output domain() {
        return this.domain;
    }

    /**
     * Password for windows authentication.
     * 
     */
    @Import(name="password", required=true)
    private Output> password;

    /**
     * @return Password for windows authentication.
     * 
     */
    public Output> password() {
        return this.password;
    }

    /**
     * UseName for windows authentication. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="userName", required=true)
    private Output userName;

    /**
     * @return UseName for windows authentication. Type: string (or Expression with resultType string).
     * 
     */
    public Output userName() {
        return this.userName;
    }

    private SSISAccessCredentialArgs() {}

    private SSISAccessCredentialArgs(SSISAccessCredentialArgs $) {
        this.domain = $.domain;
        this.password = $.password;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private SSISAccessCredentialArgs $;

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

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

        /**
         * @param domain Domain for windows authentication. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder domain(Output domain) {
            $.domain = domain;
            return this;
        }

        /**
         * @param domain Domain for windows authentication. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder domain(Object domain) {
            return domain(Output.of(domain));
        }

        /**
         * @param password Password for windows authentication.
         * 
         * @return builder
         * 
         */
        public Builder password(Output> password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password for windows authentication.
         * 
         * @return builder
         * 
         */
        public Builder password(Either password) {
            return password(Output.of(password));
        }

        /**
         * @param password Password for windows authentication.
         * 
         * @return builder
         * 
         */
        public Builder password(AzureKeyVaultSecretReferenceArgs password) {
            return password(Either.ofLeft(password));
        }

        /**
         * @param password Password for windows authentication.
         * 
         * @return builder
         * 
         */
        public Builder password(SecureStringArgs password) {
            return password(Either.ofRight(password));
        }

        /**
         * @param userName UseName for windows authentication. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder userName(Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName UseName for windows authentication. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder userName(Object userName) {
            return userName(Output.of(userName));
        }

        public SSISAccessCredentialArgs build() {
            if ($.domain == null) {
                throw new MissingRequiredPropertyException("SSISAccessCredentialArgs", "domain");
            }
            if ($.password == null) {
                throw new MissingRequiredPropertyException("SSISAccessCredentialArgs", "password");
            }
            if ($.userName == null) {
                throw new MissingRequiredPropertyException("SSISAccessCredentialArgs", "userName");
            }
            return $;
        }
    }

}