Package com.stripe.param.billing
Class AlertCreateParams.SpendThreshold.Builder
java.lang.Object
com.stripe.param.billing.AlertCreateParams.SpendThreshold.Builder
- Enclosing class:
- AlertCreateParams.SpendThreshold
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setAggregationPeriod(AlertCreateParams.SpendThreshold.AggregationPeriod aggregationPeriod) Required. Defines the period over which spend is aggregated.Filters to scope the spend calculation.Defines the granularity of spend aggregation.Required. Defines at which value the alert will fire.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAggregationPeriod
public AlertCreateParams.SpendThreshold.Builder setAggregationPeriod(AlertCreateParams.SpendThreshold.AggregationPeriod aggregationPeriod) Required. Defines the period over which spend is aggregated. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeAlertCreateParams.SpendThreshold.extraParamsfor the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeAlertCreateParams.SpendThreshold.extraParamsfor the field documentation. -
setFilters
public AlertCreateParams.SpendThreshold.Builder setFilters(AlertCreateParams.SpendThreshold.Filters filters) Filters to scope the spend calculation. -
setGroupBy
public AlertCreateParams.SpendThreshold.Builder setGroupBy(AlertCreateParams.SpendThreshold.GroupBy groupBy) Defines the granularity of spend aggregation. Defaults topricing_plan_subscription. -
setGte
Required. Defines at which value the alert will fire.
-