org.jclouds.openstack.glance.v1_0.domain
Enum ContainerFormat

java.lang.Object
  extended by java.lang.Enum<ContainerFormat>
      extended by 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 specify BARE as the container format if you are unsure.

See Also:

Enum Constant Summary
AKI
          This indicates what is stored in Glance is an Amazon kernel image
AMI
          This indicates what is stored in Glance is an Amazon machine image
ARI
          This indicates what is stored in Glance is an Amazon ramdisk image
BARE
          This indicates there is no container or metadata envelope for the image
OVF
          This is the OVF container format
UNRECOGNIZED
          Type unknown to jclouds
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

value

public String value()

toString

public String toString()
Overrides:
toString in class Enum<ContainerFormat>

fromValue

public static ContainerFormat fromValue(String containerFormat)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.