Class AzureFileVolume
java.lang.Object
com.azure.resourcemanager.containerinstance.models.AzureFileVolume
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFileVolume>
public final class AzureFileVolume
extends Object
implements com.azure.json.JsonSerializable<AzureFileVolume>
The properties of the Azure File volume. Azure File shares are mounted as volumes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureFileVolumefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFileVolume from the JsonReader.readOnly()Get the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.Get the shareName property: The name of the Azure File share to be mounted as a volume.Get the storageAccountKey property: The storage account access key used to access the Azure File share.Get the storageAccountName property: The name of the storage account that contains the Azure File share.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withReadOnly(Boolean readOnly) Set the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.withShareName(String shareName) Set the shareName property: The name of the Azure File share to be mounted as a volume.withStorageAccountKey(String storageAccountKey) Set the storageAccountKey property: The storage account access key used to access the Azure File share.withStorageAccountName(String storageAccountName) Set the storageAccountName property: The name of the storage account that contains the Azure File share.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
-
AzureFileVolume
public AzureFileVolume()Creates an instance of AzureFileVolume class.
-
-
Method Details
-
readOnly
Get the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.- Returns:
- the readOnly value.
-
withReadOnly
Set the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.- Parameters:
readOnly- the readOnly value to set.- Returns:
- the AzureFileVolume object itself.
-
storageAccountName
Get the storageAccountName property: The name of the storage account that contains the Azure File share.- Returns:
- the storageAccountName value.
-
withStorageAccountName
Set the storageAccountName property: The name of the storage account that contains the Azure File share.- Parameters:
storageAccountName- the storageAccountName value to set.- Returns:
- the AzureFileVolume object itself.
-
storageAccountKey
Get the storageAccountKey property: The storage account access key used to access the Azure File share.- Returns:
- the storageAccountKey value.
-
withStorageAccountKey
Set the storageAccountKey property: The storage account access key used to access the Azure File share.- Parameters:
storageAccountKey- the storageAccountKey value to set.- Returns:
- the AzureFileVolume 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<AzureFileVolume>- Throws:
IOException
-
fromJson
Reads an instance of AzureFileVolume from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureFileVolume 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 AzureFileVolume.