다음을 통해 공유


ActiveDirectoryProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ActiveDirectoryProperties

Implements

public final class ActiveDirectoryProperties
implements JsonSerializable<ActiveDirectoryProperties>

Settings properties for Active Directory (AD).

Constructor Summary

Constructor Description
ActiveDirectoryProperties()

Creates an instance of ActiveDirectoryProperties class.

Method Summary

Modifier and Type Method and Description
ActiveDirectoryPropertiesAccountType accountType()

Get the accountType property: Specifies the Active Directory account type for Azure Storage.

String azureStorageSid()

Get the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage.

String domainGuid()

Get the domainGuid property: Specifies the domain GUID.

String domainName()

Get the domainName property: Specifies the primary domain that the AD DNS server is authoritative for.

String domainSid()

Get the domainSid property: Specifies the security identifier (SID) of the AD domain.

String forestName()

Get the forestName property: Specifies the Active Directory forest to get.

static ActiveDirectoryProperties fromJson(JsonReader jsonReader)

Reads an instance of ActiveDirectoryProperties from the JsonReader.

String netBiosDomainName()

Get the netBiosDomainName property: Specifies the NetBIOS domain name.

String samAccountName()

Get the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ActiveDirectoryProperties withAccountType(ActiveDirectoryPropertiesAccountType accountType)

Set the accountType property: Specifies the Active Directory account type for Azure Storage.

ActiveDirectoryProperties withAzureStorageSid(String azureStorageSid)

Set the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage.

ActiveDirectoryProperties withDomainGuid(String domainGuid)

Set the domainGuid property: Specifies the domain GUID.

ActiveDirectoryProperties withDomainName(String domainName)

Set the domainName property: Specifies the primary domain that the AD DNS server is authoritative for.

ActiveDirectoryProperties withDomainSid(String domainSid)

Set the domainSid property: Specifies the security identifier (SID) of the AD domain.

ActiveDirectoryProperties withForestName(String forestName)

Set the forestName property: Specifies the Active Directory forest to get.

ActiveDirectoryProperties withNetBiosDomainName(String netBiosDomainName)

Set the netBiosDomainName property: Specifies the NetBIOS domain name.

ActiveDirectoryProperties withSamAccountName(String samAccountName)

Set the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage.

Methods inherited from java.lang.Object

Constructor Details

ActiveDirectoryProperties

public ActiveDirectoryProperties()

Creates an instance of ActiveDirectoryProperties class.

Method Details

accountType

public ActiveDirectoryPropertiesAccountType accountType()

Get the accountType property: Specifies the Active Directory account type for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, samAccountName should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted.

Returns:

the accountType value.

azureStorageSid

public String azureStorageSid()

Get the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted.

Returns:

the azureStorageSid value.

domainGuid

public String domainGuid()

Get the domainGuid property: Specifies the domain GUID. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. If directoryServiceOptions is set to AADDS (Entra DS authentication), this property can be omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for authentication.

Returns:

the domainGuid value.

domainName

public String domainName()

Get the domainName property: Specifies the primary domain that the AD DNS server is authoritative for. This property is required if directoryServiceOptions is set to AD (AD DS authentication). If directoryServiceOptions is set to AADDS (Entra DS authentication), providing this property is optional, as it will be inferred automatically if omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for authentication.

Returns:

the domainName value.

domainSid

public String domainSid()

Get the domainSid property: Specifies the security identifier (SID) of the AD domain. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted.

Returns:

the domainSid value.

forestName

public String forestName()

Get the forestName property: Specifies the Active Directory forest to get. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted.

Returns:

the forestName value.

fromJson

public static ActiveDirectoryProperties fromJson(JsonReader jsonReader)

Reads an instance of ActiveDirectoryProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ActiveDirectoryProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ActiveDirectoryProperties.

netBiosDomainName

public String netBiosDomainName()

Get the netBiosDomainName property: Specifies the NetBIOS domain name. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted.

Returns:

the netBiosDomainName value.

samAccountName

public String samAccountName()

Get the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, accountType should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted.

Returns:

the samAccountName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccountType

public ActiveDirectoryProperties withAccountType(ActiveDirectoryPropertiesAccountType accountType)

Set the accountType property: Specifies the Active Directory account type for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, samAccountName should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted.

Parameters:

accountType - the accountType value to set.

Returns:

the ActiveDirectoryProperties object itself.

withAzureStorageSid

public ActiveDirectoryProperties withAzureStorageSid(String azureStorageSid)

Set the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted.

Parameters:

azureStorageSid - the azureStorageSid value to set.

Returns:

the ActiveDirectoryProperties object itself.

withDomainGuid

public ActiveDirectoryProperties withDomainGuid(String domainGuid)

Set the domainGuid property: Specifies the domain GUID. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. If directoryServiceOptions is set to AADDS (Entra DS authentication), this property can be omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for authentication.

Parameters:

domainGuid - the domainGuid value to set.

Returns:

the ActiveDirectoryProperties object itself.

withDomainName

public ActiveDirectoryProperties withDomainName(String domainName)

Set the domainName property: Specifies the primary domain that the AD DNS server is authoritative for. This property is required if directoryServiceOptions is set to AD (AD DS authentication). If directoryServiceOptions is set to AADDS (Entra DS authentication), providing this property is optional, as it will be inferred automatically if omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for authentication.

Parameters:

domainName - the domainName value to set.

Returns:

the ActiveDirectoryProperties object itself.

withDomainSid

public ActiveDirectoryProperties withDomainSid(String domainSid)

Set the domainSid property: Specifies the security identifier (SID) of the AD domain. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted.

Parameters:

domainSid - the domainSid value to set.

Returns:

the ActiveDirectoryProperties object itself.

withForestName

public ActiveDirectoryProperties withForestName(String forestName)

Set the forestName property: Specifies the Active Directory forest to get. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted.

Parameters:

forestName - the forestName value to set.

Returns:

the ActiveDirectoryProperties object itself.

withNetBiosDomainName

public ActiveDirectoryProperties withNetBiosDomainName(String netBiosDomainName)

Set the netBiosDomainName property: Specifies the NetBIOS domain name. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted.

Parameters:

netBiosDomainName - the netBiosDomainName value to set.

Returns:

the ActiveDirectoryProperties object itself.

withSamAccountName

public ActiveDirectoryProperties withSamAccountName(String samAccountName)

Set the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, accountType should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted.

Parameters:

samAccountName - the samAccountName value to set.

Returns:

the ActiveDirectoryProperties object itself.

Applies to