ValidationThreshold Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.ValidationThreshold

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 ValidationThreshold class.

Method Summary

Modifier and Type Method and Description
static ValidationThreshold fromJson(JsonReader jsonReader)

Reads an instance of ValidationThreshold from the JsonReader.

ValidationThresholdGrouping grouping()

Get the grouping property: Selection of how the type evaluation is applied to the cluster calculation.

JsonWriter toJson(JsonWriter jsonWriter)
ValidationThresholdType 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.

ValidationThreshold withGrouping(ValidationThresholdGrouping grouping)

Set the grouping property: Selection of how the type evaluation is applied to the cluster calculation.

ValidationThreshold withType(ValidationThresholdType type)

Set the type property: Selection of how the threshold should be evaluated.

ValidationThreshold 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:

jsonReader - The JsonReader being read.

Returns:

An instance of ValidationThreshold if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

grouping

public ValidationThresholdGrouping grouping()

Get the grouping property: Selection of how the type evaluation is applied to the cluster calculation.

Returns:

the grouping value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ValidationThresholdType type()

Get the type property: Selection of how the threshold should be evaluated.

Returns:

the type value.

validate

public void validate()

Validates the instance.

value

public long value()

Get the value property: The numeric threshold value.

Returns:

the value value.

withGrouping

public ValidationThreshold withGrouping(ValidationThresholdGrouping grouping)

Set the grouping property: Selection of how the type evaluation is applied to the cluster calculation.

Parameters:

grouping - the grouping value to set.

Returns:

the ValidationThreshold object itself.

withType

public ValidationThreshold withType(ValidationThresholdType type)

Set the type property: Selection of how the threshold should be evaluated.

Parameters:

type - the type value to set.

Returns:

the ValidationThreshold object itself.

withValue

public ValidationThreshold withValue(long value)

Set the value property: The numeric threshold value.

Parameters:

value - the value value to set.

Returns:

the ValidationThreshold object itself.

Applies to