Class VolumeFrom

java.lang.Object
com.amazonaws.services.ecs.model.VolumeFrom
All Implemented Interfaces:
Serializable, Cloneable

public class VolumeFrom extends Object implements Serializable, Cloneable

Details on a data volume from another container.

See Also:
  • Constructor Details

    • VolumeFrom

      public VolumeFrom()
  • Method Details

    • setSourceContainer

      public void setSourceContainer(String sourceContainer)

      The name of the container to mount volumes from.

      Parameters:
      sourceContainer - The name of the container to mount volumes from.
    • getSourceContainer

      public String getSourceContainer()

      The name of the container to mount volumes from.

      Returns:
      The name of the container to mount volumes from.
    • withSourceContainer

      public VolumeFrom withSourceContainer(String sourceContainer)

      The name of the container to mount volumes from.

      Parameters:
      sourceContainer - The name of the container to mount volumes from.
      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 VolumeFrom 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 VolumeFrom clone()
      Overrides:
      clone in class Object