Class Instance
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static class
Instance.Builder
static class
Instance.Status
Lists possible Instance status.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Instance.Builder
builder()
int
compareTo(Instance that)
boolean
equals(Object obj)
Flavor
getFlavor()
String
getHostname()
String
getId()
List<Link>
getLinks()
String
getName()
int
getSize()
Instance.Status
getStatus()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Instance.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
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 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<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)
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
builder
public static Instance.Builder builder()
-
toBuilder
public Instance.Builder toBuilder()
-
compareTo
public int compareTo(Instance that)
- Specified by:
compareTo
in interfaceComparable<Instance>
-
-