ReservationRecommendationDetailsUsageProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.models.ReservationRecommendationDetailsUsageProperties

Implements

public final class ReservationRecommendationDetailsUsageProperties
implements JsonSerializable<ReservationRecommendationDetailsUsageProperties>

Details about historical usage data that has been used for computing the recommendation.

Constructor Summary

Constructor Description
ReservationRecommendationDetailsUsageProperties()

Creates an instance of ReservationRecommendationDetailsUsageProperties class.

Method Summary

Modifier and Type Method and Description
String firstConsumptionDate()

Get the firstConsumptionDate property: The first usage date used for looking back for computing the recommendation.

static ReservationRecommendationDetailsUsageProperties fromJson(JsonReader jsonReader)

Reads an instance of ReservationRecommendationDetailsUsageProperties from the JsonReader.

String lastConsumptionDate()

Get the lastConsumptionDate property: The last usage date used for looking back for computing the recommendation.

String lookBackUnitType()

Get the lookBackUnitType property: What the usage data values represent ex: virtual machine instance.

JsonWriter toJson(JsonWriter jsonWriter)
List<Float> usageData()

Get the usageData property: The breakdown of historical resource usage.

String usageGrain()

Get the usageGrain property: The grain of the values represented in the usage data ex: hourly.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ReservationRecommendationDetailsUsageProperties

public ReservationRecommendationDetailsUsageProperties()

Creates an instance of ReservationRecommendationDetailsUsageProperties class.

Method Details

firstConsumptionDate

public String firstConsumptionDate()

Get the firstConsumptionDate property: The first usage date used for looking back for computing the recommendation.

Returns:

the firstConsumptionDate value.

fromJson

public static ReservationRecommendationDetailsUsageProperties fromJson(JsonReader jsonReader)

Reads an instance of ReservationRecommendationDetailsUsageProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastConsumptionDate

public String lastConsumptionDate()

Get the lastConsumptionDate property: The last usage date used for looking back for computing the recommendation.

Returns:

the lastConsumptionDate value.

lookBackUnitType

public String lookBackUnitType()

Get the lookBackUnitType property: What the usage data values represent ex: virtual machine instance.

Returns:

the lookBackUnitType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usageData

public List<Float> usageData()

Get the usageData property: The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate.

Returns:

the usageData value.

usageGrain

public String usageGrain()

Get the usageGrain property: The grain of the values represented in the usage data ex: hourly.

Returns:

the usageGrain value.

validate

public void validate()

Validates the instance.

Applies to