Package com.exoscale.sdk.model
Class NodeDuressSettings
- java.lang.Object
-
- com.exoscale.sdk.model.NodeDuressSettings
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class NodeDuressSettings extends Object
NodeDuressSettings
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_CPU_THRESHOLD
static String
JSON_PROPERTY_HEAP_THRESHOLD
static String
JSON_PROPERTY_NUM_SUCCESSIVE_BREACHES
-
Constructor Summary
Constructors Constructor Description NodeDuressSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeDuressSettings
cpuThreshold(BigDecimal cpuThreshold)
boolean
equals(Object o)
Return true if this Node_duress_settings object is equal to o.BigDecimal
getCpuThreshold()
The CPU usage threshold (as a percentage) required for a node to be considered to be under duress.BigDecimal
getHeapThreshold()
The heap usage threshold (as a percentage) required for a node to be considered to be under duress.Integer
getNumSuccessiveBreaches()
The number of successive limit breaches after which the node is considered to be under duress.int
hashCode()
NodeDuressSettings
heapThreshold(BigDecimal heapThreshold)
NodeDuressSettings
numSuccessiveBreaches(Integer numSuccessiveBreaches)
void
setCpuThreshold(BigDecimal cpuThreshold)
void
setHeapThreshold(BigDecimal heapThreshold)
void
setNumSuccessiveBreaches(Integer numSuccessiveBreaches)
String
toString()
String
toUrlQueryString()
Convert the instance into URL query string.String
toUrlQueryString(String prefix)
Convert the instance into URL query string.
-
-
-
Field Detail
-
JSON_PROPERTY_CPU_THRESHOLD
public static final String JSON_PROPERTY_CPU_THRESHOLD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEAP_THRESHOLD
public static final String JSON_PROPERTY_HEAP_THRESHOLD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUM_SUCCESSIVE_BREACHES
public static final String JSON_PROPERTY_NUM_SUCCESSIVE_BREACHES
- See Also:
- Constant Field Values
-
-
Method Detail
-
cpuThreshold
public NodeDuressSettings cpuThreshold(BigDecimal cpuThreshold)
-
getCpuThreshold
@Nullable public BigDecimal getCpuThreshold()
The CPU usage threshold (as a percentage) required for a node to be considered to be under duress. Default is 0.9 minimum: 0.0 maximum: 1.0- Returns:
- cpuThreshold
-
setCpuThreshold
public void setCpuThreshold(BigDecimal cpuThreshold)
-
heapThreshold
public NodeDuressSettings heapThreshold(BigDecimal heapThreshold)
-
getHeapThreshold
@Nullable public BigDecimal getHeapThreshold()
The heap usage threshold (as a percentage) required for a node to be considered to be under duress. Default is 0.7 minimum: 0.0 maximum: 1.0- Returns:
- heapThreshold
-
setHeapThreshold
public void setHeapThreshold(BigDecimal heapThreshold)
-
numSuccessiveBreaches
public NodeDuressSettings numSuccessiveBreaches(Integer numSuccessiveBreaches)
-
getNumSuccessiveBreaches
@Nullable public Integer getNumSuccessiveBreaches()
The number of successive limit breaches after which the node is considered to be under duress. Default is 3 minimum: 1- Returns:
- numSuccessiveBreaches
-
setNumSuccessiveBreaches
public void setNumSuccessiveBreaches(Integer numSuccessiveBreaches)
-
equals
public boolean equals(Object o)
Return true if this Node_duress_settings object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-