Volume Class

  • java.lang.Object
    • com.microsoft.azure.management.containerinstance.Volume

public class Volume

The properties of the volume.

Constructor Summary

Constructor Description
Volume()

Method Summary

Modifier and Type Method and Description
AzureFileVolume azureFile()

Get the Azure File volume.

java.lang.Object emptyDir()

Get the empty directory volume.

GitRepoVolume gitRepo()

Get the git repo volume.

java.lang.String name()

Get the name of the volume.

java.util.Map<java.lang.String,java.lang.String> secret()

Get the secret volume.

Volume withAzureFile(AzureFileVolume azureFile)

Set the Azure File volume.

Volume withEmptyDir(Object emptyDir)

Set the empty directory volume.

Volume withGitRepo(GitRepoVolume gitRepo)

Set the git repo volume.

Volume withName(String name)

Set the name of the volume.

Volume withSecret(Map<String,String> secret)

Set the secret volume.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Volume

public Volume()

Method Details

azureFile

public AzureFileVolume azureFile()

Get the Azure File volume.

Returns:

the azureFile value

emptyDir

public Object emptyDir()

Get the empty directory volume.

Returns:

the emptyDir value

gitRepo

public GitRepoVolume gitRepo()

Get the git repo volume.

Returns:

the gitRepo value

name

public String name()

Get the name of the volume.

Returns:

the name value

secret

public Map secret()

Get the secret volume.

Returns:

the secret value

withAzureFile

public Volume withAzureFile(AzureFileVolume azureFile)

Set the Azure File volume.

Parameters:

azureFile - the azureFile value to set

Returns:

the Volume object itself.

withEmptyDir

public Volume withEmptyDir(Object emptyDir)

Set the empty directory volume.

Parameters:

emptyDir - the emptyDir value to set

Returns:

the Volume object itself.

withGitRepo

public Volume withGitRepo(GitRepoVolume gitRepo)

Set 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 of the volume.

Parameters:

name - the name value to set

Returns:

the Volume object itself.

withSecret

public Volume withSecret(Map secret)

Set the secret volume.

Parameters:

secret - the secret value to set

Returns:

the Volume object itself.

Applies to