Class MonetaryCommitment
java.lang.Object
com.azure.resourcemanager.commerce.models.OfferTermInfoAutoGenerated
com.azure.resourcemanager.commerce.models.MonetaryCommitment
Indicates that a monetary commitment is required for this offer.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.Get the tieredDiscount property: The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key = price, and value = the corresponding discount percentage.void
validate()
Validates the instance.withEffectiveDate
(OffsetDateTime effectiveDate) Set the effectiveDate property: Indicates the date from which the offer term is effective.withExcludedMeterIds
(List<UUID> excludedMeterIds) Set the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.withTieredDiscount
(Map<String, BigDecimal> tieredDiscount) Set the tieredDiscount property: The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key = price, and value = the corresponding discount percentage.Methods inherited from class com.azure.resourcemanager.commerce.models.OfferTermInfoAutoGenerated
effectiveDate
-
Constructor Details
-
MonetaryCommitment
public MonetaryCommitment()Creates an instance of MonetaryCommitment class.
-
-
Method Details
-
tieredDiscount
Get the tieredDiscount property: The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key = price, and value = the corresponding discount percentage. This field is used only by offer terms of type 'Monetary Commitment'.- Returns:
- the tieredDiscount value.
-
withTieredDiscount
Set the tieredDiscount property: The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key = price, and value = the corresponding discount percentage. This field is used only by offer terms of type 'Monetary Commitment'.- Parameters:
tieredDiscount
- the tieredDiscount value to set.- Returns:
- the MonetaryCommitment object itself.
-
excludedMeterIds
Get the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.- Returns:
- the excludedMeterIds value.
-
withExcludedMeterIds
Set the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.- Parameters:
excludedMeterIds
- the excludedMeterIds value to set.- Returns:
- the MonetaryCommitment object itself.
-
withEffectiveDate
Set the effectiveDate property: Indicates the date from which the offer term is effective.- Overrides:
withEffectiveDate
in classOfferTermInfoAutoGenerated
- Parameters:
effectiveDate
- the effectiveDate value to set.- Returns:
- the OfferTermInfoAutoGenerated object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classOfferTermInfoAutoGenerated
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-