Class AllSavingsBenefitDetails

java.lang.Object
com.azure.resourcemanager.costmanagement.models.AllSavingsBenefitDetails
All Implemented Interfaces:
com.azure.json.JsonSerializable<AllSavingsBenefitDetails>

public final class AllSavingsBenefitDetails extends Object implements com.azure.json.JsonSerializable<AllSavingsBenefitDetails>
Benefit recommendation details.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of AllSavingsBenefitDetails class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the averageUtilizationPercentage property: Estimated average utilization percentage for the 'totalHours' in the look-back period, with this commitment.
    Get the benefitCost property: The estimated cost with benefit for the 'totalHours' in the look-back period.
    Get the commitmentAmount property: The commitment amount at the commitmentGranularity.
    Get the coveragePercentage property: Estimated benefit coverage percentage for the 'totalHours' in the look-back period, with this commitment.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AllSavingsBenefitDetails from the JsonReader.
    Get the overageCost property: The difference between total cost and benefit cost for the 'totalHours' in the look-back period.
    Get the savingsAmount property: The amount saved for the 'totalHours' in the look-back period, by purchasing the recommended quantity of the benefit.
    Get the savingsPercentage property: The savings in percentage for the 'totalHours' in the look-back period, by purchasing the recommended quantity of benefit.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the totalCost property: Total cost, which is sum of benefit cost and overage cost.
    void
    Validates the instance.
    Get the wastageCost property: Estimated unused portion of the 'benefitCost'.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • AllSavingsBenefitDetails

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

    • overageCost

      public BigDecimal overageCost()
      Get the overageCost property: The difference between total cost and benefit cost for the 'totalHours' in the look-back period.
      Returns:
      the overageCost value.
    • benefitCost

      public BigDecimal benefitCost()
      Get the benefitCost property: The estimated cost with benefit for the 'totalHours' in the look-back period. It's equal to (commitmentAmount * totalHours).
      Returns:
      the benefitCost value.
    • totalCost

      public BigDecimal totalCost()
      Get the totalCost property: Total cost, which is sum of benefit cost and overage cost.
      Returns:
      the totalCost value.
    • savingsAmount

      public BigDecimal savingsAmount()
      Get the savingsAmount property: The amount saved for the 'totalHours' in the look-back period, by purchasing the recommended quantity of the benefit.
      Returns:
      the savingsAmount value.
    • savingsPercentage

      public BigDecimal savingsPercentage()
      Get the savingsPercentage property: The savings in percentage for the 'totalHours' in the look-back period, by purchasing the recommended quantity of benefit.
      Returns:
      the savingsPercentage value.
    • coveragePercentage

      public BigDecimal coveragePercentage()
      Get the coveragePercentage property: Estimated benefit coverage percentage for the 'totalHours' in the look-back period, with this commitment.
      Returns:
      the coveragePercentage value.
    • commitmentAmount

      public BigDecimal commitmentAmount()
      Get the commitmentAmount property: The commitment amount at the commitmentGranularity.
      Returns:
      the commitmentAmount value.
    • averageUtilizationPercentage

      public BigDecimal averageUtilizationPercentage()
      Get the averageUtilizationPercentage property: Estimated average utilization percentage for the 'totalHours' in the look-back period, with this commitment.
      Returns:
      the averageUtilizationPercentage value.
    • wastageCost

      public BigDecimal wastageCost()
      Get the wastageCost property: Estimated unused portion of the 'benefitCost'.
      Returns:
      the wastageCost value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AllSavingsBenefitDetails>
      Throws:
      IOException
    • fromJson

      public static AllSavingsBenefitDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AllSavingsBenefitDetails from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AllSavingsBenefitDetails 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 AllSavingsBenefitDetails.