public class VolumesFrom
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
VolumesFrom.Deserializer |
static class |
VolumesFrom.Serializer |
Constructor and Description |
---|
VolumesFrom(java.lang.String container) |
VolumesFrom(java.lang.String container,
AccessMode accessMode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AccessMode |
getAccessMode() |
java.lang.String |
getContainer() |
int |
hashCode() |
static VolumesFrom |
parse(java.lang.String serialized)
Parses a volume from specification to a
VolumesFrom . |
java.lang.String |
toString()
Returns a string representation of this
VolumesFrom suitable for inclusion in a JSON message. |
public VolumesFrom(java.lang.String container)
public VolumesFrom(java.lang.String container, AccessMode accessMode)
public java.lang.String getContainer()
public AccessMode getAccessMode()
public static VolumesFrom parse(java.lang.String serialized)
VolumesFrom
.serialized
- the specification, e.g. container:ro
VolumesFrom
matching the specificationjava.lang.IllegalArgumentException
- if the specification cannot be parsedpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.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 java.lang.Object
VolumesFrom
Copyright © 2019. All Rights Reserved.