Class ReservationRecommendationDetailsCalculatedSavingsProperties
- java.lang.Object
-
- com.azure.resourcemanager.consumption.models.ReservationRecommendationDetailsCalculatedSavingsProperties
-
public final class ReservationRecommendationDetailsCalculatedSavingsProperties extends Object
Details of estimated savings.
-
-
Constructor Summary
Constructors Constructor Description ReservationRecommendationDetailsCalculatedSavingsProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Float
onDemandCost()
Get the onDemandCost property: The cost without reservation.Float
overageCost()
Get the overageCost property: The difference between total reservation cost and reservation cost.Float
quantity()
Get the quantity property: The quantity for calculated savings.Float
reservationCost()
Get the reservationCost property: The exact cost of the estimated usage using reservation.Float
reservedUnitCount()
Get the reservedUnitCount property: The number of reserved units used to calculate savings.Float
savings()
Get the savings property: The amount saved by purchasing the recommended quantity of reservation.Float
totalReservationCost()
Get the totalReservationCost property: The cost of the suggested quantity.void
validate()
Validates the instance.ReservationRecommendationDetailsCalculatedSavingsProperties
withReservedUnitCount(Float reservedUnitCount)
Set the reservedUnitCount property: The number of reserved units used to calculate savings.
-
-
-
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.
-
-