public class VolumesFrom extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
VolumesFrom.Deserializer |
static class |
VolumesFrom.Serializer |
| Constructor and Description |
|---|
VolumesFrom(String container) |
VolumesFrom(String container,
AccessMode accessMode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AccessMode |
getAccessMode() |
String |
getContainer() |
int |
hashCode() |
static VolumesFrom |
parse(String serialized)
Parses a volume from specification to a
VolumesFrom. |
String |
toString()
Returns a string representation of this
VolumesFrom suitable for inclusion in a JSON message. |
public VolumesFrom(String container)
public VolumesFrom(String container, AccessMode accessMode)
public String getContainer()
public AccessMode getAccessMode()
public static VolumesFrom parse(String serialized)
VolumesFrom.serialized - the specification, e.g. container:roVolumesFrom matching the specificationIllegalArgumentException - if the specification cannot be parsedpublic String toString()
VolumesFrom suitable for inclusion in a JSON message. The format is
<container>:<access mode>, like the argument in parse(String).toString in class ObjectVolumesFromCopyright © 2017. All Rights Reserved.