Package org.jclouds.glesys.domain
Class AllowedArgumentsForCreateServer
- java.lang.Object
-
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AllowedArgumentsForCreateServer.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
AllowedArgumentsForCreateServer(AllowedArguments diskSizesInGB, AllowedArguments memorySizesInMB, AllowedArguments cpuCoreOptions, Set<String> templateNames, AllowedArguments transfersInGB, Set<String> dataCenters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AllowedArgumentsForCreateServer.Builder
builder()
boolean
equals(Object obj)
AllowedArguments
getCpuCoreOptions()
Set<String>
getDataCenters()
AllowedArguments
getDiskSizesInGB()
AllowedArguments
getMemorySizesInMB()
Set<String>
getTemplateNames()
AllowedArguments
getTransfersInGB()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
AllowedArgumentsForCreateServer.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
AllowedArgumentsForCreateServer
@ConstructorProperties({"disksize","memorysize","cpucores","template","transfer","datacenter"}) protected AllowedArgumentsForCreateServer(AllowedArguments diskSizesInGB, AllowedArguments memorySizesInMB, AllowedArguments cpuCoreOptions, Set<String> templateNames, AllowedArguments transfersInGB, Set<String> dataCenters)
-
-
Method Detail
-
builder
public static AllowedArgumentsForCreateServer.Builder builder()
-
toBuilder
public AllowedArgumentsForCreateServer.Builder toBuilder()
-
getDiskSizesInGB
public AllowedArguments 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 AllowedArguments 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 AllowedArguments 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 AllowedArguments 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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-