Class SpendAlertCreateParams.Body
-
- All Implemented Interfaces:
public final class SpendAlertCreateParams.BodyParameters for creating or updating a spend alert.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendAlertCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final SpendAlertCreateParams.Currencycurrency()The currency for the threshold amount. final SpendAlertCreateParams.Intervalinterval()The time interval for evaluating spend against the threshold. final SpendAlertCreateParams.NotificationChannelnotificationChannel()Email notification settings for a spend alert. final LongthresholdAmount()The alert threshold amount, in cents. final JsonField<SpendAlertCreateParams.Currency>_currency()Returns the raw JSON value of currency. final JsonField<SpendAlertCreateParams.Interval>_interval()Returns the raw JSON value of interval. final JsonField<SpendAlertCreateParams.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 SpendAlertCreateParams.Body.BuildertoBuilder()final SpendAlertCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpendAlertCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
currency
final SpendAlertCreateParams.Currency currency()
The currency for the threshold amount.
-
interval
final SpendAlertCreateParams.Interval interval()
The time interval for evaluating spend against the threshold.
-
notificationChannel
final SpendAlertCreateParams.NotificationChannel notificationChannel()
Email notification settings for a spend alert.
-
thresholdAmount
final Long thresholdAmount()
The alert threshold amount, in cents.
-
_currency
final JsonField<SpendAlertCreateParams.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<SpendAlertCreateParams.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<SpendAlertCreateParams.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 SpendAlertCreateParams.Body.Builder toBuilder()
-
validate
final SpendAlertCreateParams.Body 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 SpendAlertCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.currency() .interval() .notificationChannel() .thresholdAmount()
-
-
-
-