Package com.stripe.param.billing
Class MeterCreateParams.DefaultAggregation.Builder
java.lang.Object
com.stripe.param.billing.MeterCreateParams.DefaultAggregation.Builder
- Enclosing class:
- MeterCreateParams.DefaultAggregation
-
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.Required. Specifies how events are aggregated.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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. SeeMeterCreateParams.DefaultAggregation.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. SeeMeterCreateParams.DefaultAggregation.extraParamsfor the field documentation. -
setFormula
public MeterCreateParams.DefaultAggregation.Builder setFormula(MeterCreateParams.DefaultAggregation.Formula formula) Required. Specifies how events are aggregated. Allowed values arecountto count the number of events,sumto sum each event's value andlastto take the last event's value in the window.
-