AzureFileVolume Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. AzureFileVolume
- com.
Implements
public final class AzureFileVolume
implements JsonSerializable<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 |
---|---|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
Boolean |
readOnly()
Get the read |
String |
shareName()
Get the share |
String |
storageAccountKey()
Get the storage |
String |
storageAccountName()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
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
fromJson
public static AzureFileVolume fromJson(JsonReader jsonReader)
Reads an instance of AzureFileVolume from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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