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 class
For 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 boolean
boolean
The filters allow limiting the scope of this usage alert.getGte()
The value at which this alert will trigger.getMeter()
Get ID of expandablemeter
object.Get expandedmeter
.Defines how the alert will behave.int
hashCode()
void
setFilters
(List<Alert.UsageThreshold.Filter> filters) The filters allow limiting the scope of this usage alert.void
The value at which this alert will trigger.void
void
setMeterObject
(Meter expandableObject) void
setRecurrence
(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 expandablemeter
object. -
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()
-