public final class VolumeMount extends Object
| Constructor and Description |
|---|
VolumeMount() |
| Modifier and Type | Method and Description |
|---|---|
String |
mountPath()
Get the mountPath property: The path within the container where the volume should be mounted.
|
String |
name()
Get the name property: The name of the volume mount.
|
Boolean |
readOnly()
Get the readOnly property: The flag indicating whether the volume mount is read-only.
|
void |
validate()
Validates the instance.
|
VolumeMount |
withMountPath(String mountPath)
Set the mountPath property: The path within the container where the volume should be mounted.
|
VolumeMount |
withName(String name)
Set the name property: The name of the volume mount.
|
VolumeMount |
withReadOnly(Boolean readOnly)
Set the readOnly property: The flag indicating whether the volume mount is read-only.
|
public String name()
public VolumeMount withName(String name)
name - the name value to set.public String mountPath()
public VolumeMount withMountPath(String mountPath)
mountPath - the mountPath value to set.public Boolean readOnly()
public VolumeMount withReadOnly(Boolean readOnly)
readOnly - the readOnly value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.