org.jclouds.glesys.domain
Class OSTemplate

java.lang.Object
  extended by org.jclouds.glesys.domain.OSTemplate
All Implemented Interfaces:
Comparable<OSTemplate>

public class OSTemplate
extends Object
implements Comparable<OSTemplate>

Operating system template

Author:
Adam Lowe
See Also:

Nested Class Summary
static class OSTemplate.Builder
           
 
Constructor Summary
OSTemplate(String name, int minDiskSize, int minMemSize, String os, String platform)
           
 
Method Summary
static OSTemplate.Builder builder()
           
 int compareTo(OSTemplate arg0)
           
 boolean equals(Object object)
           
 int getMinDiskSize()
           
 int getMinMemSize()
           
 String getName()
           
 String getOs()
           
 String getPlatform()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSTemplate

public OSTemplate(String name,
                  int minDiskSize,
                  int minMemSize,
                  String os,
                  String platform)
Method Detail

builder

public static OSTemplate.Builder builder()

getName

public String getName()

getMinDiskSize

public int getMinDiskSize()
Returns:
the minimum allowed disk size in GB
See Also:
AllowedArgumentsForCreateServer.getDiskSizesInGB()

getMinMemSize

public int getMinMemSize()
Returns:
the minimum allowed memory size in MB
See Also:
AllowedArgumentsForCreateServer.getMemorySizesInMB()

getOs

public String getOs()
Returns:
the name of the operating system type ex. "linux"

getPlatform

public String getPlatform()
Returns:
the name of the platform this template is available in, ex. "Xen"

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

compareTo

public int compareTo(OSTemplate arg0)
Specified by:
compareTo in interface Comparable<OSTemplate>


Copyright © 2009-2012 jclouds. All Rights Reserved.