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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeFrom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeFromclone()booleanequals(Object obj)BooleangetReadOnly()If this value istrue, the container has read-only access to the volume.StringgetSourceContainer()The name of the container to mount volumes from.inthashCode()BooleanisReadOnly()If this value istrue, the container has read-only access to the volume.voidsetReadOnly(Boolean readOnly)If this value istrue, the container has read-only access to the volume.voidsetSourceContainer(String sourceContainer)The name of the container to mount volumes from.StringtoString()Returns a string representation of this object; useful for testing and debugging.VolumeFromwithReadOnly(Boolean readOnly)If this value istrue, the container has read-only access to the volume.VolumeFromwithSourceContainer(String sourceContainer)The name of the container to mount volumes from.
-
-
-
Method Detail
-
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 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 VolumeFrom 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 VolumeFrom clone()
-
-