public class ControlPowerRequest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ControlPowerRequest.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
ControlPowerRequest() |
ControlPowerRequest(java.lang.String action,
Optional<java.lang.String> wakeupDelay,
java.lang.Boolean force) |
Modifier and Type | Method and Description |
---|---|
ControlPowerRequest.Builder |
asBuilder() |
static ControlPowerRequest.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAction()
The action to take (Must be either Halt or Restart).
|
java.lang.Boolean |
getForce()
Required for the command to succeed.
|
Optional<java.lang.String> |
getWakeupDelay()
The delay in seconds to wait before powering on.
|
int |
hashCode() |
void |
setAction(java.lang.String action) |
void |
setForce(java.lang.Boolean force) |
void |
setWakeupDelay(Optional<java.lang.String> wakeupDelay) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
public java.lang.String getAction()
public void setAction(java.lang.String action)
public Optional<java.lang.String> getWakeupDelay()
public void setWakeupDelay(Optional<java.lang.String> wakeupDelay)
public java.lang.Boolean getForce()
public void setForce(java.lang.Boolean force)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.lang.String toString()
toString
in class java.lang.Object
public static ControlPowerRequest.Builder builder()
public final ControlPowerRequest.Builder asBuilder()