Class AzureFileVolume
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.AzureFileVolume
-
public final class AzureFileVolume extends Object
The properties of the Azure File volume. Azure File shares are mounted as volumes.
-
-
Constructor Summary
Constructors Constructor Description AzureFileVolume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanreadOnly()Get the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.StringshareName()Get the shareName property: The name of the Azure File share to be mounted as a volume.StringstorageAccountKey()Get the storageAccountKey property: The storage account access key used to access the Azure File share.StringstorageAccountName()Get the storageAccountName property: The name of the storage account that contains the Azure File share.voidvalidate()Validates the instance.AzureFileVolumewithReadOnly(Boolean readOnly)Set the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.AzureFileVolumewithShareName(String shareName)Set the shareName property: The name of the Azure File share to be mounted as a volume.AzureFileVolumewithStorageAccountKey(String storageAccountKey)Set the storageAccountKey property: The storage account access key used to access the Azure File share.AzureFileVolumewithStorageAccountName(String storageAccountName)Set the storageAccountName property: The name of the storage account that contains the Azure File share.
-
-
-
Method Detail
-
shareName
public String shareName()
Get the shareName property: The name of the Azure File share to be mounted as a volume.- Returns:
- the shareName value.
-
withShareName
public AzureFileVolume withShareName(String shareName)
Set the shareName property: The name of the Azure File share to be mounted as a volume.- Parameters:
shareName- the shareName value to set.- Returns:
- the AzureFileVolume object itself.
-
readOnly
public Boolean 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
public AzureFileVolume withReadOnly(Boolean readOnly)
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
public String storageAccountName()
Get the storageAccountName property: The name of the storage account that contains the Azure File share.- Returns:
- the storageAccountName value.
-
withStorageAccountName
public AzureFileVolume withStorageAccountName(String storageAccountName)
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
public String storageAccountKey()
Get the storageAccountKey property: The storage account access key used to access the Azure File share.- Returns:
- the storageAccountKey value.
-
withStorageAccountKey
public AzureFileVolume withStorageAccountKey(String storageAccountKey)
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.
-
-