Enum ContainerFormat
- java.lang.Object
-
- java.lang.Enum<ContainerFormat>
-
- org.jclouds.openstack.glance.v1_0.domain.ContainerFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<ContainerFormat>
public enum ContainerFormat extends Enum<ContainerFormat>
The container format refers to whether the virtual machine image is in a file format that also contains metadata about the actual virtual machine.Note
Note that the container format string is not currently used by Glance or other OpenStack components, so it is safe to simply specifyBARE
as the container format if you are unsure.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AKI
This indicates what is stored in Glance is an Amazon kernel imageAMI
This indicates what is stored in Glance is an Amazon machine imageARI
This indicates what is stored in Glance is an Amazon ramdisk imageBARE
This indicates there is no container or metadata envelope for the imageOVF
This is the OVF container formatUNRECOGNIZED
Type unknown to jclouds
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContainerFormat
fromValue(String containerFormat)
String
toString()
String
value()
static ContainerFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContainerFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BARE
public static final ContainerFormat BARE
This indicates there is no container or metadata envelope for the image
-
OVF
public static final ContainerFormat OVF
This is the OVF container format
-
AKI
public static final ContainerFormat AKI
This indicates what is stored in Glance is an Amazon kernel image
-
ARI
public static final ContainerFormat ARI
This indicates what is stored in Glance is an Amazon ramdisk image
-
AMI
public static final ContainerFormat AMI
This indicates what is stored in Glance is an Amazon machine image
-
UNRECOGNIZED
public static final ContainerFormat UNRECOGNIZED
Type unknown to jclouds
-
-
Method Detail
-
values
public static ContainerFormat[] 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 (ContainerFormat c : ContainerFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContainerFormat 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()
-
toString
public String toString()
- Overrides:
toString
in classEnum<ContainerFormat>
-
fromValue
public static ContainerFormat fromValue(String containerFormat)
-
-