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:
  • Constructor Details

    • MountPoint

      public MountPoint()
  • Method Details

    • 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 is false, then the container can write to the volume. The default value is false.

      Parameters:
      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.
    • getReadOnly

      public 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.

      Returns:
      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.
    • withReadOnly

      public MountPoint withReadOnly(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.

      Parameters:
      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.
      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 is false, then the container can write to the volume. The default value is false.

      Returns:
      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.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public MountPoint clone()
      Overrides:
      clone in class Object