public class Instance extends Object implements Comparable<Instance>
Modifier and Type | Class and Description |
---|---|
static class |
Instance.Builder |
static class |
Instance.Status
Lists possible Instance status.
|
Modifier | Constructor and Description |
---|---|
protected |
Instance(String id,
String name,
Flavor flavor,
Volume volume,
Instance.Status status,
List<Link> links,
String hostname) |
Modifier and Type | Method and 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.Objects.ToStringHelper |
string() |
Instance.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"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)
public String getId()
public String getName()
Instance.Builder.name(String)
public Flavor getFlavor()
Instance.Builder.flavor(Flavor)
public int getSize()
Instance.Builder.size(int)
public Instance.Status getStatus()
Instance.Builder.status(Instance.Status)
public List<Link> getLinks()
Instance.Builder.links(ImmutableList)
public String getHostname()
InstanceApi#get(String)
.Instance.Builder.hostname(String)
protected com.google.common.base.Objects.ToStringHelper string()
public static Instance.Builder builder()
public Instance.Builder toBuilder()
public int compareTo(Instance that)
compareTo
in interface Comparable<Instance>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.