1 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
3 import org.openecomp.sdcrests.vendorsoftwareproducts.types.validation.ValidateString;
5 import javax.validation.constraints.Max;
6 import javax.validation.constraints.Min;
8 public class VmSizing {
9 @Min(value = 1, message = "should be integer and > 0")
10 @Max(value = 16, message = "should be integer and <= 16")
11 private int numOfCPUs;
12 @Min(value = 1, message = "should be integer and > 0")
13 private int fileSystemSizeGB;
14 @Min(value = 1, message = "should be integer and > 0")
15 private int persistentStorageVolumeSize;
16 @Min(value = 1, message = "should be integer and > 0")
17 private int ioOperationsPerSec;
18 @ValidateString(acceptedValues = {"1:1", "4:1", "16:1"}, message = "doesn't meet the expected "
20 private String cpuOverSubscriptionRatio;
21 @ValidateString(acceptedValues = {"1", "2", "4", "8"}, message = "doesn't meet the expected "
23 private String memoryRAM;
25 public int getNumOfCPUs() {
29 public void setNumOfCPUs(int numOfCPUs) {
30 this.numOfCPUs = numOfCPUs;
33 public int getFileSystemSizeGB() {
34 return fileSystemSizeGB;
37 public void setFileSystemSizeGB(int fileSystemSizeGB) {
38 this.fileSystemSizeGB = fileSystemSizeGB;
41 public int getPersistentStorageVolumeSize() {
42 return persistentStorageVolumeSize;
45 public void setPersistentStorageVolumeSize(int persistentStorageVolumeSize) {
46 this.persistentStorageVolumeSize = persistentStorageVolumeSize;
49 public int getIoOperationsPerSec() {
50 return ioOperationsPerSec;
53 public void setIoOperationsPerSec(int ioOperationsPerSec) {
54 this.ioOperationsPerSec = ioOperationsPerSec;
57 public String getCpuOverSubscriptionRatio() {
58 return cpuOverSubscriptionRatio;
61 public void setCpuOverSubscriptionRatio(String cpuOverSubscriptionRatio) {
62 this.cpuOverSubscriptionRatio = cpuOverSubscriptionRatio;
65 public String getMemoryRAM() {
69 public void setMemoryRAM(String memoryRAM) {
70 this.memoryRAM = memoryRAM;