Class BenefitRecommendationProperties
java.lang.Object
com.azure.resourcemanager.costmanagement.models.BenefitRecommendationProperties
- Direct Known Subclasses:
SharedScopeBenefitRecommendationProperties
,SingleScopeBenefitRecommendationProperties
The properties of the benefit recommendations.
-
Constructor Summary
ConstructorDescriptionCreates an instance of BenefitRecommendationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allRecommendationDetails property: The list of all benefit recommendations with the recommendation details.Get the armSkuName property: ARM SKU name.Get the commitmentGranularity property: Grain of the proposed commitment amount.Get the costWithoutBenefit property: The current cost without benefit, corresponds to 'totalHours' in the look-back period.Get the currencyCode property: An ISO 4217 currency code identifier for the costs and savings amounts.Get the firstConsumptionDate property: The first usage date used for looking back for computing the recommendations.Get the lastConsumptionDate property: The last usage date used for looking back for computing the recommendations.Get the lookBackPeriod property: The number of days of usage evaluated for computing the recommendations.Get the recommendationDetails property: The details of the proposed recommendation.term()
Get the term property: Term period of the benefit.Get the totalHours property: The total hours for which the cost is covered.usage()
Get the usage property: On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.void
validate()
Validates the instance.withCommitmentGranularity
(Grain commitmentGranularity) Set the commitmentGranularity property: Grain of the proposed commitment amount.withLookBackPeriod
(LookBackPeriod lookBackPeriod) Set the lookBackPeriod property: The number of days of usage evaluated for computing the recommendations.withRecommendationDetails
(AllSavingsBenefitDetails recommendationDetails) Set the recommendationDetails property: The details of the proposed recommendation.Set the term property: Term period of the benefit.Set the usage property: On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.
-
Constructor Details
-
BenefitRecommendationProperties
public BenefitRecommendationProperties()Creates an instance of BenefitRecommendationProperties class.
-
-
Method Details
-
firstConsumptionDate
Get the firstConsumptionDate property: The first usage date used for looking back for computing the recommendations.- Returns:
- the firstConsumptionDate value.
-
lastConsumptionDate
Get the lastConsumptionDate property: The last usage date used for looking back for computing the recommendations.- Returns:
- the lastConsumptionDate value.
-
lookBackPeriod
Get the lookBackPeriod property: The number of days of usage evaluated for computing the recommendations.- Returns:
- the lookBackPeriod value.
-
withLookBackPeriod
Set the lookBackPeriod property: The number of days of usage evaluated for computing the recommendations.- Parameters:
lookBackPeriod
- the lookBackPeriod value to set.- Returns:
- the BenefitRecommendationProperties object itself.
-
totalHours
Get the totalHours property: The total hours for which the cost is covered. Its equal to number of records in a property 'properties/usage/charges'.- Returns:
- the totalHours value.
-
usage
Get the usage property: On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.- Returns:
- the usage value.
-
withUsage
Set the usage property: On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.- Parameters:
usage
- the usage value to set.- Returns:
- the BenefitRecommendationProperties object itself.
-
armSkuName
Get the armSkuName property: ARM SKU name. 'Compute_Savings_Plan' for SavingsPlan.- Returns:
- the armSkuName value.
-
term
Get the term property: Term period of the benefit. For example, P1Y or P3Y.- Returns:
- the term value.
-
withTerm
Set the term property: Term period of the benefit. For example, P1Y or P3Y.- Parameters:
term
- the term value to set.- Returns:
- the BenefitRecommendationProperties object itself.
-
commitmentGranularity
Get the commitmentGranularity property: Grain of the proposed commitment amount. Supported values: 'Hourly'.- Returns:
- the commitmentGranularity value.
-
withCommitmentGranularity
Set the commitmentGranularity property: Grain of the proposed commitment amount. Supported values: 'Hourly'.- Parameters:
commitmentGranularity
- the commitmentGranularity value to set.- Returns:
- the BenefitRecommendationProperties object itself.
-
currencyCode
Get the currencyCode property: An ISO 4217 currency code identifier for the costs and savings amounts.- Returns:
- the currencyCode value.
-
costWithoutBenefit
Get the costWithoutBenefit property: The current cost without benefit, corresponds to 'totalHours' in the look-back period.- Returns:
- the costWithoutBenefit value.
-
recommendationDetails
Get the recommendationDetails property: The details of the proposed recommendation.- Returns:
- the recommendationDetails value.
-
withRecommendationDetails
public BenefitRecommendationProperties withRecommendationDetails(AllSavingsBenefitDetails recommendationDetails) Set the recommendationDetails property: The details of the proposed recommendation.- Parameters:
recommendationDetails
- the recommendationDetails value to set.- Returns:
- the BenefitRecommendationProperties object itself.
-
allRecommendationDetails
Get the allRecommendationDetails property: The list of all benefit recommendations with the recommendation details.- Returns:
- the allRecommendationDetails value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-