com.vmware.vcloud.sdk.constants
Enum Version

java.lang.Object
  extended by java.lang.Enum<Version>
      extended by com.vmware.vcloud.sdk.constants.Version
All Implemented Interfaces:
Serializable, Comparable<Version>

public enum Version
extends Enum<Version>

This class represents the API versions supported in the SDK.

Since:
API 1.5, SDK 1.5
Author:
Ecosystem Engineering

Enum Constant Summary
V1_5
          API Version 1.5
V20_0
          API Version 20.0
V5_1
          API Version 5.1
V5_5
          API Version 5.5
V5_6
          API Version 5.6
V5_7
          API Version 5.7
V9_0
          API Version 9.0
 
Method Summary
static Version fromValue(String value)
           
 String value()
           
static Version valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Version[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

V1_5

public static final Version V1_5
API Version 1.5


V5_1

public static final Version V5_1
API Version 5.1


V5_5

public static final Version V5_5
API Version 5.5


V5_6

public static final Version V5_6
API Version 5.6


V5_7

public static final Version V5_7
API Version 5.7


V9_0

public static final Version V9_0
API Version 9.0


V20_0

public static final Version V20_0
API Version 20.0

Method Detail

values

public static Version[] 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 (Version c : Version.values())
    System.out.println(c);

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

valueOf

public static Version 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

fromValue

public static Version fromValue(String value)

value

public String value()


Copyright © 2016. All Rights Reserved.