Volume Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. Volume
- com.
Implements
public final class Volume
implements JsonSerializable<Volume>
The properties of the volume.
Constructor Summary
Constructor | Description |
---|---|
Volume() |
Creates an instance of Volume class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Azure |
azureFile()
Get the azure |
Object |
emptyDir()
Get the empty |
static Volume |
fromJson(JsonReader jsonReader)
Reads an instance of Volume from the Json |
Git |
gitRepo()
Get the git |
String |
name()
Get the name property: The name of the volume. |
Map<String,String> |
secret()
Get the secret property: The secret volume. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Volume |
withAzureFile(AzureFileVolume azureFile)
Set the azure |
Volume |
withEmptyDir(Object emptyDir)
Set the empty |
Volume |
withGitRepo(GitRepoVolume gitRepo)
Set the git |
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. |
Methods inherited from java.lang.Object
Constructor Details
Volume
public Volume()
Creates an instance of Volume class.
Method Details
azureFile
public AzureFileVolume azureFile()
Get the azureFile property: The Azure File volume.
Returns:
emptyDir
public Object emptyDir()
Get the emptyDir property: The empty directory volume.
Returns:
fromJson
public static Volume fromJson(JsonReader jsonReader)
Reads an instance of Volume from the JsonReader.
Parameters:
Returns:
Throws:
gitRepo
public GitRepoVolume gitRepo()
Get the gitRepo property: The git repo volume.
Returns:
name
public String name()
Get the name property: The name of the volume.
Returns:
secret
public Map
Get the secret property: The secret volume.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAzureFile
public Volume withAzureFile(AzureFileVolume azureFile)
Set the azureFile property: The Azure File volume.
Parameters:
Returns:
withEmptyDir
public Volume withEmptyDir(Object emptyDir)
Set the emptyDir property: The empty directory volume.
Parameters:
Returns:
withGitRepo
public Volume withGitRepo(GitRepoVolume gitRepo)
Set the gitRepo property: The git repo volume.
Parameters:
Returns:
withName
public Volume withName(String name)
Set the name property: The name of the volume.
Parameters:
Returns:
withSecret
public Volume withSecret(Map
Set the secret property: The secret volume.
Parameters:
Returns:
Applies to
Azure SDK for Java