com.shephertz.app42.paas.sdk.jme.appTab
Class Charge.Storage

java.lang.Object
  extended by com.shephertz.app42.paas.sdk.jme.appTab.Charge.Storage
Enclosing class:
Charge

public class Charge.Storage
extends java.lang.Object

An inner class that contains the remaining properties of the Usage.


Field Summary
 java.lang.String currency
           
 java.lang.String description
           
 java.lang.String name
           
 java.lang.Double price
           
 java.lang.Double space
           
 java.lang.String state
           
 java.lang.String unit
           
 
Constructor Summary
Charge.Storage()
          This is a constructor that takes no parameter
 
Method Summary
 java.lang.String getCurrency()
          Returns the type of the currency in which bill is generated.
 java.lang.String getDescription()
          Returns the description of the storage.
 java.lang.String getName()
          Returns the name of the storage unit for the bill to be generated.
 java.lang.Double getPrice()
          Returns the price computed as per the storage of an app.
 java.lang.Double getSpace()
          Returns the space taken for an app.
 java.lang.String getState()
          Returns the state of the storage.
 java.lang.String getUnit()
          Returns the storage unit taken by an app whether its KB, MB, GB or TB.
 void setCurrency(java.lang.String currency)
          Sets the type of the currency in which bill has to be generated.
 void setDescription(java.lang.String description)
          Sets the description of the storage.
 void setName(java.lang.String name)
          Sets the name of the storage unit for the bill to be generated.
 void setPrice(java.lang.Double price)
          Sets the price as per the storage
 void setSpace(java.lang.Double space)
          Sets the space for an app.
 void setState(java.lang.String state)
          Sets the state of the storage.
 void setUnit(java.lang.String unit)
          Sets the storage unit for an app
 java.lang.String toString()
          Returns the Usage Response in JSON format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currency

public java.lang.String currency

description

public java.lang.String description

name

public java.lang.String name

price

public java.lang.Double price

space

public java.lang.Double space

state

public java.lang.String state

unit

public java.lang.String unit
Constructor Detail

Charge.Storage

public Charge.Storage()
This is a constructor that takes no parameter

Method Detail

getCurrency

public java.lang.String getCurrency()
Returns the type of the currency in which bill is generated.

Returns:
the type of the currency in which bill is generated.

getDescription

public java.lang.String getDescription()
Returns the description of the storage.

Returns:
the description of the storage.

getName

public java.lang.String getName()
Returns the name of the storage unit for the bill to be generated.

Returns:
the name of the storage unit.

getPrice

public java.lang.Double getPrice()
Returns the price computed as per the storage of an app.

Returns:
the price computed as per the storage

getSpace

public java.lang.Double getSpace()
Returns the space taken for an app.

Returns:
the space taken for an app.

getState

public java.lang.String getState()
Returns the state of the storage.

Returns:
the state of the storage.

getUnit

public java.lang.String getUnit()
Returns the storage unit taken by an app whether its KB, MB, GB or TB.

Returns:
the storage unit taken by an app

setCurrency

public void setCurrency(java.lang.String currency)
Sets the type of the currency in which bill has to be generated.

Parameters:
currency - - type of the currency

setDescription

public void setDescription(java.lang.String description)
Sets the description of the storage.

Parameters:
description - - description of the storage

setName

public void setName(java.lang.String name)
Sets the name of the storage unit for the bill to be generated.

Parameters:
name - - name of the storage unit

setPrice

public void setPrice(java.lang.Double price)
Sets the price as per the storage

Parameters:
price - - price as per the storage

setSpace

public void setSpace(java.lang.Double space)
Sets the space for an app.

Parameters:
space - - space for an app.

setState

public void setState(java.lang.String state)
Sets the state of the storage.

Parameters:
state - - state of the storage

setUnit

public void setUnit(java.lang.String unit)
Sets the storage unit for an app

Parameters:
unit - - storage unit for an app

toString

public java.lang.String toString()
Returns the Usage Response in JSON format.

Overrides:
toString in class java.lang.Object
Returns:
the response in JSON format.