Class Volume
java.lang.Object
com.azure.resourcemanager.appcontainers.models.Volume
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Volume>
Volume definitions for the Container App.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Volume
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Volume from the JsonReader.Get the mountOptions property: Mount options used while mounting the Azure file share or NFS Azure file share.name()
Get the name property: Volume name.secrets()
Get the secrets property: List of secrets to be added in volume.Get the storageName property: Name of storage resource.Get the storageType property: Storage type for the volume.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMountOptions
(String mountOptions) Set the mountOptions property: Mount options used while mounting the Azure file share or NFS Azure file share.Set the name property: Volume name.withSecrets
(List<SecretVolumeItem> secrets) Set the secrets property: List of secrets to be added in volume.withStorageName
(String storageName) Set the storageName property: Name of storage resource.withStorageType
(StorageType storageType) Set the storageType property: Storage type for the volume.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Volume
public Volume()Creates an instance of Volume class.
-
-
Method Details
-
name
Get the name property: Volume name.- Returns:
- the name value.
-
withName
Set the name property: Volume name.- Parameters:
name
- the name value to set.- Returns:
- the Volume object itself.
-
storageType
Get the storageType property: Storage type for the volume. If not provided, use EmptyDir.- Returns:
- the storageType value.
-
withStorageType
Set the storageType property: Storage type for the volume. If not provided, use EmptyDir.- Parameters:
storageType
- the storageType value to set.- Returns:
- the Volume object itself.
-
storageName
Get the storageName property: Name of storage resource. No need to provide for EmptyDir and Secret.- Returns:
- the storageName value.
-
withStorageName
Set the storageName property: Name of storage resource. No need to provide for EmptyDir and Secret.- Parameters:
storageName
- the storageName value to set.- Returns:
- the Volume object itself.
-
secrets
Get the secrets property: List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume.- Returns:
- the secrets value.
-
withSecrets
Set the secrets property: List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume.- Parameters:
secrets
- the secrets value to set.- Returns:
- the Volume object itself.
-
mountOptions
Get the mountOptions property: Mount options used while mounting the Azure file share or NFS Azure file share. Must be a comma-separated string.- Returns:
- the mountOptions value.
-
withMountOptions
Set the mountOptions property: Mount options used while mounting the Azure file share or NFS Azure file share. Must be a comma-separated string.- Parameters:
mountOptions
- the mountOptions value to set.- Returns:
- the Volume object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Volume>
- Throws:
IOException
-
fromJson
Reads an instance of Volume from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of Volume 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 Volume.
-