@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MountPoint extends Object implements Serializable, Cloneable, StructuredPojo
Details on a volume mount point that is used in a container definition.
Constructor and Description |
---|
MountPoint() |
Modifier and Type | Method and Description |
---|---|
MountPoint |
clone() |
boolean |
equals(Object obj) |
String |
getContainerPath()
The path on the container to mount the host volume at.
|
Boolean |
getReadOnly()
If this value is
true , the container has read-only access to the volume. |
String |
getSourceVolume()
The name of the volume to mount.
|
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 |
setContainerPath(String containerPath)
The path on the container to mount the host volume at.
|
void |
setReadOnly(Boolean readOnly)
If this value is
true , the container has read-only access to the volume. |
void |
setSourceVolume(String sourceVolume)
The name of the volume to mount.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MountPoint |
withContainerPath(String containerPath)
The path on the container to mount the host volume at.
|
MountPoint |
withReadOnly(Boolean readOnly)
If this value is
true , the container has read-only access to the volume. |
MountPoint |
withSourceVolume(String sourceVolume)
The name of the volume to mount.
|
public void setSourceVolume(String sourceVolume)
The name of the volume to mount.
sourceVolume
- The name of the volume to mount.public String getSourceVolume()
The name of the volume to mount.
public MountPoint withSourceVolume(String sourceVolume)
The name of the volume to mount.
sourceVolume
- The name of the volume to mount.public void setContainerPath(String containerPath)
The path on the container to mount the host volume at.
containerPath
- The path on the container to mount the host volume at.public String getContainerPath()
The path on the container to mount the host volume at.
public MountPoint withContainerPath(String containerPath)
The path on the container to mount the host volume at.
containerPath
- The path on the container to mount the host volume at.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 MountPoint 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 MountPoint 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.