// *** 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.azure.streamanalytics.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class JobJobStorageAccount {
    /**
     * @return The account key for the Azure storage account.
     * 
     */
    private String accountKey;
    /**
     * @return The name of the Azure storage account.
     * 
     */
    private String accountName;
    /**
     * @return The authentication mode of the storage account. The only supported value is `ConnectionString`. Defaults to `ConnectionString`.
     * 
     */
    private @Nullable String authenticationMode;

    private JobJobStorageAccount() {}
    /**
     * @return The account key for the Azure storage account.
     * 
     */
    public String accountKey() {
        return this.accountKey;
    }
    /**
     * @return The name of the Azure storage account.
     * 
     */
    public String accountName() {
        return this.accountName;
    }
    /**
     * @return The authentication mode of the storage account. The only supported value is `ConnectionString`. Defaults to `ConnectionString`.
     * 
     */
    public Optional<String> authenticationMode() {
        return Optional.ofNullable(this.authenticationMode);
    }

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

    public static Builder builder(JobJobStorageAccount defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String accountKey;
        private String accountName;
        private @Nullable String authenticationMode;
        public Builder() {}
        public Builder(JobJobStorageAccount defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accountKey = defaults.accountKey;
    	      this.accountName = defaults.accountName;
    	      this.authenticationMode = defaults.authenticationMode;
        }

        @CustomType.Setter
        public Builder accountKey(String accountKey) {
            this.accountKey = Objects.requireNonNull(accountKey);
            return this;
        }
        @CustomType.Setter
        public Builder accountName(String accountName) {
            this.accountName = Objects.requireNonNull(accountName);
            return this;
        }
        @CustomType.Setter
        public Builder authenticationMode(@Nullable String authenticationMode) {
            this.authenticationMode = authenticationMode;
            return this;
        }
        public JobJobStorageAccount build() {
            final var o = new JobJobStorageAccount();
            o.accountKey = accountKey;
            o.accountName = accountName;
            o.authenticationMode = authenticationMode;
            return o;
        }
    }
}
