Class AzureFileProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.AzureFileProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFileProperties>
public final class AzureFileProperties
extends Object
implements com.azure.json.JsonSerializable<AzureFileProperties>
Azure File Properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessMode property: Access mode for storage.Get the accountKey property: Storage account key for azure file.Get the accountName property: Storage account name for azure file.static AzureFilePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFileProperties from the JsonReader.Get the shareName property: Azure file share name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessMode(AccessMode accessMode) Set the accessMode property: Access mode for storage.withAccountKey(String accountKey) Set the accountKey property: Storage account key for azure file.withAccountName(String accountName) Set the accountName property: Storage account name for azure file.withShareName(String shareName) Set the shareName property: Azure file share name.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
-
AzureFileProperties
public AzureFileProperties()Creates an instance of AzureFileProperties class.
-
-
Method Details
-
accountName
Get the accountName property: Storage account name for azure file.- Returns:
- the accountName value.
-
withAccountName
Set the accountName property: Storage account name for azure file.- Parameters:
accountName- the accountName value to set.- Returns:
- the AzureFileProperties object itself.
-
accountKey
Get the accountKey property: Storage account key for azure file.- Returns:
- the accountKey value.
-
withAccountKey
Set the accountKey property: Storage account key for azure file.- Parameters:
accountKey- the accountKey value to set.- Returns:
- the AzureFileProperties object itself.
-
accessMode
Get the accessMode property: Access mode for storage.- Returns:
- the accessMode value.
-
withAccessMode
Set the accessMode property: Access mode for storage.- Parameters:
accessMode- the accessMode value to set.- Returns:
- the AzureFileProperties 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<AzureFileProperties>- Throws:
IOException
-
fromJson
Reads an instance of AzureFileProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureFileProperties 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 AzureFileProperties.
-