Dela via


RankingsResponseTablesPropertiesItemsMetricsItem Class

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

Implements

public final class RankingsResponseTablesPropertiesItemsMetricsItem
implements JsonSerializable<RankingsResponseTablesPropertiesItemsMetricsItem>

The RankingsResponseTablesPropertiesItemsMetricsItem model.

Constructor Summary

Constructor Description
RankingsResponseTablesPropertiesItemsMetricsItem()

Creates an instance of RankingsResponseTablesPropertiesItemsMetricsItem class.

Method Summary

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

Reads an instance of RankingsResponseTablesPropertiesItemsMetricsItem from the JsonReader.

String metric()

Get the metric property: The metric property.

Float 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.

RankingsResponseTablesPropertiesItemsMetricsItem withMetric(String metric)

Set the metric property: The metric property.

RankingsResponseTablesPropertiesItemsMetricsItem withPercentage(Float percentage)

Set the percentage property: The percentage property.

RankingsResponseTablesPropertiesItemsMetricsItem withValue(Long value)

Set the value property: The value property.

Methods inherited from java.lang.Object

Constructor Details

RankingsResponseTablesPropertiesItemsMetricsItem

public RankingsResponseTablesPropertiesItemsMetricsItem()

Creates an instance of RankingsResponseTablesPropertiesItemsMetricsItem class.

Method Details

fromJson

public static RankingsResponseTablesPropertiesItemsMetricsItem fromJson(JsonReader jsonReader)

Reads an instance of RankingsResponseTablesPropertiesItemsMetricsItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metric

public String metric()

Get the metric property: The metric property.

Returns:

the metric value.

percentage

public Float 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.

withMetric

public RankingsResponseTablesPropertiesItemsMetricsItem withMetric(String metric)

Set the metric property: The metric property.

Parameters:

metric - the metric value to set.

Returns:

the RankingsResponseTablesPropertiesItemsMetricsItem object itself.

withPercentage

public RankingsResponseTablesPropertiesItemsMetricsItem withPercentage(Float percentage)

Set the percentage property: The percentage property.

Parameters:

percentage - the percentage value to set.

Returns:

the RankingsResponseTablesPropertiesItemsMetricsItem object itself.

withValue

public RankingsResponseTablesPropertiesItemsMetricsItem withValue(Long value)

Set the value property: The value property.

Parameters:

value - the value value to set.

Returns:

the RankingsResponseTablesPropertiesItemsMetricsItem object itself.

Applies to