public class VolumeFrom
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Details on a data volume from another container.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
readOnly
If this value is
true , the container has read-only access to
the volume. |
private java.lang.String |
sourceContainer
The name of the container to mount volumes from.
|
Constructor and Description |
---|
VolumeFrom() |
Modifier and Type | Method and Description |
---|---|
VolumeFrom |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getReadOnly()
If this value is
true , the container has read-only access to
the volume. |
java.lang.String |
getSourceContainer()
The name of the container to mount volumes from.
|
int |
hashCode() |
java.lang.Boolean |
isReadOnly()
If this value is
true , the container has read-only access to
the volume. |
void |
setReadOnly(java.lang.Boolean readOnly)
If this value is
true , the container has read-only access to
the volume. |
void |
setSourceContainer(java.lang.String sourceContainer)
The name of the container to mount volumes from.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VolumeFrom |
withReadOnly(java.lang.Boolean readOnly)
If this value is
true , the container has read-only access to
the volume. |
VolumeFrom |
withSourceContainer(java.lang.String sourceContainer)
The name of the container to mount volumes from.
|
private java.lang.String sourceContainer
The name of the container to mount volumes from.
private java.lang.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
.
public void setSourceContainer(java.lang.String sourceContainer)
The name of the container to mount volumes from.
sourceContainer
- The name of the container to mount volumes from.public java.lang.String getSourceContainer()
The name of the container to mount volumes from.
public VolumeFrom withSourceContainer(java.lang.String sourceContainer)
The name of the container to mount volumes from.
sourceContainer
- The name of the container to mount volumes from.public void setReadOnly(java.lang.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 java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VolumeFrom clone()
clone
in class java.lang.Object