com.liberologico.cloudesire.cmw.model.dto.VirtualMachineConfigurationDTO Maven / Gradle / Ivy
The newest version!
package com.liberologico.cloudesire.cmw.model.dto;
import com.liberologico.cloudesire.common.enums.OSType;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class VirtualMachineConfigurationDTO extends NamedEntityDTO
{
@NotNull
private BigDecimal cpu;
// Initial ram configuration, in MB.
@NotNull
private Integer ram;
// In GB, Predefined disk space to be allocated as user data
@NotNull
private Integer diskSpace;
@Valid
private Set productVersions;
@Valid
private List applicationFile = new ArrayList<>();
@Valid
private List stableApplications = new ArrayList<>();
@Valid
private List latestApplications = new ArrayList<>();
private boolean gpu = false;
private OSType osType = OSType.UBUNTU_12_04;
public BigDecimal getCpu()
{
return cpu;
}
public void setCpu( BigDecimal cpu )
{
this.cpu = cpu;
}
public Integer getRam()
{
return ram;
}
public void setRam( Integer ram )
{
this.ram = ram;
}
public Integer getDiskSpace()
{
return diskSpace;
}
public void setDiskSpace( Integer diskSpace )
{
this.diskSpace = diskSpace;
}
public Set getProductVersions()
{
return productVersions;
}
public void setProductVersions( Set productVersions )
{
this.productVersions = productVersions;
}
public List getApplicationFile()
{
return applicationFile;
}
public void setApplicationFile( List applicationFile )
{
this.applicationFile = applicationFile;
}
public boolean isGpu()
{
return gpu;
}
public void setGpu( boolean gpu )
{
this.gpu = gpu;
}
public OSType getOsType()
{
return osType;
}
public void setOsType( OSType osType )
{
this.osType = osType;
}
@Deprecated
public List getActiveApplicationFile()
{
return stableApplications;
}
@Deprecated
public void setActiveApplicationFile( List activeApplicationFile )
{
this.stableApplications = activeApplicationFile;
}
public List getStableApplications()
{
return stableApplications;
}
public void setStableApplications( List stableApplications )
{
this.stableApplications = stableApplications;
}
public List getLatestApplications()
{
return latestApplications;
}
public void setLatestApplications( List latestApplications )
{
this.latestApplications = latestApplications;
}
}