Class VolumeFrom
- All Implemented Interfaces:
Serializable
,Cloneable
Details on a data volume from another container.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
If this value istrue
, the container has read-only access to the volume.The name of the container to mount volumes from.int
hashCode()
If this value istrue
, the container has read-only access to the volume.void
setReadOnly
(Boolean readOnly) If this value istrue
, the container has read-only access to the volume.void
setSourceContainer
(String sourceContainer) The name of the container to mount volumes from.toString()
Returns a string representation of this object; useful for testing and debugging.withReadOnly
(Boolean readOnly) If this value istrue
, the container has read-only access to the volume.withSourceContainer
(String sourceContainer) The name of the container to mount volumes from.
-
Constructor Details
-
VolumeFrom
public VolumeFrom()
-
-
Method Details
-
setSourceContainer
The name of the container to mount volumes from.
- Parameters:
sourceContainer
- The name of the container to mount volumes from.
-
getSourceContainer
The name of the container to mount volumes from.
- Returns:
- The name of the container to mount volumes from.
-
withSourceContainer
The name of the container to mount volumes from.
- Parameters:
sourceContainer
- The name of the container to mount volumes from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReadOnly
If this value is
true
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.- Parameters:
readOnly
- If this value istrue
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.
-
getReadOnly
If this value is
true
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.- Returns:
- If this value is
true
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.
-
withReadOnly
If this value is
true
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.- Parameters:
readOnly
- If this value istrue
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isReadOnly
If this value is
true
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.- Returns:
- If this value is
true
, the container has read-only access to the volume. If this value isfalse
, then the container can write to the volume. The default value isfalse
.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-