org.jclouds.openstack.trove.v1.domain
Class Instance

java.lang.Object
  extended by org.jclouds.openstack.trove.v1.domain.Instance
All Implemented Interfaces:
Comparable<Instance>

public class Instance
extends Object
implements Comparable<Instance>

An Openstack Trove Database Instance.


Nested Class Summary
static class Instance.Builder
           
static class Instance.Status
          Lists possible Instance status.
 
Constructor Summary
protected Instance(String id, String name, Flavor flavor, Volume volume, Instance.Status status, List<org.jclouds.openstack.v2_0.domain.Link> links, String hostname)
           
 
Method Summary
static Instance.Builder builder()
           
 int compareTo(Instance that)
           
 boolean equals(Object obj)
           
 Flavor getFlavor()
           
 String getHostname()
           
 String getId()
           
 List<org.jclouds.openstack.v2_0.domain.Link> getLinks()
           
 String getName()
           
 int getSize()
           
 Instance.Status getStatus()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Instance.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

@ConstructorProperties(value={"id","name","flavor","volume","status","links","hostname"})
protected Instance(String id,
                                              String name,
                                              Flavor flavor,
                                              Volume volume,
                                              Instance.Status status,
                                              List<org.jclouds.openstack.v2_0.domain.Link> links,
                                              String hostname)
Method Detail

getId

public String getId()
Returns:
the id of this instance.

getName

public String getName()
Returns:
the name of this instance.
See Also:
Instance.Builder.name(String)

getFlavor

public Flavor getFlavor()
Returns:
the flavor of this instance.
See Also:
Instance.Builder.flavor(Flavor)

getSize

public int getSize()
Returns:
the volume size for this instance in gigabytes (GB).
See Also:
Instance.Builder.size(int)

getStatus

public Instance.Status getStatus()
Returns:
the status for this instance.
See Also:
Instance.Builder.status(Instance.Status)

getLinks

public List<org.jclouds.openstack.v2_0.domain.Link> getLinks()
Returns:
the Links for this instance.
See Also:
Instance.Builder.links(ImmutableList)

getHostname

public String getHostname()
Returns:
the hostname of this instance. The hostname is null unless this Instance was obtained with InstanceApi#get(String).
See Also:
Instance.Builder.hostname(String)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object

builder

public static Instance.Builder builder()

toBuilder

public Instance.Builder toBuilder()

compareTo

public int compareTo(Instance that)
Specified by:
compareTo in interface Comparable<Instance>


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