Volume Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.Volume

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
AzureFileVolume azureFile()

Get the azureFile property: The Azure File volume.

Object emptyDir()

Get the emptyDir property: The empty directory volume.

static Volume fromJson(JsonReader jsonReader)

Reads an instance of Volume from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

the azureFile value.

emptyDir

public Object emptyDir()

Get the emptyDir property: The empty directory volume.

Returns:

the emptyDir value.

fromJson

public static Volume fromJson(JsonReader jsonReader)

Reads an instance of Volume from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Volume if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

gitRepo

public GitRepoVolume gitRepo()

Get the gitRepo property: The git repo volume.

Returns:

the gitRepo value.

name

public String name()

Get the name property: The name of the volume.

Returns:

the name value.

secret

public Map secret()

Get the secret property: The secret volume.

Returns:

the secret value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

withSecret

public Volume withSecret(Map secret)

Set the secret property: The secret volume.

Parameters:

secret - the secret value to set.

Returns:

the Volume object itself.

Applies to