Groovy Documentation

com.ace.mws.images
[Groovy] Enum ImageType

java.lang.Object
  com.ace.mws.images.ImageType

enum ImageType

Represents an image type, such as stateful or stateless. This is used by provisioning managers and applications to correctly provision and represent the image.

Certain types are only valid for images configured as templates using the Image#templateName#templateName field. This currently includes ImageType#LINKED_CLONE#LINKED_CLONE and ImageType#FULL_CLONE#FULL_CLONE.

Authors:
bsaville
See Also:
Image


Enum Constant Summary
FULL_CLONE

Template type.

LINKED_CLONE

Template type.

STATEFUL

STATELESS

STATELITE

 
Constructor Summary
private ImageType()

 
Method Summary
static ImageType parse(String str)

Parses for an ImageType that matches the string representation (no underscores) or the full name of the value.

String toString()

ImageType valueOf(String name)

Returns the enum constant of this type with the specified name.

ImageType[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Enum Constant Detail

FULL_CLONE

ImageType FULL_CLONE
Template type. When this image type is used, the Image#hypervisor#hypervisor field must be set to false, Image#supportsVirtualMachine#supportsVirtualMachine must be true, and Image#supportsPhysicalMachine#supportsPhysicalMachine must be false.


LINKED_CLONE

ImageType LINKED_CLONE
Template type. When this image type is used, the Image#hypervisor#hypervisor field must be set to false, Image#supportsVirtualMachine#supportsVirtualMachine must be true, and Image#supportsPhysicalMachine#supportsPhysicalMachine must be false.


STATEFUL

ImageType STATEFUL


STATELESS

ImageType STATELESS


STATELITE

ImageType STATELITE


 
Constructor Detail

ImageType

private ImageType()


 
Method Detail

parse

static ImageType parse(String str)
Parses for an ImageType that matches the string representation (no underscores) or the full name of the value.
Parameters:
str - The string to parse for
Returns:
Discovered ImageType or null on failure


toString

String toString()


valueOf

ImageType valueOf(String name)
Returns the enum constant of this type with the specified name.


values

ImageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation