org.jclouds.glesys.domain
Class AllowedArgumentsForCreateServer

java.lang.Object
  extended by org.jclouds.glesys.domain.AllowedArgumentsForCreateServer

public class AllowedArgumentsForCreateServer
extends Object

Sets the allowed arguments for some of the functions in this module such as disksize, cpucores etc.

Author:
Adam Lowe
See Also:

Nested Class Summary
static class AllowedArgumentsForCreateServer.Builder
           
 
Constructor Summary
AllowedArgumentsForCreateServer(Set<Integer> diskSizes, Set<Integer> memorySizes, Set<Integer> cpuCores, Set<String> templates, Set<Integer> transfers, Set<String> dataCenters)
           
 
Method Summary
static AllowedArgumentsForCreateServer.Builder builder()
           
 boolean equals(Object object)
           
 Set<Integer> getCpuCoreOptions()
           
 Set<String> getDataCenters()
           
 Set<Integer> getDiskSizesInGB()
           
 Set<Integer> getMemorySizesInMB()
           
 Set<String> getTemplateNames()
           
 Set<Integer> getTransfersInGB()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllowedArgumentsForCreateServer

public AllowedArgumentsForCreateServer(Set<Integer> diskSizes,
                                       Set<Integer> memorySizes,
                                       Set<Integer> cpuCores,
                                       Set<String> templates,
                                       Set<Integer> transfers,
                                       Set<String> dataCenters)
Method Detail

builder

public static AllowedArgumentsForCreateServer.Builder builder()

getDiskSizesInGB

public Set<Integer> getDiskSizesInGB()
Returns:
a list of disk sizes, in GB, that can be used for creating servers on this platform
See Also:
OSTemplate.getMinDiskSize()

getMemorySizesInMB

public Set<Integer> getMemorySizesInMB()
Returns:
a list of memory sizes, in MB, that can be used for creating servers on this platform
See Also:
OSTemplate.getMinMemSize()

getCpuCoreOptions

public Set<Integer> getCpuCoreOptions()
Returns:
a list of which core counts can be used for creating servers on this platform

getTemplateNames

public Set<String> getTemplateNames()
Returns:
a list of template names available for creating servers on this platform
See Also:
OSTemplate.getName()

getTransfersInGB

public Set<Integer> getTransfersInGB()
Returns:
the list of transfer settings available for creating servers on this platform

getDataCenters

public Set<String> getDataCenters()
Returns:
the list of datacenters available that support creating servers on this platform

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.