Class OrganizationSpendAlert
-
- All Implemented Interfaces:
public final class OrganizationSpendAlertRepresents a spend alert configured at the organization level.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrganizationSpendAlert.BuilderA builder for OrganizationSpendAlert.
public final classOrganizationSpendAlert.CurrencyThe currency for the threshold amount.
public final classOrganizationSpendAlert.IntervalThe time interval for evaluating spend against the threshold.
public final classOrganizationSpendAlert.NotificationChannelEmail notification settings for a spend alert.
-
Method Summary
Modifier and Type Method Description final Stringid()The identifier, which can be referenced in API endpoints. final OrganizationSpendAlert.Currencycurrency()The currency for the threshold amount. final OrganizationSpendAlert.Intervalinterval()The time interval for evaluating spend against the threshold. final OrganizationSpendAlert.NotificationChannelnotificationChannel()Email notification settings for a spend alert. final JsonValue_object_()The object type, which is always organization.spend_alert.final LongthresholdAmount()The alert threshold amount, in cents. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OrganizationSpendAlert.Currency>_currency()Returns the raw JSON value of currency. final JsonField<OrganizationSpendAlert.Interval>_interval()Returns the raw JSON value of interval. final JsonField<OrganizationSpendAlert.NotificationChannel>_notificationChannel()Returns the raw JSON value of notificationChannel. final JsonField<Long>_thresholdAmount()Returns the raw JSON value of thresholdAmount. final Map<String, JsonValue>_additionalProperties()final OrganizationSpendAlert.BuildertoBuilder()final OrganizationSpendAlertvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrganizationSpendAlert.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationSpendAlert. -
-
Method Detail
-
currency
final OrganizationSpendAlert.Currency currency()
The currency for the threshold amount.
-
interval
final OrganizationSpendAlert.Interval interval()
The time interval for evaluating spend against the threshold.
-
notificationChannel
final OrganizationSpendAlert.NotificationChannel notificationChannel()
Email notification settings for a spend alert.
-
_object_
final JsonValue _object_()
The object type, which is always
organization.spend_alert.Expected to always return the following:
JsonValue.from("organization.spend_alert")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
thresholdAmount
final Long thresholdAmount()
The alert threshold amount, in cents.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_currency
final JsonField<OrganizationSpendAlert.Currency> _currency()
Returns the raw JSON value of currency.
Unlike currency, this method doesn't throw if the JSON field has an unexpected type.
-
_interval
final JsonField<OrganizationSpendAlert.Interval> _interval()
Returns the raw JSON value of interval.
Unlike interval, this method doesn't throw if the JSON field has an unexpected type.
-
_notificationChannel
final JsonField<OrganizationSpendAlert.NotificationChannel> _notificationChannel()
Returns the raw JSON value of notificationChannel.
Unlike notificationChannel, this method doesn't throw if the JSON field has an unexpected type.
-
_thresholdAmount
final JsonField<Long> _thresholdAmount()
Returns the raw JSON value of thresholdAmount.
Unlike thresholdAmount, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OrganizationSpendAlert.Builder toBuilder()
-
validate
final OrganizationSpendAlert validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static OrganizationSpendAlert.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationSpendAlert.
The following fields are required:
.id() .currency() .interval() .notificationChannel() .thresholdAmount()
-
-
-
-