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