ActiveDirectoryProperties Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ActiveDirectoryProperties
- com.
Implements
public final class ActiveDirectoryProperties
implements JsonSerializable<ActiveDirectoryProperties>
Settings properties for Active Directory (AD).
Constructor Summary
| Constructor | Description |
|---|---|
| ActiveDirectoryProperties() |
Creates an instance of Active |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Active |
accountType()
Get the account |
| String |
azureStorageSid()
Get the azure |
| String |
domainGuid()
Get the domain |
| String |
domainName()
Get the domain |
| String |
domainSid()
Get the domain |
| String |
forestName()
Get the forest |
|
static
Active |
fromJson(JsonReader jsonReader)
Reads an instance of Active |
| String |
netBiosDomainName()
Get the net |
| String |
samAccountName()
Get the sam |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Active |
withAccountType(ActiveDirectoryPropertiesAccountType accountType)
Set the account |
|
Active |
withAzureStorageSid(String azureStorageSid)
Set the azure |
|
Active |
withDomainGuid(String domainGuid)
Set the domain |
|
Active |
withDomainName(String domainName)
Set the domain |
|
Active |
withDomainSid(String domainSid)
Set the domain |
|
Active |
withForestName(String forestName)
Set the forest |
|
Active |
withNetBiosDomainName(String netBiosDomainName)
Set the net |
|
Active |
withSamAccountName(String samAccountName)
Set the sam |
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:
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:
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:
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:
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:
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:
fromJson
public static ActiveDirectoryProperties fromJson(JsonReader jsonReader)
Reads an instance of ActiveDirectoryProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns: