org.jclouds.glesys.domain
Class AllowedArguments

java.lang.Object
  extended by 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

Nested Class Summary
static class AllowedArguments.Builder
           
 
Constructor Summary
protected AllowedArguments(Cost costPerUnit, Set<Integer> units)
           
 
Method Summary
static AllowedArguments.Builder builder()
           
 boolean equals(Object obj)
           
 Set<Integer> getAllowedUnits()
           
 Cost getCostPerUnit()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 AllowedArguments.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllowedArguments

@ConstructorProperties(value={"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.

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.