Class MountPoint
- java.lang.Object
-
- com.amazonaws.services.ecs.model.MountPoint
-
- All Implemented Interfaces:
Serializable,Cloneable
public class MountPoint extends Object implements Serializable, Cloneable
Details on a volume mount point that is used in a container definition.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MountPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MountPointclone()booleanequals(Object obj)StringgetContainerPath()The path on the container to mount the host volume at.BooleangetReadOnly()If this value istrue, the container has read-only access to the volume.StringgetSourceVolume()The name of the volume to mount.inthashCode()BooleanisReadOnly()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.StringtoString()Returns a string representation of this object; useful for testing and debugging.MountPointwithContainerPath(String containerPath)The path on the container to mount the host volume at.MountPointwithReadOnly(Boolean readOnly)If this value istrue, the container has read-only access to the volume.MountPointwithSourceVolume(String sourceVolume)The name of the volume to mount.
-
-
-
Method Detail
-
setSourceVolume
public void setSourceVolume(String sourceVolume)
The name of the volume to mount.
- Parameters:
sourceVolume- The name of the volume to mount.
-
getSourceVolume
public String getSourceVolume()
The name of the volume to mount.
- Returns:
- The name of the volume to mount.
-
withSourceVolume
public MountPoint withSourceVolume(String sourceVolume)
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
public void setContainerPath(String containerPath)
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
public String 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
public MountPoint withContainerPath(String containerPath)
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
public void setReadOnly(Boolean readOnly)
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
public Boolean 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
public MountPoint withReadOnly(Boolean readOnly)
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
public Boolean 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public MountPoint clone()
-
-