DigitalOcean API Client in Java

com.myjeeva.digitalocean
Enum DropletStatus

java.lang.Object
  extended by java.lang.Enum<DropletStatus>
      extended by com.myjeeva.digitalocean.DropletStatus
All Implemented Interfaces:
Serializable, Comparable<DropletStatus>

public enum DropletStatus
extends Enum<DropletStatus>

Describes possible droplet states.

Since:
v1.5
Author:
Robert Gr√ľndler ([email protected]) - pulse00

Enum Constant Summary
Active
           
Archive
           
New
           
Off
           
 
Method Summary
static DropletStatus fromValue(String value)
           
 String toString()
           
static DropletStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DropletStatus[] 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

New

public static final DropletStatus New

Active

public static final DropletStatus Active

Off

public static final DropletStatus Off

Archive

public static final DropletStatus Archive
Method Detail

values

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

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

valueOf

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

toString

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

fromValue

public static DropletStatus fromValue(String value)

DigitalOcean API Client in Java

Copyright © 2014 myjeeva blog, All rights reserved.

The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons Attribution-Share Alike 3.0 Unported License. Libraries and code snippets on myjeeva blog has license information.