Package com.stripe.model.billing
Class Alert.UsageThreshold
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billing.Alert.UsageThreshold
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Alert
The usage threshold alert configuration enables setting up alerts for when a certain usage
threshold on a specific meter is crossed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Filter, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe filters allow limiting the scope of this usage alert.getGte()The value at which this alert will trigger.getMeter()Get ID of expandablemeterobject.Get expandedmeter.Defines how the alert will behave.inthashCode()voidsetFilters(List<Alert.UsageThreshold.Filter> filters) The filters allow limiting the scope of this usage alert.voidThe value at which this alert will trigger.voidvoidsetMeterObject(Meter expandableObject) voidsetRecurrence(String recurrence) Defines how the alert will behave.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
UsageThreshold
public UsageThreshold()
-
-
Method Details
-
getMeter
Get ID of expandablemeterobject. -
setMeter
-
getMeterObject
Get expandedmeter. -
setMeterObject
-
getFilters
The filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time. -
getGte
The value at which this alert will trigger. -
getRecurrence
Defines how the alert will behave.Equal to
one_time. -
setFilters
The filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time. -
setGte
The value at which this alert will trigger. -
setRecurrence
Defines how the alert will behave.Equal to
one_time. -
equals
-
canEqual
-
hashCode
public int hashCode()
-