@@ -31,8 +31,8 @@ public class VirtualMachineTO {
3131 private String name ;
3232 private BootloaderType bootloader ;
3333 private VirtualMachine .State state ;
34- Type type ;
35- int cpus ;
34+ private Type type ;
35+ private int cpus ;
3636
3737 /**
3838 'speed' is still here since 4.0.X/4.1.X management servers do not support
@@ -43,50 +43,51 @@ public class VirtualMachineTO {
4343 So this is here for backwards compatibility with 4.0.X/4.1.X management servers
4444 and newer agents.
4545 */
46- Integer speed ;
47- Integer minSpeed ;
48- Integer maxSpeed ;
49-
50- long minRam ;
51- long maxRam ;
52- String hostName ;
53- String arch ;
54- String os ;
55- String platformEmulator ;
56- String bootArgs ;
57- String [] bootupScripts ;
58- boolean enableHA ;
59- boolean limitCpuUse ;
60- boolean enableDynamicallyScaleVm ;
46+ private Integer speed ;
47+ private Integer minSpeed ;
48+ private Integer maxSpeed ;
49+
50+ private long minRam ;
51+ private long maxRam ;
52+ private String hostName ;
53+ private String arch ;
54+ private String os ;
55+ private String platformEmulator ;
56+ private String bootArgs ;
57+ private String [] bootupScripts ;
58+ private boolean enableHA ;
59+ private boolean limitCpuUse ;
60+ private boolean enableDynamicallyScaleVm ;
6161 @ LogLevel (LogLevel .Log4jLevel .Off )
62- String vncPassword ;
63- String vncAddr ;
64- Map <String , String > details ;
65- String uuid ;
66- String bootType ;
67- String bootMode ;
68- boolean enterHardwareSetup ;
69-
70- String tpmversion ;
71- DiskTO [] disks ;
72- NicTO [] nics ;
73- GPUDeviceTO gpuDevice ;
74- Integer vcpuMaxLimit ;
75- List <String []> vmData = null ;
76-
77- String configDriveLabel = null ;
78- String configDriveIsoRootFolder = null ;
79- String configDriveIsoFile = null ;
80- NetworkElement .Location configDriveLocation = NetworkElement .Location .SECONDARY ;
81-
82- Double cpuQuotaPercentage = null ;
83-
84- Map <String , String > guestOsDetails = new HashMap <String , String >();
85- Map <String , String > extraConfig = new HashMap <>();
86- Map <Long , String > networkIdToNetworkNameMap = new HashMap <>();
87- DeployAsIsInfoTO deployAsIsInfo ;
88- String metadataManufacturer ;
89- String metadataProductName ;
62+ private String vncPassword ;
63+ private String vncAddr ;
64+ private Map <String , String > details ;
65+ private Map <String , String > params ;
66+ private String uuid ;
67+ private String bootType ;
68+ private String bootMode ;
69+ private boolean enterHardwareSetup ;
70+
71+ private String tpmversion ;
72+ private DiskTO [] disks ;
73+ private NicTO [] nics ;
74+ private GPUDeviceTO gpuDevice ;
75+ private Integer vcpuMaxLimit ;
76+ private List <String []> vmData = null ;
77+
78+ private String configDriveLabel = null ;
79+ private String configDriveIsoRootFolder = null ;
80+ private String configDriveIsoFile = null ;
81+ private NetworkElement .Location configDriveLocation = NetworkElement .Location .SECONDARY ;
82+
83+ private Double cpuQuotaPercentage = null ;
84+
85+ private Map <String , String > guestOsDetails = new HashMap <String , String >();
86+ private Map <String , String > extraConfig = new HashMap <>();
87+ private Map <Long , String > networkIdToNetworkNameMap = new HashMap <>();
88+ private DeployAsIsInfoTO deployAsIsInfo ;
89+ private String metadataManufacturer ;
90+ private String metadataProductName ;
9091
9192 public VirtualMachineTO (long id , String instanceName , VirtualMachine .Type type , int cpus , Integer speed , long minRam , long maxRam , BootloaderType bootloader ,
9293 String os , boolean enableHA , boolean limitCpuUse , String vncPassword ) {
@@ -261,6 +262,10 @@ public void setBootupScripts(String[] bootupScripts) {
261262 this .bootupScripts = bootupScripts ;
262263 }
263264
265+ public void setEnableHA (boolean enableHA ) {
266+ this .enableHA = enableHA ;
267+ }
268+
264269 public DiskTO [] getDisks () {
265270 return disks ;
266271 }
@@ -444,6 +449,42 @@ public void setDeployAsIsInfo(DeployAsIsInfoTO deployAsIsInfo) {
444449 this .deployAsIsInfo = deployAsIsInfo ;
445450 }
446451
452+ public void setSpeed (Integer speed ) {
453+ this .speed = speed ;
454+ }
455+
456+ public void setMinSpeed (Integer minSpeed ) {
457+ this .minSpeed = minSpeed ;
458+ }
459+
460+ public void setMaxSpeed (Integer maxSpeed ) {
461+ this .maxSpeed = maxSpeed ;
462+ }
463+
464+ public void setMinRam (long minRam ) {
465+ this .minRam = minRam ;
466+ }
467+
468+ public void setMaxRam (long maxRam ) {
469+ this .maxRam = maxRam ;
470+ }
471+
472+ public void setLimitCpuUse (boolean limitCpuUse ) {
473+ this .limitCpuUse = limitCpuUse ;
474+ }
475+
476+ public Map <String , String > getParams () {
477+ return params ;
478+ }
479+
480+ public void setParams (Map <String , String > params ) {
481+ this .params = params ;
482+ }
483+
484+ public void setExtraConfig (Map <String , String > extraConfig ) {
485+ this .extraConfig = extraConfig ;
486+ }
487+
447488 public String getMetadataManufacturer () {
448489 return metadataManufacturer ;
449490 }
0 commit comments