Class MountPoint
- All Implemented Interfaces:
Serializable, Cloneable
Details on a volume mount point that is used in a container definition.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe path on the container to mount the host volume at.If this value istrue, the container has read-only access to the volume.The name of the volume to mount.inthashCode()If this value istrue, the container has read-only access to the volume.voidsetContainerPath(String containerPath) The path on the container to mount the host volume at.voidsetReadOnly(Boolean readOnly) If this value istrue, the container has read-only access to the volume.voidsetSourceVolume(String sourceVolume) The name of the volume to mount.toString()Returns a string representation of this object; useful for testing and debugging.withContainerPath(String containerPath) The path on the container to mount the host volume at.withReadOnly(Boolean readOnly) If this value istrue, the container has read-only access to the volume.withSourceVolume(String sourceVolume) The name of the volume to mount.
-
Constructor Details
-
MountPoint
public MountPoint()
-
-
Method Details
-
setSourceVolume
The name of the volume to mount.
- Parameters:
sourceVolume- The name of the volume to mount.
-
getSourceVolume
The name of the volume to mount.
- Returns:
- The name of the volume to mount.
-
withSourceVolume
The name of the volume to mount.
- Parameters:
sourceVolume- The name of the volume to mount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContainerPath
The path on the container to mount the host volume at.
- Parameters:
containerPath- The path on the container to mount the host volume at.
-
getContainerPath
The path on the container to mount the host volume at.
- Returns:
- The path on the container to mount the host volume at.
-
withContainerPath
The path on the container to mount the host volume at.
- Parameters:
containerPath- The path on the container to mount the host volume at.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReadOnly
If this value is
true, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.- Parameters:
readOnly- If this value istrue, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.
-
getReadOnly
If this value is
true, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.- Returns:
- If this value is
true, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.
-
withReadOnly
If this value is
true, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.- Parameters:
readOnly- If this value istrue, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isReadOnly
If this value is
true, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.- Returns:
- If this value is
true, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.
-
toString
-
equals
-
hashCode
-
clone
-