public class VolumesFrom extends Object implements Serializable
Constructor and Description |
---|
VolumesFrom(String container) |
VolumesFrom(String container,
AccessMode accessMode) |
Modifier and Type | Method and Description |
---|---|
AccessMode |
getAccessMode() |
String |
getContainer() |
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:ro
VolumesFrom
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 Object
VolumesFrom
Copyright © 2021. All rights reserved.