[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-software-products-rest / vendor-software-products-rest-types / src / main / java / org / openecomp / sdcrests / vendorsoftwareproducts / types / VmSizing.java
1 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
2
3 import org.openecomp.sdcrests.vendorsoftwareproducts.types.validation.ValidateString;
4
5 import javax.validation.constraints.Max;
6 import javax.validation.constraints.Min;
7
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 "
19       + "attribute value.")
20   private String cpuOverSubscriptionRatio;
21   @ValidateString(acceptedValues = {"1", "2", "4", "8"}, message = "doesn't meet the expected "
22       + "attribute value.")
23   private String memoryRAM;
24
25   public int getNumOfCPUs() {
26     return numOfCPUs;
27   }
28
29   public void setNumOfCPUs(int numOfCPUs) {
30     this.numOfCPUs = numOfCPUs;
31   }
32
33   public int getFileSystemSizeGB() {
34     return fileSystemSizeGB;
35   }
36
37   public void setFileSystemSizeGB(int fileSystemSizeGB) {
38     this.fileSystemSizeGB = fileSystemSizeGB;
39   }
40
41   public int getPersistentStorageVolumeSize() {
42     return persistentStorageVolumeSize;
43   }
44
45   public void setPersistentStorageVolumeSize(int persistentStorageVolumeSize) {
46     this.persistentStorageVolumeSize = persistentStorageVolumeSize;
47   }
48
49   public int getIoOperationsPerSec() {
50     return ioOperationsPerSec;
51   }
52
53   public void setIoOperationsPerSec(int ioOperationsPerSec) {
54     this.ioOperationsPerSec = ioOperationsPerSec;
55   }
56
57   public String getCpuOverSubscriptionRatio() {
58     return cpuOverSubscriptionRatio;
59   }
60
61   public void setCpuOverSubscriptionRatio(String cpuOverSubscriptionRatio) {
62     this.cpuOverSubscriptionRatio = cpuOverSubscriptionRatio;
63   }
64
65   public String getMemoryRAM() {
66     return memoryRAM;
67   }
68
69   public void setMemoryRAM(String memoryRAM) {
70     this.memoryRAM = memoryRAM;
71   }
72 }