Class ReservationRecommendationDetailsCalculatedSavingsProperties


  • public final class ReservationRecommendationDetailsCalculatedSavingsProperties
    extends Object
    Details of estimated savings.
    • Constructor Detail

      • ReservationRecommendationDetailsCalculatedSavingsProperties

        public ReservationRecommendationDetailsCalculatedSavingsProperties()
    • Method Detail

      • onDemandCost

        public Float onDemandCost()
        Get the onDemandCost property: The cost without reservation.
        Returns:
        the onDemandCost value.
      • overageCost

        public Float overageCost()
        Get the overageCost property: The difference between total reservation cost and reservation cost.
        Returns:
        the overageCost value.
      • quantity

        public Float quantity()
        Get the quantity property: The quantity for calculated savings.
        Returns:
        the quantity value.
      • reservationCost

        public Float reservationCost()
        Get the reservationCost property: The exact cost of the estimated usage using reservation.
        Returns:
        the reservationCost value.
      • totalReservationCost

        public Float totalReservationCost()
        Get the totalReservationCost property: The cost of the suggested quantity.
        Returns:
        the totalReservationCost value.
      • reservedUnitCount

        public Float reservedUnitCount()
        Get the reservedUnitCount property: The number of reserved units used to calculate savings. Always 1 for virtual machines.
        Returns:
        the reservedUnitCount value.
      • withReservedUnitCount

        public ReservationRecommendationDetailsCalculatedSavingsProperties withReservedUnitCount​(Float reservedUnitCount)
        Set the reservedUnitCount property: The number of reserved units used to calculate savings. Always 1 for virtual machines.
        Parameters:
        reservedUnitCount - the reservedUnitCount value to set.
        Returns:
        the ReservationRecommendationDetailsCalculatedSavingsProperties object itself.
      • savings

        public Float savings()
        Get the savings property: The amount saved by purchasing the recommended quantity of reservation.
        Returns:
        the savings value.
      • validate

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