public class VMwareVMPowerAction
extends java.lang.Object
To perform power action on the VM/instance.
This task is used to perform the power actions on the VMs/instance like Power On or Off Reboot, Delete VM & Shutdown Guest.
Modifier | Constructor and Description |
---|---|
protected |
VMwareVMPowerAction() |
|
VMwareVMPowerAction(CuicServer server) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
CuicServer |
getCuicServer() |
java.lang.String |
getVmAction() |
int |
getVmId() |
void |
setCuicServer(CuicServer api) |
void |
setVmAction(java.lang.String vmAction)
VM Action
|
void |
setVmId(int vmId)
Select the on which to perform the action
Accepts value from list type vm
|
protected VMwareVMPowerAction()
public VMwareVMPowerAction(CuicServer server)
public void setCuicServer(CuicServer api)
public CuicServer getCuicServer()
public int getVmId()
public java.lang.String getVmAction()
public void setVmId(int vmId)
public void setVmAction(java.lang.String vmAction)
public void execute() throws java.lang.Exception
java.lang.Exception