Class MonetaryCommitment

java.lang.Object
com.azure.resourcemanager.commerce.models.OfferTermInfoAutoGenerated
com.azure.resourcemanager.commerce.models.MonetaryCommitment

public final class MonetaryCommitment extends OfferTermInfoAutoGenerated
Indicates that a monetary commitment is required for this offer.
  • Constructor Details

    • MonetaryCommitment

      public MonetaryCommitment()
      Creates an instance of MonetaryCommitment class.
  • Method Details

    • tieredDiscount

      public Map<String,BigDecimal> 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

      public MonetaryCommitment 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. 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

      public List<UUID> excludedMeterIds()
      Get the excludedMeterIds property: An array of meter ids that are excluded from the given offer terms.
      Returns:
      the excludedMeterIds value.
    • withExcludedMeterIds

      public MonetaryCommitment withExcludedMeterIds(List<UUID> excludedMeterIds)
      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

      public MonetaryCommitment withEffectiveDate(OffsetDateTime effectiveDate)
      Set the effectiveDate property: Indicates the date from which the offer term is effective.
      Overrides:
      withEffectiveDate in class OfferTermInfoAutoGenerated
      Parameters:
      effectiveDate - the effectiveDate value to set.
      Returns:
      the OfferTermInfoAutoGenerated object itself.
    • validate

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