@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VolumeFrom extends Object implements Serializable, Cloneable, StructuredPojo
Details on a data volume from another container in the same task definition.
Constructor and Description |
---|
VolumeFrom() |
Modifier and Type | Method and Description |
---|---|
VolumeFrom |
clone() |
boolean |
equals(Object obj) |
Boolean |
getReadOnly()
If this value is
true , the container has read-only access to the volume. |
String |
getSourceContainer()
The name of another container within the same task definition to mount volumes from.
|
int |
hashCode() |
Boolean |
isReadOnly()
If this value is
true , the container has read-only access to the volume. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReadOnly(Boolean readOnly)
If this value is
true , the container has read-only access to the volume. |
void |
setSourceContainer(String sourceContainer)
The name of another container within the same task definition 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 is
true , the container has read-only access to the volume. |
VolumeFrom |
withSourceContainer(String sourceContainer)
The name of another container within the same task definition to mount volumes from.
|
public void setSourceContainer(String sourceContainer)
The name of another container within the same task definition to mount volumes from.
sourceContainer
- The name of another container within the same task definition to mount volumes from.public String getSourceContainer()
The name of another container within the same task definition to mount volumes from.
public VolumeFrom withSourceContainer(String sourceContainer)
The name of another container within the same task definition to mount volumes from.
sourceContainer
- The name of another container within the same task definition to mount volumes from.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
.
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
.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
.
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
.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
.
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
.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
.
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
.public String toString()
toString
in class Object
Object.toString()
public VolumeFrom clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.