Class Volume
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.Volume
-
public final class Volume extends Object
The properties of the volume.
-
-
Constructor Summary
Constructors Constructor Description Volume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureFileVolumeazureFile()Get the azureFile property: The Azure File volume.ObjectemptyDir()Get the emptyDir property: The empty directory volume.GitRepoVolumegitRepo()Get the gitRepo property: The git repo volume.Stringname()Get the name property: The name of the volume.Map<String,String>secret()Get the secret property: The secret volume.voidvalidate()Validates the instance.VolumewithAzureFile(AzureFileVolume azureFile)Set the azureFile property: The Azure File volume.VolumewithEmptyDir(Object emptyDir)Set the emptyDir property: The empty directory volume.VolumewithGitRepo(GitRepoVolume gitRepo)Set the gitRepo property: The git repo volume.VolumewithName(String name)Set the name property: The name of the volume.VolumewithSecret(Map<String,String> secret)Set the secret property: The secret volume.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the volume.- Returns:
- the name value.
-
withName
public Volume withName(String name)
Set the name property: The name of the volume.- Parameters:
name- the name value to set.- Returns:
- the Volume object itself.
-
azureFile
public AzureFileVolume azureFile()
Get the azureFile property: The Azure File volume.- Returns:
- the azureFile value.
-
withAzureFile
public Volume withAzureFile(AzureFileVolume azureFile)
Set the azureFile property: The Azure File volume.- Parameters:
azureFile- the azureFile value to set.- Returns:
- the Volume object itself.
-
emptyDir
public Object emptyDir()
Get the emptyDir property: The empty directory volume.- Returns:
- the emptyDir value.
-
withEmptyDir
public Volume withEmptyDir(Object emptyDir)
Set the emptyDir property: The empty directory volume.- Parameters:
emptyDir- the emptyDir value to set.- Returns:
- the Volume object itself.
-
secret
public Map<String,String> secret()
Get the secret property: The secret volume.- Returns:
- the secret value.
-
withSecret
public Volume withSecret(Map<String,String> secret)
Set the secret property: The secret volume.- Parameters:
secret- the secret value to set.- Returns:
- the Volume object itself.
-
gitRepo
public GitRepoVolume gitRepo()
Get the gitRepo property: The git repo volume.- Returns:
- the gitRepo value.
-
withGitRepo
public Volume withGitRepo(GitRepoVolume gitRepo)
Set the gitRepo property: The git repo volume.- Parameters:
gitRepo- the gitRepo value to set.- Returns:
- the Volume object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-