/** * Abiquo community edition * cloud management application for hybrid clouds * Copyright (C) 2008-2010 - Abiquo Holdings S.L. * * This application is free software; you can redistribute it and/or * modify it under the terms of the GNU LESSER GENERAL PUBLIC * LICENSE as published by the Free Software Foundation under * version 3 of the License * * This software 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 * LESSER GENERAL PUBLIC LICENSE v.3 for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ package com.abiquo.server.core.cloud; import java.math.BigDecimal; import javax.xml.bind.annotation.XmlRootElement; import com.abiquo.model.transport.SingleResourceTransportDto; import com.abiquo.server.core.infrastructure.DatacenterDto; @XmlRootElement(name = "virtualAppliancePrice") public class VirtualAppliancePriceDto extends SingleResourceTransportDto { /** * */ private static final long serialVersionUID = 1L; public static final String BASE_MEDIA_TYPE = "application/vnd.abiquo.virtualapplianceprice+xml"; public static final String MEDIA_TYPE = BASE_MEDIA_TYPE + "; version=" + API_VERSION; public VirtualAppliancePriceDto() { } public VirtualAppliancePriceDto(final BigDecimal costCodeCost, final BigDecimal computeCost, final BigDecimal networkCost, final BigDecimal storageCost, final BigDecimal additionalVolumCost, final BigDecimal totalCost) { super(); this.costCodeCost = costCodeCost; this.computeCost = computeCost; this.networkCost = networkCost; this.storageCost = storageCost; this.additionalVolumCost = additionalVolumCost; this.totalCost = totalCost; } /** Value for the image being deployed */ private BigDecimal costCodeCost; /** Value for the CPU, memory */ private BigDecimal computeCost; /** Value for public IPs */ private BigDecimal networkCost; /** Value for the datastore */ private BigDecimal storageCost; /** Value for the volume */ private BigDecimal additionalVolumCost; /** Value for deploy */ private BigDecimal standingCharge; /** Value total */ private BigDecimal totalCost; private Integer minimumCharge; private BigDecimal minimumChargePeriod; public BigDecimal getMinimumChargePeriod() { return minimumChargePeriod; } public void setMinimumChargePeriod(final BigDecimal minimumChargePeriod) { this.minimumChargePeriod = minimumChargePeriod; } public Integer getMinimumCharge() { return minimumCharge; } public void setMinimumCharge(final Integer minimumCharge) { this.minimumCharge = minimumCharge; } public BigDecimal getCostCodeCost() { return costCodeCost; } public void setCostCodeCost(final BigDecimal costCodeCost) { this.costCodeCost = costCodeCost; } public BigDecimal getComputeCost() { return computeCost; } public void setComputeCost(final BigDecimal computeCost) { this.computeCost = computeCost; } public BigDecimal getNetworkCost() { return networkCost; } public void setNetworkCost(final BigDecimal networkCost) { this.networkCost = networkCost; } public BigDecimal getStorageCost() { return storageCost; } public void setStorageCost(final BigDecimal storageCost) { this.storageCost = storageCost; } public BigDecimal getAdditionalVolumCost() { return additionalVolumCost; } public void setAdditionalVolumCost(final BigDecimal additionalVolumCost) { this.additionalVolumCost = additionalVolumCost; } public BigDecimal getStandingCharge() { return standingCharge; } public void setStandingCharge(final BigDecimal standingCharge) { this.standingCharge = standingCharge; } public BigDecimal getTotalCost() { return totalCost; } public void setTotalCost(final BigDecimal totalCost) { this.totalCost = totalCost; } @Override public String getMediaType() { return VirtualAppliancePriceDto.MEDIA_TYPE; } @Override public String getBaseMediaType() { return BASE_MEDIA_TYPE; } }