Class RecurringCharge

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

public final class RecurringCharge extends OfferTermInfoAutoGenerated
Indicates a recurring charge is present for this offer.
  • Constructor Details

    • RecurringCharge

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

    • recurringCharge

      public Integer recurringCharge()
      Get the recurringCharge property: The amount of recurring charge as per the offer term.
      Returns:
      the recurringCharge value.
    • withRecurringCharge

      public RecurringCharge withRecurringCharge(Integer recurringCharge)
      Set the recurringCharge property: The amount of recurring charge as per the offer term.
      Parameters:
      recurringCharge - the recurringCharge value to set.
      Returns:
      the RecurringCharge object itself.
    • withEffectiveDate

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