public class VolumeFrom extends Object implements Serializable, Cloneable
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 String getSourceContainer()
public void setSourceContainer(String sourceContainer)
sourceContainer
- The name of the container to mount volumes from.public VolumeFrom withSourceContainer(String sourceContainer)
Returns a reference to this object so that method calls can be chained together.
sourceContainer
- The name of the container to mount volumes from.public Boolean isReadOnly()
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 void setReadOnly(Boolean readOnly)
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 VolumeFrom withReadOnly(Boolean readOnly)
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
.
Returns a reference to this object so that method calls can be chained together.
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()
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 © 2015. All rights reserved.