Class RecommendationUsageDetails
java.lang.Object
com.azure.resourcemanager.costmanagement.models.RecommendationUsageDetails
On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit
recommendations.
-
Constructor Summary
ConstructorDescriptionCreates an instance of RecommendationUsageDetails class. -
Method Summary
Modifier and TypeMethodDescriptioncharges()
Get the charges property: On-demand charges for each hour between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.Get the usageGrain property: The grain of the usage.void
validate()
Validates the instance.withUsageGrain
(Grain usageGrain) Set the usageGrain property: The grain of the usage.
-
Constructor Details
-
RecommendationUsageDetails
public RecommendationUsageDetails()Creates an instance of RecommendationUsageDetails class.
-
-
Method Details
-
usageGrain
Get the usageGrain property: The grain of the usage. Supported values: 'Hourly'.- Returns:
- the usageGrain value.
-
withUsageGrain
Set the usageGrain property: The grain of the usage. Supported values: 'Hourly'.- Parameters:
usageGrain
- the usageGrain value to set.- Returns:
- the RecommendationUsageDetails object itself.
-
charges
Get the charges property: On-demand charges for each hour between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.- Returns:
- the charges value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-