RankingsResponseTablesPropertiesItemsMetricsItem Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. RankingsResponseTablesPropertiesItemsMetricsItem
- com.
Implements
public final class RankingsResponseTablesPropertiesItemsMetricsItem
implements JsonSerializable<RankingsResponseTablesPropertiesItemsMetricsItem>
The RankingsResponseTablesPropertiesItemsMetricsItem model.
Constructor Summary
Constructor | Description |
---|---|
RankingsResponseTablesPropertiesItemsMetricsItem() |
Creates an instance of Rankings |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Rankings |
fromJson(JsonReader jsonReader)
Reads an instance of Rankings |
String |
metric()
Get the metric property: The metric property. |
Float |
percentage()
Get the percentage property: The percentage property. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Long |
value()
Get the value property: The value property. |
Rankings |
withMetric(String metric)
Set the metric property: The metric property. |
Rankings |
withPercentage(Float percentage)
Set the percentage property: The percentage property. |
Rankings |
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:
Returns:
Throws:
metric
public String metric()
Get the metric property: The metric property.
Returns:
percentage
public Float percentage()
Get the percentage property: The percentage property.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public Long value()
Get the value property: The value property.
Returns:
withMetric
public RankingsResponseTablesPropertiesItemsMetricsItem withMetric(String metric)
Set the metric property: The metric property.
Parameters:
Returns:
withPercentage
public RankingsResponseTablesPropertiesItemsMetricsItem withPercentage(Float percentage)
Set the percentage property: The percentage property.
Parameters:
Returns:
withValue
public RankingsResponseTablesPropertiesItemsMetricsItem withValue(Long value)
Set the value property: The value property.
Parameters:
Returns:
Applies to
Azure SDK for Java