Package org.jclouds.glesys.domain
Class AllowedArguments
- java.lang.Object
-
- org.jclouds.glesys.domain.AllowedArguments
-
public class AllowedArguments extends Object
Represents the allowed arguments for a certain server resource type (such as disksize, memorysize, cpucores, and transfer). This is a composite type consisting of both the set of allowed units for the resource type as well as the cost per unit.- See Also:
AllowedArgumentsForCreateServer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AllowedArguments.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
AllowedArguments(Cost costPerUnit, Set<Integer> units)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AllowedArguments.Builder
builder()
boolean
equals(Object obj)
Set<Integer>
getAllowedUnits()
Cost
getCostPerUnit()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
AllowedArguments.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
AllowedArguments
@ConstructorProperties({"costperunit","units"}) protected AllowedArguments(Cost costPerUnit, Set<Integer> units)
-
-
Method Detail
-
builder
public static AllowedArguments.Builder builder()
-
toBuilder
public AllowedArguments.Builder toBuilder()
-
getCostPerUnit
public Cost getCostPerUnit()
- Returns:
- the cost per unit.
-
getAllowedUnits
public Set<Integer> getAllowedUnits()
- Returns:
- the set of allowed units for the resource type.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-