Class ProjectSpendAlert
-
- All Implemented Interfaces:
public final class ProjectSpendAlertRepresents a spend alert configured at the project level.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classProjectSpendAlert.BuilderA builder for ProjectSpendAlert.
public final classProjectSpendAlert.CurrencyThe currency for the threshold amount.
public final classProjectSpendAlert.IntervalThe time interval for evaluating spend against the threshold.
public final classProjectSpendAlert.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 ProjectSpendAlert.Currencycurrency()The currency for the threshold amount. final ProjectSpendAlert.Intervalinterval()The time interval for evaluating spend against the threshold. final ProjectSpendAlert.NotificationChannelnotificationChannel()Email notification settings for a spend alert. final JsonValue_object_()The object type, which is always project.spend_alert.final LongthresholdAmount()The alert threshold amount, in cents. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<ProjectSpendAlert.Currency>_currency()Returns the raw JSON value of currency. final JsonField<ProjectSpendAlert.Interval>_interval()Returns the raw JSON value of interval. final JsonField<ProjectSpendAlert.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 ProjectSpendAlert.BuildertoBuilder()final ProjectSpendAlertvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ProjectSpendAlert.Builderbuilder()Returns a mutable builder for constructing an instance of ProjectSpendAlert. -
-
Method Detail
-
currency
final ProjectSpendAlert.Currency currency()
The currency for the threshold amount.
-
interval
final ProjectSpendAlert.Interval interval()
The time interval for evaluating spend against the threshold.
-
notificationChannel
final ProjectSpendAlert.NotificationChannel notificationChannel()
Email notification settings for a spend alert.
-
_object_
final JsonValue _object_()
The object type, which is always
project.spend_alert.Expected to always return the following:
JsonValue.from("project.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<ProjectSpendAlert.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<ProjectSpendAlert.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<ProjectSpendAlert.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 ProjectSpendAlert.Builder toBuilder()
-
validate
final ProjectSpendAlert 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 ProjectSpendAlert.Builder builder()
Returns a mutable builder for constructing an instance of ProjectSpendAlert.
The following fields are required:
.id() .currency() .interval() .notificationChannel() .thresholdAmount()
-
-
-
-