Enum OfferTermInfo

java.lang.Object
java.lang.Enum<OfferTermInfo>
com.azure.resourcemanager.commerce.models.OfferTermInfo
All Implemented Interfaces:
Serializable, Comparable<OfferTermInfo>, java.lang.constant.Constable

public enum OfferTermInfo extends Enum<OfferTermInfo>
Name of the offer term.
  • Enum Constant Details

    • RECURRING_CHARGE

      public static final OfferTermInfo RECURRING_CHARGE
      Enum value Recurring Charge.
    • MONETARY_COMMITMENT

      public static final OfferTermInfo MONETARY_COMMITMENT
      Enum value Monetary Commitment.
    • MONETARY_CREDIT

      public static final OfferTermInfo MONETARY_CREDIT
      Enum value Monetary Credit.
  • Method Details

    • values

      public static OfferTermInfo[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static OfferTermInfo valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static OfferTermInfo fromString(String value)
      Parses a serialized value to a OfferTermInfo instance.
      Parameters:
      value - the serialized value to parse.
      Returns:
      the parsed OfferTermInfo object, or null if unable to parse.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<OfferTermInfo>