Class ReservationRecommendationDetailsSavingsProperties
- java.lang.Object
-
- com.azure.resourcemanager.consumption.models.ReservationRecommendationDetailsSavingsProperties
-
public final class ReservationRecommendationDetailsSavingsProperties extends Object
Details of the estimated savings.
-
-
Constructor Summary
Constructors Constructor Description ReservationRecommendationDetailsSavingsProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ReservationRecommendationDetailsCalculatedSavingsProperties>
calculatedSavings()
Get the calculatedSavings property: List of calculated savings.Integer
lookBackPeriod()
Get the lookBackPeriod property: Number of days of usage to look back used for computing the recommendation.Float
recommendedQuantity()
Get the recommendedQuantity property: Number of recommended units of the resource.String
reservationOrderTerm()
Get the reservationOrderTerm property: Term period of the reservation, ex: P1Y or P3Y.String
savingsType()
Get the savingsType property: Type of savings, ex: instance.String
unitOfMeasure()
Get the unitOfMeasure property: Measurement unit ex: hour etc.void
validate()
Validates the instance.ReservationRecommendationDetailsSavingsProperties
withCalculatedSavings(List<ReservationRecommendationDetailsCalculatedSavingsProperties> calculatedSavings)
Set the calculatedSavings property: List of calculated savings.
-
-
-
Method Detail
-
calculatedSavings
public List<ReservationRecommendationDetailsCalculatedSavingsProperties> calculatedSavings()
Get the calculatedSavings property: List of calculated savings.- Returns:
- the calculatedSavings value.
-
withCalculatedSavings
public ReservationRecommendationDetailsSavingsProperties withCalculatedSavings(List<ReservationRecommendationDetailsCalculatedSavingsProperties> calculatedSavings)
Set the calculatedSavings property: List of calculated savings.- Parameters:
calculatedSavings
- the calculatedSavings value to set.- Returns:
- the ReservationRecommendationDetailsSavingsProperties object itself.
-
lookBackPeriod
public Integer lookBackPeriod()
Get the lookBackPeriod property: Number of days of usage to look back used for computing the recommendation.- Returns:
- the lookBackPeriod value.
-
recommendedQuantity
public Float recommendedQuantity()
Get the recommendedQuantity property: Number of recommended units of the resource.- Returns:
- the recommendedQuantity value.
-
reservationOrderTerm
public String reservationOrderTerm()
Get the reservationOrderTerm property: Term period of the reservation, ex: P1Y or P3Y.- Returns:
- the reservationOrderTerm value.
-
savingsType
public String savingsType()
Get the savingsType property: Type of savings, ex: instance.- Returns:
- the savingsType value.
-
unitOfMeasure
public String unitOfMeasure()
Get the unitOfMeasure property: Measurement unit ex: hour etc.- Returns:
- the unitOfMeasure value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-