Package com.stripe.param.billing
Class AlertCreateParams.Builder
java.lang.Object
com.stripe.param.billing.AlertCreateParams.Builder
- Enclosing class:
- AlertCreateParams
-
Constructor Summary
-
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.setAlertType
(AlertCreateParams.AlertType alertType) Required. The type of alert to create.setFilter
(AlertCreateParams.Filter filter) Filters to limit the scope of an alert.Required. The title of the alert.setUsageThresholdConfig
(AlertCreateParams.UsageThresholdConfig usageThresholdConfig) The configuration of the usage threshold.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAlertType
Required. The type of alert to create. -
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. SeeAlertCreateParams.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. SeeAlertCreateParams.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. SeeAlertCreateParams.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. SeeAlertCreateParams.extraParams
for the field documentation. -
setFilter
Filters to limit the scope of an alert. -
setTitle
Required. The title of the alert. -
setUsageThresholdConfig
public AlertCreateParams.Builder setUsageThresholdConfig(AlertCreateParams.UsageThresholdConfig usageThresholdConfig) The configuration of the usage threshold.
-