org.jclouds.glesys.domain
Class Cost.Builder<T extends Cost.Builder<T>>

java.lang.Object
  extended by org.jclouds.glesys.domain.Cost.Builder<T>
Enclosing class:
Cost

public abstract static class Cost.Builder<T extends Cost.Builder<T>>
extends Object


Field Summary
protected  double amount
           
protected  String currency
           
protected  String timePeriod
           
 
Constructor Summary
Cost.Builder()
           
 
Method Summary
 T amount(double amount)
           
 Cost build()
           
 T currency(String currency)
           
 T fromCost(Cost in)
           
protected abstract  T self()
           
 T timePeriod(String timePeriod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amount

protected double amount

currency

protected String currency

timePeriod

protected String timePeriod
Constructor Detail

Cost.Builder

public Cost.Builder()
Method Detail

self

protected abstract T self()

amount

public T amount(double amount)
See Also:
Cost.getAmount()

currency

public T currency(String currency)
See Also:
Cost.getCurrency()

timePeriod

public T timePeriod(String timePeriod)
See Also:
Cost.getTimePeriod()

build

public Cost build()

fromCost

public T fromCost(Cost in)


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.