Class Droplet

All Implemented Interfaces:
Serializable

public class Droplet extends Base
Represents Droplet attributes of DigitalOcean. Revised as per v2 API data structure.
Author:
Jeevanandam M. (jeeva@myjeeva.com)
See Also:
  • Constructor Details

    • Droplet

      public Droplet()
  • Method Details

    • toString

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

      public boolean isActive()
      Returns:
      true if droplet is active
    • isNew

      public boolean isNew()
      Returns:
      true if droplet is new, meaning it's booting up
    • isOff

      public boolean isOff()
      Returns:
      true if droplet is turned off
    • isArchived

      public boolean isArchived()
      Returns:
      true if droplet is archived
    • getId

      public Integer getId()
      Returns:
      the id
    • setId

      public void setId(Integer id)
      Parameters:
      id - the id to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getNames

      public List<String> getNames()
      Returns:
      the names
    • setNames

      public void setNames(List<String> names)
      Parameters:
      names - the names 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
    • getRegion

      public Region getRegion()
      Returns:
      the region
    • setRegion

      public void setRegion(Region region)
      Parameters:
      region - the region to set
    • getImage

      public Image getImage()
      Returns:
      the image
    • setImage

      public void setImage(Image image)
      Parameters:
      image - the image to set
    • getSize

      public String getSize()
      Returns:
      the size
    • setSize

      public void setSize(String size)
      Parameters:
      size - the size to set
    • isLocked

      public boolean isLocked()
      Returns:
      the locked
    • setLocked

      public void setLocked(boolean locked)
      Parameters:
      locked - the locked to set
    • getStatus

      public DropletStatus getStatus()
      Returns:
      the status
    • setStatus

      public void setStatus(DropletStatus status)
      Parameters:
      status - the status to set
    • getNetworks

      public Networks getNetworks()
      Returns:
      the networks
    • setNetworks

      public void setNetworks(Networks networks)
      Parameters:
      networks - the networks to set
    • getKernel

      public Kernel getKernel()
      Returns:
      the kernel
    • setKernel

      public void setKernel(Kernel kernel)
      Parameters:
      kernel - the kernel to set
    • getCreatedDate

      public Date getCreatedDate()
      Returns:
      the createdDate
    • setCreatedDate

      public void setCreatedDate(Date createdDate)
      Parameters:
      createdDate - the createdDate to set
    • getFeatures

      public List<String> getFeatures()
      Returns:
      the features
    • setFeatures

      public void setFeatures(List<String> features)
      Parameters:
      features - the features to set
    • getEnableBackup

      public Boolean getEnableBackup()
      Returns:
      the enableBackup
    • setEnableBackup

      public void setEnableBackup(Boolean enableBackup)
      Parameters:
      enableBackup - the enableBackup to set
    • getEnableIpv6

      public Boolean getEnableIpv6()
      Returns:
      the enableIpv6
    • setEnableIpv6

      public void setEnableIpv6(Boolean enableIpv6)
      Parameters:
      enableIpv6 - the enableIpv6 to set
    • getEnablePrivateNetworking

      public Boolean getEnablePrivateNetworking()
      Returns:
      the enablePrivateNetworking
    • setEnablePrivateNetworking

      public void setEnablePrivateNetworking(Boolean enablePrivateNetworking)
      Parameters:
      enablePrivateNetworking - the enablePrivateNetworking to set
    • getBackupIds

      public List<Integer> getBackupIds()
      Returns:
      the backupIds
    • setBackupIds

      public void setBackupIds(List<Integer> backupIds)
      Parameters:
      backupIds - the backupIds to set
    • getSnapshotIds

      public List<Integer> getSnapshotIds()
      Returns:
      the snapshotIds
    • setSnapshotIds

      public void setSnapshotIds(List<Integer> snapshotIds)
      Parameters:
      snapshotIds - the snapshotIds to set
    • getKeys

      public List<Key> getKeys()
      Returns:
      the keys
    • setKeys

      public void setKeys(List<Key> keys)
      Parameters:
      keys - the keys to set
    • getUserData

      public String getUserData()
      Returns:
      the userData
    • setUserData

      public void setUserData(String userData)
      Parameters:
      userData - the userData to set
    • getVolumeIds

      public List<String> getVolumeIds()
      Returns:
      the volumeIds
    • setVolumeIds

      public void setVolumeIds(List<String> volumeIds)
      Parameters:
      volumeIds - the volumeIds to set
    • getTags

      public List<String> getTags()
      Returns:
      the tags
    • setTags

      public void setTags(List<String> tags)
      Parameters:
      tags - the tags to set
    • getInstallMonitoring

      public Boolean getInstallMonitoring()
      Returns:
      the installMonitoring
    • setInstallMonitoring

      public void setInstallMonitoring(Boolean installMonitoring)
      Parameters:
      installMonitoring - the installMonitoring to set