Class MonetaryCredit

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

public final class MonetaryCredit extends OfferTermInfoAutoGenerated
Indicates that this is a monetary credit offer.
  • Constructor Details

    • MonetaryCredit

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

    • credit

      public BigDecimal credit()
      Get the credit property: The amount of credit provided under the terms of the given offer level.
      Returns:
      the credit value.
    • withCredit

      public MonetaryCredit withCredit(BigDecimal credit)
      Set the credit property: The amount of credit provided under the terms of the given offer level.
      Parameters:
      credit - the credit value to set.
      Returns:
      the MonetaryCredit 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 MonetaryCredit 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 MonetaryCredit object itself.
    • withEffectiveDate

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