public class Package extends Object implements Comparable<Package>
Modifier and Type | Class and Description |
---|---|
static class |
Package.Builder |
Modifier and Type | Field and Description |
---|---|
protected int |
diskSizeGb |
protected boolean |
isDefault |
protected int |
memorySizeMb |
protected String |
name |
protected int |
swapSizeMb |
Constructor and Description |
---|
Package(String name,
int memorySizeMb,
int diskSizeGb,
int swapSizeMb,
boolean isDefault) |
Modifier and Type | Method and Description |
---|---|
static Package.Builder |
builder() |
int |
compareTo(Package that) |
boolean |
equals(Object object) |
int |
getDiskSizeGb()
How much disk space will be available (in Gb)
|
int |
getMemorySizeMb()
How much memory will by available (in Mb)
|
String |
getName()
The "friendly name for this package
|
int |
getSwapSizeMb()
How much swap memory will be available (in Mb)
|
int |
hashCode() |
boolean |
isDefault()
Whether this is the default package in this datacenter
|
Package.Builder |
toBuilder() |
String |
toString() |
protected final String name
@Named(value="memory") protected final int memorySizeMb
@Named(value="disk") protected final int diskSizeGb
@Named(value="swap") protected final int swapSizeMb
@Named(value="default") protected final boolean isDefault
@ConstructorProperties(value={"name","memory","disk","swap","default"}) public Package(String name, int memorySizeMb, int diskSizeGb, int swapSizeMb, boolean isDefault)
public static Package.Builder builder()
public Package.Builder toBuilder()
public String getName()
public int getMemorySizeMb()
public int getDiskSizeGb()
public int getSwapSizeMb()
public boolean isDefault()
public int compareTo(Package that)
compareTo
in interface Comparable<Package>
Copyright © 2009-2013 jclouds. All Rights Reserved.