WafRankingsResponseDataItemMetric Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.WafRankingsResponseDataItemMetric

Implements

public final class WafRankingsResponseDataItemMetric
implements JsonSerializable<WafRankingsResponseDataItemMetric>

The WafRankingsResponseDataItemMetric model.

Method Summary

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

Reads an instance of WafRankingsResponseDataItemMetric from the JsonReader.

String metric()

Get the metric property: The metric property.

Double percentage()

Get the percentage property: The percentage property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Long value()

Get the value property: The value property.

Methods inherited from java.lang.Object

Method Details

fromJson

public static WafRankingsResponseDataItemMetric fromJson(JsonReader jsonReader)

Reads an instance of WafRankingsResponseDataItemMetric from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WafRankingsResponseDataItemMetric 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 WafRankingsResponseDataItemMetric.

metric

public String metric()

Get the metric property: The metric property.

Returns:

the metric value.

percentage

public Double percentage()

Get the percentage property: The percentage property.

Returns:

the percentage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public Long value()

Get the value property: The value property.

Returns:

the value value.

Applies to