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.
- Author:
- Peter GardfjÀll
- See Also:
AllowedArgumentsForCreateServer
AllowedArguments
@ConstructorProperties(value={"costperunit","units"})
protected AllowedArguments(Cost costPerUnit,
Set<Integer> units)
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.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.