Package org.ovirt.engine.sdk4.types
Enum ImageTransferDirection
- java.lang.Object
-
- java.lang.Enum<ImageTransferDirection>
-
- org.ovirt.engine.sdk4.types.ImageTransferDirection
-
- All Implemented Interfaces:
Serializable
,Comparable<ImageTransferDirection>
public enum ImageTransferDirection extends Enum<ImageTransferDirection>
The <> direction for a transfer. When adding a new transfer, the user can choose whether the transfer will be to an image, choosing `upload`, or to transfer from an image- choosing `download` as an ImageTransferDirection. Please refer to < > for further documentation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageTransferDirection
fromValue(String value)
String
value()
static ImageTransferDirection
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImageTransferDirection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOWNLOAD
public static final ImageTransferDirection DOWNLOAD
The user must choose `download` when he/she wants to stream data from an image.
-
UPLOAD
public static final ImageTransferDirection UPLOAD
The user can choose `upload` when he/she wants to stream data to an image.
-
-
Method Detail
-
values
public static ImageTransferDirection[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageTransferDirection c : ImageTransferDirection.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageTransferDirection valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static ImageTransferDirection fromValue(String value)
-
-