VolumeMount Class

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

public class VolumeMount

The properties of the volume mount.

Constructor Summary

Constructor Description
VolumeMount()

Method Summary

Modifier and Type Method and Description
java.lang.String mountPath()

Get the path within the container where the volume should be mounted.

java.lang.String name()

Get the name of the volume mount.

java.lang.Boolean readOnly()

Get the flag indicating whether the volume mount is read-only.

VolumeMount withMountPath(String mountPath)

Set the path within the container where the volume should be mounted.

VolumeMount withName(String name)

Set the name of the volume mount.

VolumeMount withReadOnly(Boolean readOnly)

Set the flag indicating whether the volume mount is read-only.

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

VolumeMount

public VolumeMount()

Method Details

mountPath

public String mountPath()

Get the path within the container where the volume should be mounted. Must not contain colon (:).

Returns:

the mountPath value

name

public String name()

Get the name of the volume mount.

Returns:

the name value

readOnly

public Boolean readOnly()

Get the flag indicating whether the volume mount is read-only.

Returns:

the readOnly value

withMountPath

public VolumeMount withMountPath(String mountPath)

Set the path within the container where the volume should be mounted. Must not contain colon (:).

Parameters:

mountPath - the mountPath value to set

Returns:

the VolumeMount object itself.

withName

public VolumeMount withName(String name)

Set the name of the volume mount.

Parameters:

name - the name value to set

Returns:

the VolumeMount object itself.

withReadOnly

public VolumeMount withReadOnly(Boolean readOnly)

Set the flag indicating whether the volume mount is read-only.

Parameters:

readOnly - the readOnly value to set

Returns:

the VolumeMount object itself.

Applies to