public class VolumeMount extends Object
| Constructor and Description |
|---|
VolumeMount() |
| Modifier and Type | Method and Description |
|---|---|
String |
mountPath()
Get the path within the container where the volume should be mounted.
|
String |
name()
Get the name of the volume mount.
|
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.
|
public String name()
public VolumeMount withName(String name)
name - the name value to setpublic String mountPath()
public VolumeMount withMountPath(String mountPath)
mountPath - the mountPath value to setpublic Boolean readOnly()
public VolumeMount withReadOnly(Boolean readOnly)
readOnly - the readOnly value to setCopyright © 2019. All rights reserved.