Class Alert.UsageThresholdConfig

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billing.Alert.UsageThresholdConfig
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Alert

public static class Alert.UsageThresholdConfig extends StripeObject
The usage threshold alert configuration enables setting up alerts for when a certain usage threshold on a specific meter is crossed.
  • Constructor Details

    • UsageThresholdConfig

      public UsageThresholdConfig()
  • Method Details

    • getMeter

      public String getMeter()
      Get ID of expandable meter object.
    • setMeter

      public void setMeter(String id)
    • getMeterObject

      public Meter getMeterObject()
      Get expanded meter.
    • setMeterObject

      public void setMeterObject(Meter expandableObject)
    • getGte

      public Long getGte()
      The value at which this alert will trigger.
    • getRecurrence

      public String getRecurrence()
      Defines how the alert will behave.

      Equal to one_time.

    • setGte

      public void setGte(Long gte)
      The value at which this alert will trigger.
    • setRecurrence

      public void setRecurrence(String recurrence)
      Defines how the alert will behave.

      Equal to one_time.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object