org.jclouds.joyent.cloudapi.v6_5.domain
Class Package

java.lang.Object
  extended by org.jclouds.joyent.cloudapi.v6_5.domain.Package
All Implemented Interfaces:
Comparable<Package>

public class Package
extends Object
implements Comparable<Package>

Listing of a package.

Author:
Gerald Pereira
See Also:

Nested Class Summary
static class Package.Builder
           
 
Field Summary
protected  int diskSizeGb
           
protected  boolean isDefault
           
protected  int memorySizeMb
           
protected  String name
           
protected  int swapSizeMb
           
 
Constructor Summary
Package(String name, int memorySizeMb, int diskSizeGb, int swapSizeMb, boolean isDefault)
           
 
Method Summary
static Package.Builder builder()
           
 int compareTo(Package other)
           
 boolean equals(Object object)
           
 int getDiskSizeGb()
           
 int getMemorySizeMb()
           
 String getName()
           
 int getSwapSizeMb()
           
 int hashCode()
           
 boolean isDefault()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final String name

memorySizeMb

protected final int memorySizeMb

diskSizeGb

protected final int diskSizeGb

swapSizeMb

protected final int swapSizeMb

isDefault

protected final boolean isDefault
Constructor Detail

Package

public Package(String name,
               int memorySizeMb,
               int diskSizeGb,
               int swapSizeMb,
               boolean isDefault)
Method Detail

builder

public static Package.Builder builder()

compareTo

public int compareTo(Package other)
Specified by:
compareTo in interface Comparable<Package>

getName

public String getName()

getMemorySizeMb

public int getMemorySizeMb()

getDiskSizeGb

public int getDiskSizeGb()

getSwapSizeMb

public int getSwapSizeMb()

isDefault

public boolean isDefault()

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.