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 MountPoint
clone()
boolean
equals(Object obj)
String
getContainerPath()
The path on the container to mount the host volume at.Boolean
getReadOnly()
If this value istrue
, 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 istrue
, 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 istrue
, 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 istrue
, the container has read-only access to the volume.MountPoint
withSourceVolume(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public MountPoint clone()
-
-