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 classAllowedArguments.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedAllowedArguments(Cost costPerUnit, Set<Integer> units)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AllowedArguments.Builderbuilder()booleanequals(Object obj)Set<Integer>getAllowedUnits()CostgetCostPerUnit()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()AllowedArguments.BuildertoBuilder()StringtoString()
-
-
-
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()
-
-