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

import com.pulumi.azure.storage.outputs.AccountAzureFilesAuthenticationActiveDirectory;
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 AccountAzureFilesAuthentication {
    /**
     * @return A `active_directory` block as defined below. Required when `directory_type` is `AD`.
     * 
     * &gt; **Note:** If `directory_type` is set to `AADKERB`, `active_directory` is not supported. Use [icals](https://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-auth-azure-active-directory-enable?tabs=azure-portal#configure-directory-and-file-level-permissions) to configure directory and file level permissions.
     * 
     */
    private @Nullable AccountAzureFilesAuthenticationActiveDirectory activeDirectory;
    /**
     * @return Specifies the directory service used. Possible values are `AADDS`, `AD` and `AADKERB`.
     * 
     */
    private String directoryType;

    private AccountAzureFilesAuthentication() {}
    /**
     * @return A `active_directory` block as defined below. Required when `directory_type` is `AD`.
     * 
     * &gt; **Note:** If `directory_type` is set to `AADKERB`, `active_directory` is not supported. Use [icals](https://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-auth-azure-active-directory-enable?tabs=azure-portal#configure-directory-and-file-level-permissions) to configure directory and file level permissions.
     * 
     */
    public Optional<AccountAzureFilesAuthenticationActiveDirectory> activeDirectory() {
        return Optional.ofNullable(this.activeDirectory);
    }
    /**
     * @return Specifies the directory service used. Possible values are `AADDS`, `AD` and `AADKERB`.
     * 
     */
    public String directoryType() {
        return this.directoryType;
    }

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

    public static Builder builder(AccountAzureFilesAuthentication defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AccountAzureFilesAuthenticationActiveDirectory activeDirectory;
        private String directoryType;
        public Builder() {}
        public Builder(AccountAzureFilesAuthentication defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.activeDirectory = defaults.activeDirectory;
    	      this.directoryType = defaults.directoryType;
        }

        @CustomType.Setter
        public Builder activeDirectory(@Nullable AccountAzureFilesAuthenticationActiveDirectory activeDirectory) {
            this.activeDirectory = activeDirectory;
            return this;
        }
        @CustomType.Setter
        public Builder directoryType(String directoryType) {
            this.directoryType = Objects.requireNonNull(directoryType);
            return this;
        }
        public AccountAzureFilesAuthentication build() {
            final var o = new AccountAzureFilesAuthentication();
            o.activeDirectory = activeDirectory;
            o.directoryType = directoryType;
            return o;
        }
    }
}
