public class EnableMaintenanceModeRequest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
EnableMaintenanceModeRequest.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
EnableMaintenanceModeRequest() |
EnableMaintenanceModeRequest(java.lang.Long[] nodes,
Optional<java.lang.Long> perMinutePrimarySwapLimit,
Optional<java.lang.String> timeout,
Optional<java.lang.Boolean> forceWithUnresolvedFaults) |
Modifier and Type | Method and Description |
---|---|
EnableMaintenanceModeRequest.Builder |
asBuilder() |
static EnableMaintenanceModeRequest.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Optional<java.lang.Boolean> |
getForceWithUnresolvedFaults()
Force maintenance mode to be enabled even with blocking cluster faults present.
|
java.lang.Long[] |
getNodes()
List of NodeIDs to put in maintenance mode
|
Optional<java.lang.Long> |
getPerMinutePrimarySwapLimit()
Number of primaries to swap per minute.
|
Optional<java.lang.String> |
getTimeout()
How long to allow maintenance mode to remain enabled before automatically disabling.
|
int |
hashCode() |
void |
setForceWithUnresolvedFaults(Optional<java.lang.Boolean> forceWithUnresolvedFaults) |
void |
setNodes(java.lang.Long[] nodes) |
void |
setPerMinutePrimarySwapLimit(Optional<java.lang.Long> perMinutePrimarySwapLimit) |
void |
setTimeout(Optional<java.lang.String> timeout) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
public java.lang.Long[] getNodes()
public void setNodes(java.lang.Long[] nodes)
public Optional<java.lang.Long> getPerMinutePrimarySwapLimit()
public void setPerMinutePrimarySwapLimit(Optional<java.lang.Long> perMinutePrimarySwapLimit)
public Optional<java.lang.String> getTimeout()
public void setTimeout(Optional<java.lang.String> timeout)
public Optional<java.lang.Boolean> getForceWithUnresolvedFaults()
public void setForceWithUnresolvedFaults(Optional<java.lang.Boolean> forceWithUnresolvedFaults)
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 EnableMaintenanceModeRequest.Builder builder()
public final EnableMaintenanceModeRequest.Builder asBuilder()