public class HyperVVMPowerAction
extends java.lang.Object
To perform action on the HyperV instance.
This task is used to perform the power actions on the HyperV instance like Power On, Off, Pause, Resume, Reboot, Archive, Restore, Shutdown, Terminate.
Modifier | Constructor and Description |
---|---|
protected |
HyperVVMPowerAction() |
|
HyperVVMPowerAction(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 VM on which to perform the action
Accepts value from list type vm
|
protected HyperVVMPowerAction()
public HyperVVMPowerAction(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