public final class Volume extends Object
| Constructor and Description |
|---|
Volume() |
| Modifier and Type | Method and Description |
|---|---|
AzureFileVolume |
azureFile()
Get the azureFile property: The Azure File volume.
|
Object |
emptyDir()
Get the emptyDir property: The empty directory volume.
|
GitRepoVolume |
gitRepo()
Get the gitRepo property: The git repo volume.
|
String |
name()
Get the name property: The name of the volume.
|
Map<String,String> |
secret()
Get the secret property: The secret volume.
|
void |
validate()
Validates the instance.
|
Volume |
withAzureFile(AzureFileVolume azureFile)
Set the azureFile property: The Azure File volume.
|
Volume |
withEmptyDir(Object emptyDir)
Set the emptyDir property: The empty directory volume.
|
Volume |
withGitRepo(GitRepoVolume gitRepo)
Set the gitRepo property: The git repo volume.
|
Volume |
withName(String name)
Set the name property: The name of the volume.
|
Volume |
withSecret(Map<String,String> secret)
Set the secret property: The secret volume.
|
public String name()
public Volume withName(String name)
name - the name value to set.public AzureFileVolume azureFile()
public Volume withAzureFile(AzureFileVolume azureFile)
azureFile - the azureFile value to set.public Object emptyDir()
public Volume withEmptyDir(Object emptyDir)
emptyDir - the emptyDir value to set.public Map<String,String> secret()
public Volume withSecret(Map<String,String> secret)
secret - the secret value to set.public GitRepoVolume gitRepo()
public Volume withGitRepo(GitRepoVolume gitRepo)
gitRepo - the gitRepo value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.