Package com.stripe.param.billing
Class MeterCreateParams.Builder
java.lang.Object
com.stripe.param.billing.MeterCreateParams.Builder
- Enclosing class:
- MeterCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()
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.setCustomerMapping
(MeterCreateParams.CustomerMapping customerMapping) Fields that specify how to map a meter event to a customer.setDefaultAggregation
(MeterCreateParams.DefaultAggregation defaultAggregation) Required. The default settings to aggregate a meter's events with.setDisplayName
(String displayName) Required. The meter’s name.setEventName
(String eventName) Required. The name of the meter event to record usage for.setEventTimeWindow
(MeterCreateParams.EventTimeWindow eventTimeWindow) The time window which meter events have been pre-aggregated for, if any.setValueSettings
(MeterCreateParams.ValueSettings valueSettings) Fields that specify how to calculate a meter event's value.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCustomerMapping
public MeterCreateParams.Builder setCustomerMapping(MeterCreateParams.CustomerMapping customerMapping) Fields that specify how to map a meter event to a customer. -
setDefaultAggregation
public MeterCreateParams.Builder setDefaultAggregation(MeterCreateParams.DefaultAggregation defaultAggregation) Required. The default settings to aggregate a meter's events with. -
setDisplayName
Required. The meter’s name. Not visible to the customer. -
setEventName
Required. The name of the meter event to record usage for. Corresponds with theevent_name
field on meter events. -
setEventTimeWindow
public MeterCreateParams.Builder setEventTimeWindow(MeterCreateParams.EventTimeWindow eventTimeWindow) The time window which meter events have been pre-aggregated for, if any. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeMeterCreateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeMeterCreateParams.expand
for the field documentation. -
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.extraParams
for 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.extraParams
for the field documentation. -
setValueSettings
Fields that specify how to calculate a meter event's value.
-