DigitalOcean API Client in Java

com.myjeeva.digitalocean.pojo
Class Droplet

java.lang.Object
  extended by com.myjeeva.digitalocean.pojo.Droplet

public class Droplet
extends Object

Represents Droplet attributes of DigitalOcean

Author:
Jeevanandam M. ([email protected])

Constructor Summary
Droplet()
           
 
Method Summary
 List<Backup> getBackups()
           
 Date getCreatedDate()
           
 Long getEventId()
           
 Integer getId()
           
 Integer getImageId()
           
 String getIpAddress()
           
 String getName()
           
 String getPrivateIpAddress()
           
 Integer getRegionId()
           
 Integer getSizeId()
           
 List<Snapshot> getSnapshots()
           
 String getStatus()
           
 boolean isActive()
           
 boolean isArchived()
           
 boolean isBackupsActive()
           
 boolean isLocked()
           
 boolean isNew()
           
 boolean isOff()
           
 void setBackups(List<Backup> backups)
           
 void setBackupsActive(boolean backupsActive)
           
 void setCreatedDate(Date createdDate)
           
 void setEventId(Long eventId)
           
 void setId(Integer id)
           
 void setImageId(Integer imageId)
           
 void setIpAddress(String ipAddress)
           
 void setLocked(boolean locked)
           
 void setName(String name)
           
 void setPrivateIpAddress(String privateIpAddress)
           
 void setRegionId(Integer regionId)
           
 void setSizeId(Integer sizeId)
           
 void setSnapshots(List<Snapshot> snapshots)
           
 void setStatus(String status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Droplet

public Droplet()
Method Detail

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

getImageId

public Integer getImageId()
Returns:
the imageId

setImageId

public void setImageId(Integer imageId)
Parameters:
imageId - the imageId to set

getRegionId

public Integer getRegionId()
Returns:
the regionId

setRegionId

public void setRegionId(Integer regionId)
Parameters:
regionId - the regionId to set

getSizeId

public Integer getSizeId()
Returns:
the sizeId

setSizeId

public void setSizeId(Integer sizeId)
Parameters:
sizeId - the sizeId to set

isBackupsActive

public boolean isBackupsActive()
Returns:
the backupsActive

setBackupsActive

public void setBackupsActive(boolean backupsActive)
Parameters:
backupsActive - the backupsActive to set

getBackups

public List<Backup> getBackups()
Returns:
the backups

setBackups

public void setBackups(List<Backup> backups)
Parameters:
backups - the backups to set

getSnapshots

public List<Snapshot> getSnapshots()
Returns:
the snapshots

setSnapshots

public void setSnapshots(List<Snapshot> snapshots)
Parameters:
snapshots - the snapshots to set

getIpAddress

public String getIpAddress()
Returns:
the ipAddress

setIpAddress

public void setIpAddress(String ipAddress)
Parameters:
ipAddress - the ipAddress to set

getPrivateIpAddress

public String getPrivateIpAddress()
Returns:
the privateIpAddress

setPrivateIpAddress

public void setPrivateIpAddress(String privateIpAddress)
Parameters:
privateIpAddress - the privateIpAddress to set

isLocked

public boolean isLocked()
Returns:
the locked

setLocked

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

getStatus

public String getStatus()
Returns:
the status

setStatus

public void setStatus(String status)
Parameters:
status - the status to set

getCreatedDate

public Date getCreatedDate()
Returns:
the createdDate

setCreatedDate

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

getEventId

public Long getEventId()
Returns:
the eventId

setEventId

public void setEventId(Long eventId)
Parameters:
eventId - the eventId to set

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

DigitalOcean API Client in Java

Copyright © 2014 myjeeva blog, All rights reserved.

The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons Attribution-Share Alike 3.0 Unported License. Libraries and code snippets on myjeeva blog has license information.