IoTSeverityMetrics Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.IoTSeverityMetrics

Implements

public final class IoTSeverityMetrics
implements JsonSerializable<IoTSeverityMetrics>

IoT Security solution analytics severity metrics.

Constructor Summary

Constructor Description
IoTSeverityMetrics()

Creates an instance of IoTSeverityMetrics class.

Method Summary

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

Reads an instance of IoTSeverityMetrics from the JsonReader.

Long high()

Get the high property: Count of high severity alerts/recommendations.

Long low()

Get the low property: Count of low severity alerts/recommendations.

Long medium()

Get the medium property: Count of medium severity alerts/recommendations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IoTSeverityMetrics withHigh(Long high)

Set the high property: Count of high severity alerts/recommendations.

IoTSeverityMetrics withLow(Long low)

Set the low property: Count of low severity alerts/recommendations.

IoTSeverityMetrics withMedium(Long medium)

Set the medium property: Count of medium severity alerts/recommendations.

Methods inherited from java.lang.Object

Constructor Details

IoTSeverityMetrics

public IoTSeverityMetrics()

Creates an instance of IoTSeverityMetrics class.

Method Details

fromJson

public static IoTSeverityMetrics fromJson(JsonReader jsonReader)

Reads an instance of IoTSeverityMetrics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the IoTSeverityMetrics.

high

public Long high()

Get the high property: Count of high severity alerts/recommendations.

Returns:

the high value.

low

public Long low()

Get the low property: Count of low severity alerts/recommendations.

Returns:

the low value.

medium

public Long medium()

Get the medium property: Count of medium severity alerts/recommendations.

Returns:

the medium value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHigh

public IoTSeverityMetrics withHigh(Long high)

Set the high property: Count of high severity alerts/recommendations.

Parameters:

high - the high value to set.

Returns:

the IoTSeverityMetrics object itself.

withLow

public IoTSeverityMetrics withLow(Long low)

Set the low property: Count of low severity alerts/recommendations.

Parameters:

low - the low value to set.

Returns:

the IoTSeverityMetrics object itself.

withMedium

public IoTSeverityMetrics withMedium(Long medium)

Set the medium property: Count of medium severity alerts/recommendations.

Parameters:

medium - the medium value to set.

Returns:

the IoTSeverityMetrics object itself.

Applies to