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).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).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 java.lang.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.- Returns:
- the domainName value.
-
withDomainName
Set the domainName property: Specifies the primary domain that the AD DNS server is authoritative for.- Parameters:
domainName- the domainName value to set.- Returns:
- the ActiveDirectoryProperties object itself.
-
netBiosDomainName
Get the netBiosDomainName property: Specifies the NetBIOS domain name.- Returns:
- the netBiosDomainName value.
-
withNetBiosDomainName
Set the netBiosDomainName property: Specifies the NetBIOS domain name.- Parameters:
netBiosDomainName- the netBiosDomainName value to set.- Returns:
- the ActiveDirectoryProperties object itself.
-
forestName
Get the forestName property: Specifies the Active Directory forest to get.- Returns:
- the forestName value.
-
withForestName
Set the forestName property: Specifies the Active Directory forest to get.- Parameters:
forestName- the forestName value to set.- Returns:
- the ActiveDirectoryProperties object itself.
-
domainGuid
Get the domainGuid property: Specifies the domain GUID.- Returns:
- the domainGuid value.
-
withDomainGuid
Set the domainGuid property: Specifies the domain GUID.- Parameters:
domainGuid- the domainGuid value to set.- Returns:
- the ActiveDirectoryProperties object itself.
-
domainSid
Get the domainSid property: Specifies the security identifier (SID).- Returns:
- the domainSid value.
-
withDomainSid
Set the domainSid property: Specifies the security identifier (SID).- 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.- Returns:
- the azureStorageSid value.
-
withAzureStorageSid
Set the azureStorageSid property: Specifies the security identifier (SID) for Azure Storage.- 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.- Returns:
- the samAccountName value.
-
withSamAccountName
Set the samAccountName property: Specifies the Active Directory SAMAccountName for Azure Storage.- 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.- Returns:
- the accountType value.
-
withAccountType
Set the accountType property: Specifies the Active Directory account type for Azure Storage.- 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ActiveDirectoryProperties.
-