public class Machine extends Object implements Comparable<Machine>
Modifier and Type | Class and Description |
---|---|
static class |
Machine.Builder |
static class |
Machine.State |
Modifier and Type | Field and Description |
---|---|
protected Date |
created |
protected String |
dataset |
protected int |
diskSizeGb |
protected String |
id |
protected Set<String> |
ips |
protected int |
memorySizeMb |
protected String |
name |
protected Machine.State |
state |
protected Type |
type |
protected Date |
updated |
Constructor and Description |
---|
Machine(String id,
String name,
Type type,
Machine.State state,
String dataset,
int memorySizeMb,
int diskSizeGb,
Set<String> ips,
Date created,
Date updated,
Map<String,JsonBall> metadata) |
Modifier and Type | Method and Description |
---|---|
static Machine.Builder |
builder() |
int |
compareTo(Machine other) |
boolean |
equals(Object object) |
String |
get() |
Date |
getCreated() |
int |
getDiskSizeGb() |
String |
getId() |
Set<String> |
getIps() |
int |
getMemorySizeMb() |
Map<String,String> |
getMetadata()
Note!! metadata can contain arbitrarily complex values.
|
Map<String,String> |
getMetadataAsJsonLiterals()
If the value is a string, it will be quoted, as that's how json strings are represented.
|
String |
getName() |
Machine.State |
getState() |
Type |
getType() |
Date |
getUpdated() |
int |
hashCode() |
Machine.Builder |
toBuilder() |
String |
toString() |
protected final String id
protected final String name
protected final Type type
protected final Machine.State state
protected final String dataset
protected final int memorySizeMb
protected final int diskSizeGb
protected final Date created
protected final Date updated
public static Machine.Builder builder()
public Machine.Builder toBuilder()
public int compareTo(Machine other)
compareTo
in interface Comparable<Machine>
public String getId()
public String getName()
public Type getType()
public Machine.State getState()
public String get()
public int getMemorySizeMb()
public int getDiskSizeGb()
public Date getCreated()
public Date getUpdated()
public Map<String,String> getMetadataAsJsonLiterals()
Metadata.valueType
,
Json.fromJson(java.lang.String, java.lang.reflect.Type)
public Map<String,String> getMetadata()
getMetadataAsJsonLiterals()
Copyright © 2009-2012 jclouds. All Rights Reserved.