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

com.pulumi.azurenative.servicelinker.inputs.SecretAuthInfoArgs 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.servicelinker.inputs;

import com.pulumi.azurenative.servicelinker.inputs.KeyVaultSecretReferenceSecretInfoArgs;
import com.pulumi.azurenative.servicelinker.inputs.KeyVaultSecretUriSecretInfoArgs;
import com.pulumi.azurenative.servicelinker.inputs.ValueSecretInfoArgs;
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;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The authentication info when authType is secret
 * 
 */
public final class SecretAuthInfoArgs extends com.pulumi.resources.ResourceArgs {

    public static final SecretAuthInfoArgs Empty = new SecretAuthInfoArgs();

    /**
     * The authentication type.
     * Expected value is 'secret'.
     * 
     */
    @Import(name="authType", required=true)
    private Output authType;

    /**
     * @return The authentication type.
     * Expected value is 'secret'.
     * 
     */
    public Output authType() {
        return this.authType;
    }

    /**
     * Username or account name for secret auth.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Username or account name for secret auth.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Password or key vault secret for secret auth.
     * 
     */
    @Import(name="secretInfo")
    private @Nullable Output secretInfo;

    /**
     * @return Password or key vault secret for secret auth.
     * 
     */
    public Optional> secretInfo() {
        return Optional.ofNullable(this.secretInfo);
    }

    private SecretAuthInfoArgs() {}

    private SecretAuthInfoArgs(SecretAuthInfoArgs $) {
        this.authType = $.authType;
        this.name = $.name;
        this.secretInfo = $.secretInfo;
    }

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

    public static final class Builder {
        private SecretAuthInfoArgs $;

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

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

        /**
         * @param authType The authentication type.
         * Expected value is 'secret'.
         * 
         * @return builder
         * 
         */
        public Builder authType(Output authType) {
            $.authType = authType;
            return this;
        }

        /**
         * @param authType The authentication type.
         * Expected value is 'secret'.
         * 
         * @return builder
         * 
         */
        public Builder authType(String authType) {
            return authType(Output.of(authType));
        }

        /**
         * @param name Username or account name for secret auth.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Username or account name for secret auth.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param secretInfo Password or key vault secret for secret auth.
         * 
         * @return builder
         * 
         */
        public Builder secretInfo(@Nullable Output secretInfo) {
            $.secretInfo = secretInfo;
            return this;
        }

        /**
         * @param secretInfo Password or key vault secret for secret auth.
         * 
         * @return builder
         * 
         */
        public Builder secretInfo(Object secretInfo) {
            return secretInfo(Output.of(secretInfo));
        }

        public SecretAuthInfoArgs build() {
            $.authType = Codegen.stringProp("authType").output().arg($.authType).require();
            return $;
        }
    }

}