Class ActiveDirectoryProperties
java.lang.Object
com.azure.resourcemanager.storage.models.ActiveDirectoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ActiveDirectoryProperties>
public final class ActiveDirectoryProperties
extends Object
implements com.azure.json.JsonSerializable<ActiveDirectoryProperties>
Settings properties for Active Directory (AD).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ActiveDirectoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accountType property: Specifies the Active Directory account type for Azure Storage.Get the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage.Get the domainGuid property: Specifies the domain GUID.Get the domainName property: Specifies the primary domain that the AD DNS server is authoritative for.Get the domainSid property: Specifies the security identifier (SID) of the AD domain.Get the forestName property: Specifies the Active Directory forest to get.static ActiveDirectoryPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ActiveDirectoryProperties from the JsonReader.Get the netBiosDomainName property: Specifies the NetBIOS domain name.Get the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccountType(ActiveDirectoryPropertiesAccountType accountType) Set the accountType property: Specifies the Active Directory account type for Azure Storage.withAzureStorageSid(String azureStorageSid) Set the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage.withDomainGuid(String domainGuid) Set the domainGuid property: Specifies the domain GUID.withDomainName(String domainName) Set the domainName property: Specifies the primary domain that the AD DNS server is authoritative for.withDomainSid(String domainSid) Set the domainSid property: Specifies the security identifier (SID) of the AD domain.withForestName(String forestName) Set the forestName property: Specifies the Active Directory forest to get.withNetBiosDomainName(String netBiosDomainName) Set the netBiosDomainName property: Specifies the NetBIOS domain name.withSamAccountName(String samAccountName) Set the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ActiveDirectoryProperties
public ActiveDirectoryProperties()Creates an instance of ActiveDirectoryProperties class.
-
-
Method Details
-
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.
-
withDomainName
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.
-
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.
-
withNetBiosDomainName
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.
-
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.
-
withForestName
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.
-
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.
-
withDomainGuid
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.
-
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.
-
withDomainSid
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.
-
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.
-
withAzureStorageSid
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.
-
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.
-
withSamAccountName
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.
-
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.
-
withAccountType
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ActiveDirectoryProperties>- Throws:
IOException
-
fromJson
public static ActiveDirectoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-