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 VolumeFrom
clone()
boolean
equals(Object obj)
Boolean
getReadOnly()
If this value istrue
, the container has read-only access to the volume.String
getSourceContainer()
The name of the container to mount volumes from.int
hashCode()
Boolean
isReadOnly()
If this value istrue
, the container has read-only access to the volume.void
setReadOnly(Boolean readOnly)
If this value istrue
, the container has read-only access to the volume.void
setSourceContainer(String sourceContainer)
The name of the container to mount volumes from.String
toString()
Returns a string representation of this object; useful for testing and debugging.VolumeFrom
withReadOnly(Boolean readOnly)
If this value istrue
, the container has read-only access to the volume.VolumeFrom
withSourceContainer(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VolumeFrom clone()
-
-