Class RecommendationUsageDetails

java.lang.Object
com.azure.resourcemanager.costmanagement.models.RecommendationUsageDetails

public final class RecommendationUsageDetails extends Object
On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.
  • Constructor Details

    • RecommendationUsageDetails

      public RecommendationUsageDetails()
      Creates an instance of RecommendationUsageDetails class.
  • Method Details

    • usageGrain

      public Grain usageGrain()
      Get the usageGrain property: The grain of the usage. Supported values: 'Hourly'.
      Returns:
      the usageGrain value.
    • withUsageGrain

      public RecommendationUsageDetails withUsageGrain(Grain usageGrain)
      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

      public List<BigDecimal> 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.