org.jclouds.softlayer.domain
Class PowerState

java.lang.Object
  extended by org.jclouds.softlayer.domain.PowerState
All Implemented Interfaces:
Comparable<PowerState>

public class PowerState
extends Object
implements Comparable<PowerState>

The power state class provides a common set of values for which a guest's power state will be presented in the SoftLayer API.

Author:
Jason King
See Also:

Nested Class Summary
static class PowerState.Builder
           
 
Constructor Summary
PowerState(VirtualGuest.State keyName)
           
 
Method Summary
static PowerState.Builder builder()
           
 int compareTo(PowerState arg0)
           
 boolean equals(Object o)
           
 VirtualGuest.State getKeyName()
          Maps onto VirtualGuest.State
 int hashCode()
           
 PowerState.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PowerState

public PowerState(VirtualGuest.State keyName)
Method Detail

builder

public static PowerState.Builder builder()

compareTo

public int compareTo(PowerState arg0)
Specified by:
compareTo in interface Comparable<PowerState>

getKeyName

public VirtualGuest.State getKeyName()
Maps onto VirtualGuest.State

Returns:
The key name of a power state.

toBuilder

public PowerState.Builder toBuilder()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.