Package com.stripe.model.billing
Class Alert.UsageThreshold
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billing.Alert.UsageThreshold
- All Implemented Interfaces:
StripeActiveObject,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.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
UsageThreshold
public UsageThreshold()
-
-
Method Details
-
getMeter
Get ID of expandablemeterobject. -
setMeter
-
getMeterObject
Get expandedmeter. -
setMeterObject
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
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()
-