Package com.myjeeva.digitalocean.pojo
Class Droplet
java.lang.Object
com.myjeeva.digitalocean.pojo.RateLimitBase
com.myjeeva.digitalocean.pojo.Base
com.myjeeva.digitalocean.pojo.Droplet
- All Implemented Interfaces:
Serializable
Represents Droplet 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 TypeMethodDescriptiongetId()getImage()getKeys()getName()getNames()getSize()getTags()booleanisActive()booleanbooleanisLocked()booleanisNew()booleanisOff()voidsetBackupIds(List<Integer> backupIds) voidsetCreatedDate(Date createdDate) voidsetDiskSize(Integer diskSize) voidsetEnableBackup(Boolean enableBackup) voidsetEnableIpv6(Boolean enableIpv6) voidsetEnablePrivateNetworking(Boolean enablePrivateNetworking) voidsetFeatures(List<String> features) voidvoidvoidsetInstallMonitoring(Boolean installMonitoring) voidvoidvoidsetLocked(boolean locked) voidsetMemorySizeInMb(Integer memorySizeInMb) voidvoidvoidsetNetworks(Networks networks) voidvoidvoidsetSnapshotIds(List<Integer> snapshotIds) voidsetStatus(DropletStatus status) voidvoidsetUserData(String userData) voidsetVirutalCpuCount(Integer virutalCpuCount) voidsetVolumeIds(List<String> volumeIds) 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
-
Droplet
public Droplet()
-
-
Method Details
-
toString
-
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
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getNames
- Returns:
- the names
-
setNames
- Parameters:
names- the names 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
-
getRegion
- Returns:
- the region
-
setRegion
- Parameters:
region- the region to set
-
getImage
- Returns:
- the image
-
setImage
- Parameters:
image- the image to set
-
getSize
- Returns:
- the size
-
setSize
- 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
- Returns:
- the status
-
setStatus
- Parameters:
status- the status to set
-
getNetworks
- Returns:
- the networks
-
setNetworks
- Parameters:
networks- the networks to set
-
getKernel
- Returns:
- the kernel
-
setKernel
- Parameters:
kernel- the kernel to set
-
getCreatedDate
- Returns:
- the createdDate
-
setCreatedDate
- Parameters:
createdDate- the createdDate to set
-
getFeatures
- Returns:
- the features
-
setFeatures
- Parameters:
features- the features to set
-
getEnableBackup
- Returns:
- the enableBackup
-
setEnableBackup
- Parameters:
enableBackup- the enableBackup to set
-
getEnableIpv6
- Returns:
- the enableIpv6
-
setEnableIpv6
- Parameters:
enableIpv6- the enableIpv6 to set
-
getEnablePrivateNetworking
- Returns:
- the enablePrivateNetworking
-
setEnablePrivateNetworking
- Parameters:
enablePrivateNetworking- the enablePrivateNetworking to set
-
getBackupIds
- Returns:
- the backupIds
-
setBackupIds
- Parameters:
backupIds- the backupIds to set
-
getSnapshotIds
- Returns:
- the snapshotIds
-
setSnapshotIds
- Parameters:
snapshotIds- the snapshotIds to set
-
getKeys
- Returns:
- the keys
-
setKeys
- Parameters:
keys- the keys to set
-
getUserData
- Returns:
- the userData
-
setUserData
- Parameters:
userData- the userData to set
-
getVolumeIds
- Returns:
- the volumeIds
-
setVolumeIds
- Parameters:
volumeIds- the volumeIds to set
-
getTags
- Returns:
- the tags
-
setTags
- Parameters:
tags- the tags to set
-
getInstallMonitoring
- Returns:
- the installMonitoring
-
setInstallMonitoring
- Parameters:
installMonitoring- the installMonitoring to set
-