/** * Copyright (C) 2010 Cloud.com, Inc. All rights reserved. * * This software is licensed under the GNU General Public License v3 or later. * * It is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ package com.cloud.api.response; import java.util.Date; import com.cloud.api.ApiConstants; import com.cloud.serializer.Param; import com.google.gson.annotations.SerializedName; public class VolumeResponse extends BaseResponse { @SerializedName(ApiConstants.ID) @Param(description="ID of the disk volume") private Long id; @SerializedName(ApiConstants.JOB_ID) @Param(description="shows the current pending asynchronous job ID. This tag is not returned if no current pending jobs are acting on the volume") private Long jobId; @SerializedName("jobstatus") @Param(description="shows the current pending asynchronous job status") private Integer jobStatus; @SerializedName(ApiConstants.NAME) @Param(description="name of the disk volume") private String name; @SerializedName(ApiConstants.ZONE_ID) @Param(description="ID of the availability zone") private Long zoneId; @SerializedName("zonename") @Param(description="name of the availability zone") private String zoneName; @SerializedName(ApiConstants.TYPE) @Param(description="type of the disk volume (ROOT or DATADISK)") private String volumeType; @SerializedName(ApiConstants.DEVICE_ID) @Param(description="the ID of the device on user vm the volume is attahed to. This tag is not returned when the volume is detached.") private Long deviceId; @SerializedName(ApiConstants.VIRTUAL_MACHINE_ID) @Param(description="id of the virtual machine") private Long virtualMachineId; @SerializedName("vmname") @Param(description="name of the virtual machine") private String virtualMachineName; @SerializedName("vmdisplayname") @Param(description="display name of the virtual machine") private String virtualMachineDisplayName; @SerializedName("vmstate") @Param(description="state of the virtual machine") private String virtualMachineState; @SerializedName(ApiConstants.SIZE) @Param(description="size of the disk volume") private Long size; @SerializedName(ApiConstants.CREATED) @Param(description="the date the disk volume was created") private Date created; @SerializedName(ApiConstants.STATE) @Param(description="the state of the disk volume") private String state; @SerializedName(ApiConstants.ACCOUNT) @Param(description="the account associated with the disk volume") private String accountName; @SerializedName(ApiConstants.DOMAIN_ID) @Param(description="the ID of the domain associated with the disk volume") private Long domainId; @SerializedName(ApiConstants.DOMAIN) @Param(description="the domain associated with the disk volume") private String domainName; @SerializedName("storagetype") @Param(description="shared or local storage") private String storageType; @SerializedName("sourceid") private Long sourceId; @SerializedName("sourcetype") private String sourceType; @SerializedName(ApiConstants.HYPERVISOR) private String hypervisor; @SerializedName(ApiConstants.DISK_OFFERING_ID) @Param(description="ID of the disk offering") private Long diskOfferingId; @SerializedName("diskofferingname") @Param(description="name of the disk offering") private String diskOfferingName; @SerializedName("diskofferingdisplaytext") @Param(description="the display text of the disk offering") private String diskOfferingDisplayText; @SerializedName("storage") @Param(description="name of the primary storage hosting the disk volume") private String storagePoolName; @SerializedName(ApiConstants.SNAPSHOT_ID) @Param(description="ID of the snapshot from which this volume was created") private Long snapshotId; @SerializedName("attached") @Param(description="the date the volume was attached to a VM instance") private Date attached; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getJobId() { return jobId; } public void setJobId(Long jobId) { this.jobId = jobId; } public Integer getJobStatus() { return jobStatus; } public void setJobStatus(Integer jobStatus) { this.jobStatus = jobStatus; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Long getZoneId() { return zoneId; } public void setZoneId(Long zoneId) { this.zoneId = zoneId; } public String getZoneName() { return zoneName; } public void setZoneName(String zoneName) { this.zoneName = zoneName; } public String getVolumeType() { return volumeType; } public void setVolumeType(String volumeType) { this.volumeType = volumeType; } public Long getDeviceId() { return deviceId; } public void setDeviceId(Long deviceId) { this.deviceId = deviceId; } public Long getVirtualMachineId() { return virtualMachineId; } public void setVirtualMachineId(Long virtualMachineId) { this.virtualMachineId = virtualMachineId; } public String getVirtualMachineName() { return virtualMachineName; } public void setVirtualMachineName(String virtualMachineName) { this.virtualMachineName = virtualMachineName; } public String getVirtualMachineDisplayName() { return virtualMachineDisplayName; } public void setVirtualMachineDisplayName(String virtualMachineDisplayName) { this.virtualMachineDisplayName = virtualMachineDisplayName; } public String getVirtualMachineState() { return virtualMachineState; } public void setVirtualMachineState(String virtualMachineState) { this.virtualMachineState = virtualMachineState; } public Long getSize() { return size; } public void setSize(Long size) { this.size = size; } public Date getCreated() { return created; } public void setCreated(Date created) { this.created = created; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getAccountName() { return accountName; } public void setAccountName(String accountName) { this.accountName = accountName; } public Long getDomainId() { return domainId; } public void setDomainId(Long domainId) { this.domainId = domainId; } public String getDomainName() { return domainName; } public void setDomainName(String domainName) { this.domainName = domainName; } public String getStorageType() { return storageType; } public void setStorageType(String storageType) { this.storageType = storageType; } public Long getSourceId() { return sourceId; } public void setSourceId(Long sourceId) { this.sourceId = sourceId; } public String getSourceType() { return sourceType; } public void setSourceType(String sourceType) { this.sourceType = sourceType; } public String getHypervisor() { return hypervisor; } public void setHypervisor(String hypervisor) { this.hypervisor = hypervisor; } public Long getDiskOfferingId() { return diskOfferingId; } public void setDiskOfferingId(Long diskOfferingId) { this.diskOfferingId = diskOfferingId; } public String getDiskOfferingName() { return diskOfferingName; } public void setDiskOfferingName(String diskOfferingName) { this.diskOfferingName = diskOfferingName; } public String getDiskOfferingDisplayText() { return diskOfferingDisplayText; } public void setDiskOfferingDisplayText(String diskOfferingDisplayText) { this.diskOfferingDisplayText = diskOfferingDisplayText; } public String getStoragePoolName() { return storagePoolName; } public void setStoragePoolName(String storagePoolName) { this.storagePoolName = storagePoolName; } public Long getSnapshotId() { return snapshotId; } public void setSnapshotId(Long snapshotId) { this.snapshotId = snapshotId; } public Date getAttached() { return attached; } public void setAttached(Date attached) { this.attached = attached; } }