Class Volume
java.lang.Object
com.azure.resourcemanager.appcontainers.models.Volume
Volume definitions for the Container App.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: Volume name.Get the storageName property: Name of storage resource.Get the storageType property: Storage type for the volume.void
validate()
Validates the instance.Set the name property: Volume name.withStorageName
(String storageName) Set the storageName property: Name of storage resource.withStorageType
(StorageType storageType) Set the storageType property: Storage type for the volume.
-
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.- Returns:
- the storageName value.
-
withStorageName
Set the storageName property: Name of storage resource. No need to provide for EmptyDir.- Parameters:
storageName
- the storageName value to set.- Returns:
- the Volume object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-