Package com.myjeeva.digitalocean.pojo
Class Size
java.lang.Object
com.myjeeva.digitalocean.pojo.RateLimitBase
com.myjeeva.digitalocean.pojo.Base
com.myjeeva.digitalocean.pojo.Size
- All Implemented Interfaces:
Serializable
Represents Droplet Size (aka Droplet Plan) attributes of DigitalOcean. Revised as per v2 API data
structure.
- Author:
- Jeevanandam M. (jeeva@myjeeva.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSlug()booleanvoidsetAvailable(boolean available) voidsetDiskSize(Integer diskSize) voidsetMemorySizeInMb(Integer memorySizeInMb) voidsetPriceHourly(BigDecimal priceHourly) voidsetPriceMonthly(BigDecimal priceMonthly) voidsetRegions(List<String> regions) voidvoidsetTransfer(Double transfer) voidsetVirutalCpuCount(Integer virutalCpuCount) toString()Methods inherited from class com.myjeeva.digitalocean.pojo.Base
getLinks, getMeta, setLinks, setMetaMethods inherited from class com.myjeeva.digitalocean.pojo.RateLimitBase
getRateLimit, setRateLimit
-
Constructor Details
-
Size
public Size() -
Size
-
-
Method Details
-
toString
-
getSlug
- Returns:
- the slug
-
setSlug
- Parameters:
slug- the slug to set
-
getMemorySizeInMb
- Returns:
- the memorySizeInMb
-
setMemorySizeInMb
- Parameters:
memorySizeInMb- the memorySizeInMb to set
-
getVirutalCpuCount
- Returns:
- the virutalCpuCount
-
setVirutalCpuCount
- Parameters:
virutalCpuCount- the virutalCpuCount to set
-
getDiskSize
- Returns:
- the diskSize
-
setDiskSize
- Parameters:
diskSize- the diskSize to set
-
getTransfer
- Returns:
- the transfer
-
setTransfer
- Parameters:
transfer- the transfer to set
-
getPriceMonthly
- Returns:
- the priceMonthly
-
setPriceMonthly
- Parameters:
priceMonthly- the priceMonthly to set
-
getPriceHourly
- Returns:
- the priceHourly
-
setPriceHourly
- Parameters:
priceHourly- the priceHourly to set
-
getRegions
- Returns:
- the regions
-
setRegions
- Parameters:
regions- the regions to set
-
isAvailable
public boolean isAvailable()- Returns:
- the available
-
setAvailable
public void setAvailable(boolean available) - Parameters:
available- the available to set
-