Package org.openstack4j.model.image.v2
Enum ContainerFormat
- java.lang.Object
-
- java.lang.Enum<ContainerFormat>
-
- org.openstack4j.model.image.v2.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 that the container format string is not currently used by Glance or other OpenStack components, so it is safe to simply specify
BARE
as the container format if you are unsure.- Author:
- emjburns
-
-
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 imageDOCKER
This is the Docker container formatOVA
This indicates what is stored in Glance is an OVA tar archive fileOVF
This is the OVF container formatUNRECOGNIZED
Type unknown
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
static ContainerFormat
value(String cf)
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
-
OVA
public static final ContainerFormat OVA
This indicates what is stored in Glance is an OVA tar archive file
-
DOCKER
public static final ContainerFormat DOCKER
This is the Docker container format
-
UNRECOGNIZED
public static final ContainerFormat UNRECOGNIZED
Type unknown
-
-
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 static ContainerFormat value(String cf)
-
value
public String value()
-
-