public class MountPoint
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Details on a volume mount point that is used in a container definition.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
containerPath
The path on the container to mount the host volume at.
|
private java.lang.Boolean |
readOnly
If this value is
true , the container has read-only access to
the volume. |
private java.lang.String |
sourceVolume
The name of the volume to mount.
|
Constructor and Description |
---|
MountPoint() |
Modifier and Type | Method and Description |
---|---|
MountPoint |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContainerPath()
The path on the container to mount the host volume at.
|
java.lang.Boolean |
getReadOnly()
If this value is
true , the container has read-only access to
the volume. |
java.lang.String |
getSourceVolume()
The name of the volume to mount.
|
int |
hashCode() |
java.lang.Boolean |
isReadOnly()
If this value is
true , the container has read-only access to
the volume. |
void |
setContainerPath(java.lang.String containerPath)
The path on the container to mount the host volume at.
|
void |
setReadOnly(java.lang.Boolean readOnly)
If this value is
true , the container has read-only access to
the volume. |
void |
setSourceVolume(java.lang.String sourceVolume)
The name of the volume to mount.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MountPoint |
withContainerPath(java.lang.String containerPath)
The path on the container to mount the host volume at.
|
MountPoint |
withReadOnly(java.lang.Boolean readOnly)
If this value is
true , the container has read-only access to
the volume. |
MountPoint |
withSourceVolume(java.lang.String sourceVolume)
The name of the volume to mount.
|
private java.lang.String sourceVolume
The name of the volume to mount.
private java.lang.String containerPath
The path on the container to mount the host volume at.
private java.lang.Boolean 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 void setSourceVolume(java.lang.String sourceVolume)
The name of the volume to mount.
sourceVolume
- The name of the volume to mount.public java.lang.String getSourceVolume()
The name of the volume to mount.
public MountPoint withSourceVolume(java.lang.String sourceVolume)
The name of the volume to mount.
sourceVolume
- The name of the volume to mount.public void setContainerPath(java.lang.String containerPath)
The path on the container to mount the host volume at.
containerPath
- The path on the container to mount the host volume at.public java.lang.String getContainerPath()
The path on the container to mount the host volume at.
public MountPoint withContainerPath(java.lang.String containerPath)
The path on the container to mount the host volume at.
containerPath
- The path on the container to mount the host volume at.public void setReadOnly(java.lang.Boolean 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
.
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 java.lang.Boolean getReadOnly()
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
.
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(java.lang.Boolean 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
.
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 java.lang.Boolean isReadOnly()
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
.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MountPoint clone()
clone
in class java.lang.Object