Class SpendAlertCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class SpendAlertCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
currency
final SpendAlertCreateParams.Body.Builder currency(SpendAlertCreateParams.Currency currency)
The currency for the threshold amount.
-
currency
final SpendAlertCreateParams.Body.Builder currency(JsonField<SpendAlertCreateParams.Currency> currency)
Sets Builder.currency to an arbitrary JSON value.
You should usually call Builder.currency with a well-typed Currency value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
interval
final SpendAlertCreateParams.Body.Builder interval(SpendAlertCreateParams.Interval interval)
The time interval for evaluating spend against the threshold.
-
interval
final SpendAlertCreateParams.Body.Builder interval(JsonField<SpendAlertCreateParams.Interval> interval)
Sets Builder.interval to an arbitrary JSON value.
You should usually call Builder.interval with a well-typed Interval value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
notificationChannel
final SpendAlertCreateParams.Body.Builder notificationChannel(SpendAlertCreateParams.NotificationChannel notificationChannel)
Email notification settings for a spend alert.
-
notificationChannel
final SpendAlertCreateParams.Body.Builder notificationChannel(JsonField<SpendAlertCreateParams.NotificationChannel> notificationChannel)
Sets Builder.notificationChannel to an arbitrary JSON value.
You should usually call Builder.notificationChannel with a well-typed NotificationChannel value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thresholdAmount
final SpendAlertCreateParams.Body.Builder thresholdAmount(Long thresholdAmount)
The alert threshold amount, in cents.
-
thresholdAmount
final SpendAlertCreateParams.Body.Builder thresholdAmount(JsonField<Long> thresholdAmount)
Sets Builder.thresholdAmount to an arbitrary JSON value.
You should usually call Builder.thresholdAmount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SpendAlertCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SpendAlertCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SpendAlertCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SpendAlertCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SpendAlertCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SpendAlertCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.currency() .interval() .notificationChannel() .thresholdAmount()
-
-
-
-