All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.myjeeva.digitalocean.pojo.Volume Maven / Gradle / Ivy

There is a newer version: 2.17
Show newest version
/**
 * Copyright (c) Jeevanandam M. (https://github.com/jeevatkm)
 * 
 * digitalocean-api-client source code and usage is governed by a MIT style license that can be
 * found in the LICENSE file
 */

package com.myjeeva.digitalocean.pojo;

import java.util.Date;
import java.util.Set;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import com.google.gson.annotations.SerializedName;

/**
 * Represents Block Storage attributes of DigitalOcean.
 * 
 * 

* Block Storage volumes provide expanded storage capacity for your Droplets. *

* * @author Eugene Strokin (https://github.com/strokine) * * @since v2.7 */ public class Volume extends RateLimitBase { private static final long serialVersionUID = 3274091633535612517L; private String id; private Region region; @SerializedName("droplet_ids") private Set dropletIds; private String name; private String description; @SerializedName("size_gigabytes") private Double size; @SerializedName("created_at") private Date createdDate; @Override public String toString() { return ReflectionToStringBuilder.toString(this); } /** * @return the id */ public String getId() { return id; } /** * @param id the id to set */ public void setId(String id) { this.id = id; } /** * @return the region */ public Region getRegion() { return region; } /** * @param region the region to set */ public void setRegion(Region region) { this.region = region; } /** * @return the dropletIds */ public Set getDropletIds() { return dropletIds; } /** * @param dropletIds the dropletIds to set */ public void setDropletIds(Set dropletIds) { this.dropletIds = dropletIds; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the description */ public String getDescription() { return description; } /** * @param description the description to set */ public void setDescription(String description) { this.description = description; } /** * @return the size in Gigabytes */ public Double getSize() { return size; } /** * @param size the size to set */ public void setSize(Double size) { this.size = size; } /** * @return the createdDate */ public Date getCreatedDate() { return createdDate; } /** * @param createdDate the createdDate to set */ public void setCreatedDate(Date createdDate) { this.createdDate = createdDate; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy