Class Size

All Implemented Interfaces:
Serializable

public class Size extends Base
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 Details

    • Size

      public Size()
    • Size

      public Size(String slug)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Base
    • getSlug

      public String getSlug()
      Returns:
      the slug
    • setSlug

      public void setSlug(String slug)
      Parameters:
      slug - the slug to set
    • getMemorySizeInMb

      public Integer getMemorySizeInMb()
      Returns:
      the memorySizeInMb
    • setMemorySizeInMb

      public void setMemorySizeInMb(Integer memorySizeInMb)
      Parameters:
      memorySizeInMb - the memorySizeInMb to set
    • getVirutalCpuCount

      public Integer getVirutalCpuCount()
      Returns:
      the virutalCpuCount
    • setVirutalCpuCount

      public void setVirutalCpuCount(Integer virutalCpuCount)
      Parameters:
      virutalCpuCount - the virutalCpuCount to set
    • getDiskSize

      public Integer getDiskSize()
      Returns:
      the diskSize
    • setDiskSize

      public void setDiskSize(Integer diskSize)
      Parameters:
      diskSize - the diskSize to set
    • getTransfer

      public Double getTransfer()
      Returns:
      the transfer
    • setTransfer

      public void setTransfer(Double transfer)
      Parameters:
      transfer - the transfer to set
    • getPriceMonthly

      public BigDecimal getPriceMonthly()
      Returns:
      the priceMonthly
    • setPriceMonthly

      public void setPriceMonthly(BigDecimal priceMonthly)
      Parameters:
      priceMonthly - the priceMonthly to set
    • getPriceHourly

      public BigDecimal getPriceHourly()
      Returns:
      the priceHourly
    • setPriceHourly

      public void setPriceHourly(BigDecimal priceHourly)
      Parameters:
      priceHourly - the priceHourly to set
    • getRegions

      public List<String> getRegions()
      Returns:
      the regions
    • setRegions

      public void setRegions(List<String> regions)
      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