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 classInstance.Builderstatic classInstance.StatusLists possible Instance status.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Instance.Builderbuilder()intcompareTo(Instance that)booleanequals(Object obj)FlavorgetFlavor()StringgetHostname()StringgetId()List<Link>getLinks()StringgetName()intgetSize()Instance.StatusgetStatus()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Instance.BuildertoBuilder()StringtoString()
-
-
-
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:
compareToin interfaceComparable<Instance>
-
-