Class Volume
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.Volume
-
public final class Volume extends Object
Volume definitions for the Container App.
-
-
Constructor Summary
Constructors Constructor Description Volume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: Volume name.String
storageName()
Get the storageName property: Name of storage resource.StorageType
storageType()
Get the storageType property: Storage type for the volume.void
validate()
Validates the instance.Volume
withName(String name)
Set the name property: Volume name.Volume
withStorageName(String storageName)
Set the storageName property: Name of storage resource.Volume
withStorageType(StorageType storageType)
Set the storageType property: Storage type for the volume.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Volume name.- Returns:
- the name value.
-
withName
public Volume withName(String name)
Set the name property: Volume name.- Parameters:
name
- the name value to set.- Returns:
- the Volume object itself.
-
storageType
public StorageType storageType()
Get the storageType property: Storage type for the volume. If not provided, use EmptyDir.- Returns:
- the storageType value.
-
withStorageType
public Volume withStorageType(StorageType storageType)
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
public String storageName()
Get the storageName property: Name of storage resource. No need to provide for EmptyDir.- Returns:
- the storageName value.
-
withStorageName
public Volume withStorageName(String storageName)
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.
-
-