@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VolumeFrom extends Object implements Serializable, Cloneable
Details on a data volume from another container.
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 the container to mount volumes from.
|
int |
hashCode() |
Boolean |
isReadOnly()
If this value is
true , the container has read-only access to the volume. |
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 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 is
true , the container has read-only access to the volume. |
VolumeFrom |
withSourceContainer(String sourceContainer)
The name of the container to mount volumes from.
|
public void setSourceContainer(String sourceContainer)
The name of the container to mount volumes from.
sourceContainer
- The name of the container to mount volumes from.public String getSourceContainer()
The name of the container to mount volumes from.
public VolumeFrom withSourceContainer(String sourceContainer)
The name of the container to mount volumes from.
sourceContainer
- The name of the container 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.