com.cloudcontrolled.api.model
Class AddonOption

java.lang.Object
  extended by com.cloudcontrolled.api.model.AbstractModel
      extended by com.cloudcontrolled.api.model.AddonOption

public class AddonOption
extends AbstractModel

The add-on options object contains the unique name or as you want the ID of the add-on and some informations about the pricing.

Author:
Denis Neuling (denisneuling@gmail.com)

Constructor Summary
AddonOption()
           Constructor for AddonOption.
 
Method Summary
 String getName()
           Getter for the field name.
 double getThirtyDaysPrice()
           getThirtyDaysPrice.
 boolean isPricePerBox()
           isPricePerBox.
 void setName(String name)
           Setter for the field name.
 void setPricePerBox(boolean price_is_per_box)
           setPricePerBox.
 void setThirtyDaysPrice(double thirty_days_price)
           setThirtyDaysPrice.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddonOption

public AddonOption()

Constructor for AddonOption.

Method Detail

getName

public String getName()

Getter for the field name.

Returns:
name the name of the add-on options

setName

public void setName(String name)

Setter for the field name.

Parameters:
name - the name to set of the concerning add-on option

getThirtyDaysPrice

public double getThirtyDaysPrice()

getThirtyDaysPrice.

Returns:
thirtyDaysPrice the thrity days price of the concerning add-on option

setThirtyDaysPrice

public void setThirtyDaysPrice(double thirty_days_price)

setThirtyDaysPrice.

Parameters:
thirty_days_price - the thrity days price of the concerning add-on option to set

isPricePerBox

public boolean isPricePerBox()

isPricePerBox.

Returns:
pricePerBox the boolean value which specifies whether the price is per box

setPricePerBox

public void setPricePerBox(boolean price_is_per_box)

setPricePerBox.

Parameters:
price_is_per_box - set the boolean value whether the price is per box

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.