public class MountPoint extends Object implements Serializable, Cloneable
Details on a volume mount point that is used in a container definition.
| Constructor and Description |
|---|
MountPoint() |
| Modifier and Type | Method and Description |
|---|---|
MountPoint |
clone() |
boolean |
equals(Object obj) |
String |
getContainerPath()
The path on the container to mount the host volume at.
|
Boolean |
getReadOnly()
If this value is
true, the container has read-only access
to the volume. |
String |
getSourceVolume()
The name of the volume to mount.
|
int |
hashCode() |
Boolean |
isReadOnly()
If this value is
true, the container has read-only access
to the volume. |
void |
setContainerPath(String containerPath)
The path on the container to mount the host volume at.
|
void |
setReadOnly(Boolean readOnly)
If this value is
true, the container has read-only access
to the volume. |
void |
setSourceVolume(String sourceVolume)
The name of the volume to mount.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MountPoint |
withContainerPath(String containerPath)
The path on the container to mount the host volume at.
|
MountPoint |
withReadOnly(Boolean readOnly)
If this value is
true, the container has read-only access
to the volume. |
MountPoint |
withSourceVolume(String sourceVolume)
The name of the volume to mount.
|
public String getSourceVolume()
public void setSourceVolume(String sourceVolume)
sourceVolume - The name of the volume to mount.public MountPoint withSourceVolume(String sourceVolume)
Returns a reference to this object so that method calls can be chained together.
sourceVolume - The name of the volume to mount.public String getContainerPath()
public void setContainerPath(String containerPath)
containerPath - The path on the container to mount the host volume at.public MountPoint withContainerPath(String containerPath)
Returns a reference to this object so that method calls can be chained together.
containerPath - The path on the container to mount the host volume at.public Boolean isReadOnly()
true, the container has read-only access
to the volume. If this value is false, then the container
can write to the volume. The default value is false.true, the container has read-only access
to the volume. If this value is false, then the container
can write to the volume. The default value is false.public void setReadOnly(Boolean readOnly)
true, the container has read-only access
to the volume. If this value is false, then the container
can write to the volume. The default value is false.readOnly - If this value is true, the container has read-only access
to the volume. If this value is false, then the container
can write to the volume. The default value is false.public MountPoint withReadOnly(Boolean readOnly)
true, the container has read-only access
to the volume. If this value is false, then the container
can write to the volume. The default value is false.
Returns a reference to this object so that method calls can be chained together.
readOnly - If this value is true, the container has read-only access
to the volume. If this value is false, then the container
can write to the volume. The default value is false.public Boolean getReadOnly()
true, the container has read-only access
to the volume. If this value is false, then the container
can write to the volume. The default value is false.true, the container has read-only access
to the volume. If this value is false, then the container
can write to the volume. The default value is false.public String toString()
toString in class ObjectObject.toString()public MountPoint clone()
Copyright © 2015. All rights reserved.