Class Instance
java.lang.Object
org.jclouds.openstack.trove.v1.domain.Instance
- All Implemented Interfaces:
Comparable<Instance>
An Openstack Trove Database Instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
Lists possible Instance status. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Instance
@ConstructorProperties({"id","name","flavor","volume","status","links","hostname"}) protected Instance(String id, String name, Flavor flavor, Volume volume, Instance.Status status, List<Link> links, String hostname)
-
-
Method Details
-
getId
- Returns:
- the id of this instance.
-
getName
- Returns:
- the name of this instance.
- See Also:
-
getFlavor
- Returns:
- the flavor of this instance.
- See Also:
-
getSize
public int getSize()- Returns:
- the volume size for this instance in gigabytes (GB).
- See Also:
-
getStatus
- Returns:
- the status for this instance.
- See Also:
-
getLinks
- Returns:
- the Links for this instance.
- See Also:
-
getHostname
- Returns:
- the hostname of this instance. The hostname is null unless this Instance was obtained with
invalid reference
InstanceApi#get(String)
- See Also:
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-
builder
-
toBuilder
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Instance>
-