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

com.pulumi.azurenative.servicelinker.outputs.SecretAuthInfoResponse 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.servicelinker.outputs;

import com.pulumi.azurenative.servicelinker.outputs.KeyVaultSecretReferenceSecretInfoResponse;
import com.pulumi.azurenative.servicelinker.outputs.KeyVaultSecretUriSecretInfoResponse;
import com.pulumi.azurenative.servicelinker.outputs.ValueSecretInfoResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class SecretAuthInfoResponse {
    /**
     * @return The authentication type.
     * Expected value is 'secret'.
     * 
     */
    private String authType;
    /**
     * @return Username or account name for secret auth.
     * 
     */
    private @Nullable String name;
    /**
     * @return Password or key vault secret for secret auth.
     * 
     */
    private @Nullable Object secretInfo;

    private SecretAuthInfoResponse() {}
    /**
     * @return The authentication type.
     * Expected value is 'secret'.
     * 
     */
    public String authType() {
        return this.authType;
    }
    /**
     * @return Username or account name for secret auth.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Password or key vault secret for secret auth.
     * 
     */
    public Optional secretInfo() {
        return Optional.ofNullable(this.secretInfo);
    }

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

    public static Builder builder(SecretAuthInfoResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String authType;
        private @Nullable String name;
        private @Nullable Object secretInfo;
        public Builder() {}
        public Builder(SecretAuthInfoResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authType = defaults.authType;
    	      this.name = defaults.name;
    	      this.secretInfo = defaults.secretInfo;
        }

        @CustomType.Setter
        public Builder authType(String authType) {
            if (authType == null) {
              throw new MissingRequiredPropertyException("SecretAuthInfoResponse", "authType");
            }
            this.authType = authType;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder secretInfo(@Nullable Object secretInfo) {

            this.secretInfo = secretInfo;
            return this;
        }
        public SecretAuthInfoResponse build() {
            final var _resultValue = new SecretAuthInfoResponse();
            _resultValue.authType = authType;
            _resultValue.name = name;
            _resultValue.secretInfo = secretInfo;
            return _resultValue;
        }
    }
}