Class ProjectSpendAlert.Builder
-
- All Implemented Interfaces:
public final class ProjectSpendAlert.BuilderA builder for ProjectSpendAlert.
-
-
Method Summary
-
-
Method Detail
-
id
final ProjectSpendAlert.Builder id(String id)
The identifier, which can be referenced in API endpoints.
-
id
final ProjectSpendAlert.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
currency
final ProjectSpendAlert.Builder currency(ProjectSpendAlert.Currency currency)
The currency for the threshold amount.
-
currency
final ProjectSpendAlert.Builder currency(JsonField<ProjectSpendAlert.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 ProjectSpendAlert.Builder interval(ProjectSpendAlert.Interval interval)
The time interval for evaluating spend against the threshold.
-
interval
final ProjectSpendAlert.Builder interval(JsonField<ProjectSpendAlert.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 ProjectSpendAlert.Builder notificationChannel(ProjectSpendAlert.NotificationChannel notificationChannel)
Email notification settings for a spend alert.
-
notificationChannel
final ProjectSpendAlert.Builder notificationChannel(JsonField<ProjectSpendAlert.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.
-
object_
final ProjectSpendAlert.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("project.spend_alert")This method is primarily for setting the field to an undocumented or not yet supported value.
-
thresholdAmount
final ProjectSpendAlert.Builder thresholdAmount(Long thresholdAmount)
The alert threshold amount, in cents.
-
thresholdAmount
final ProjectSpendAlert.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 ProjectSpendAlert.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProjectSpendAlert.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProjectSpendAlert.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProjectSpendAlert.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProjectSpendAlert.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProjectSpendAlert build()
Returns an immutable instance of ProjectSpendAlert.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .currency() .interval() .notificationChannel() .thresholdAmount()
-
-
-
-