AzureFileVolume Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. AzureFileVolume
- com.
public final class AzureFileVolume
The properties of the Azure File volume. Azure File shares are mounted as volumes.
Constructor Summary
Constructor | Description |
---|---|
AzureFileVolume() |
Creates an instance of Azure |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
readOnly()
Get the read |
String |
shareName()
Get the share |
String |
storageAccountKey()
Get the storage |
String |
storageAccountName()
Get the storage |
void |
validate()
Validates the instance. |
Azure |
withReadOnly(Boolean readOnly)
Set the read |
Azure |
withShareName(String shareName)
Set the share |
Azure |
withStorageAccountKey(String storageAccountKey)
Set the storage |
Azure |
withStorageAccountName(String storageAccountName)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
AzureFileVolume
public AzureFileVolume()
Creates an instance of AzureFileVolume class.
Method Details
readOnly
public Boolean readOnly()
Get the readOnly property: The flag indicating whether the Azure File shared mounted as a volume is read-only.
Returns:
shareName
public String shareName()
Get the shareName property: The name of the Azure File share to be mounted as a volume.
Returns:
storageAccountKey
public String storageAccountKey()
Get the storageAccountKey property: The storage account access key used to access the Azure File share.
Returns:
storageAccountName
public String storageAccountName()
Get the storageAccountName property: The name of the storage account that contains the Azure File share.
Returns:
validate
public void validate()
Validates the instance.
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:
Returns:
withShareName
public AzureFileVolume withShareName(String shareName)
Set the shareName property: The name of the Azure File share to be mounted as a volume.
Parameters:
Returns:
withStorageAccountKey
public AzureFileVolume withStorageAccountKey(String storageAccountKey)
Set the storageAccountKey property: The storage account access key used to access the Azure File share.
Parameters:
Returns:
withStorageAccountName
public AzureFileVolume withStorageAccountName(String storageAccountName)
Set the storageAccountName property: The name of the storage account that contains the Azure File share.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for