ValidationThreshold Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. ValidationThreshold
- com.
Implements
public final class ValidationThreshold
implements JsonSerializable<ValidationThreshold>
ValidationThreshold indicates allowed machine and node hardware and deployment failures.
Constructor Summary
| Constructor | Description |
|---|---|
| ValidationThreshold() |
Creates an instance of Validation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Validation |
fromJson(JsonReader jsonReader)
Reads an instance of Validation |
|
Validation |
grouping()
Get the grouping property: Selection of how the type evaluation is applied to the cluster calculation. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Validation |
type()
Get the type property: Selection of how the threshold should be evaluated. |
| void |
validate()
Validates the instance. |
| long |
value()
Get the value property: The numeric threshold value. |
|
Validation |
withGrouping(ValidationThresholdGrouping grouping)
Set the grouping property: Selection of how the type evaluation is applied to the cluster calculation. |
|
Validation |
withType(ValidationThresholdType type)
Set the type property: Selection of how the threshold should be evaluated. |
|
Validation |
withValue(long value)
Set the value property: The numeric threshold value. |
Methods inherited from java.lang.Object
Constructor Details
ValidationThreshold
public ValidationThreshold()
Creates an instance of ValidationThreshold class.
Method Details
fromJson
public static ValidationThreshold fromJson(JsonReader jsonReader)
Reads an instance of ValidationThreshold from the JsonReader.
Parameters:
Returns:
Throws:
grouping
public ValidationThresholdGrouping grouping()
Get the grouping property: Selection of how the type evaluation is applied to the cluster calculation.
Returns:
toJson
type
public ValidationThresholdType type()
Get the type property: Selection of how the threshold should be evaluated.
Returns:
validate
public void validate()
Validates the instance.
value
public long value()
Get the value property: The numeric threshold value.
Returns:
withGrouping
public ValidationThreshold withGrouping(ValidationThresholdGrouping grouping)
Set the grouping property: Selection of how the type evaluation is applied to the cluster calculation.
Parameters:
Returns:
withType
public ValidationThreshold withType(ValidationThresholdType type)
Set the type property: Selection of how the threshold should be evaluated.
Parameters:
Returns:
withValue
public ValidationThreshold withValue(long value)
Set the value property: The numeric threshold value.
Parameters:
Returns: