Class SpendAlertUpdateParams.Body
-
- All Implemented Interfaces:
public final class SpendAlertUpdateParams.BodyParameters for creating or updating a spend alert.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendAlertUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final SpendAlertUpdateParams.Currencycurrency()The currency for the threshold amount. final SpendAlertUpdateParams.Intervalinterval()The time interval for evaluating spend against the threshold. final SpendAlertUpdateParams.NotificationChannelnotificationChannel()Email notification settings for a spend alert. final LongthresholdAmount()The alert threshold amount, in cents. final JsonField<SpendAlertUpdateParams.Currency>_currency()Returns the raw JSON value of currency. final JsonField<SpendAlertUpdateParams.Interval>_interval()Returns the raw JSON value of interval. final JsonField<SpendAlertUpdateParams.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 SpendAlertUpdateParams.Body.BuildertoBuilder()final SpendAlertUpdateParams.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 SpendAlertUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
currency
final SpendAlertUpdateParams.Currency currency()
The currency for the threshold amount.
-
interval
final SpendAlertUpdateParams.Interval interval()
The time interval for evaluating spend against the threshold.
-
notificationChannel
final SpendAlertUpdateParams.NotificationChannel notificationChannel()
Email notification settings for a spend alert.
-
thresholdAmount
final Long thresholdAmount()
The alert threshold amount, in cents.
-
_currency
final JsonField<SpendAlertUpdateParams.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<SpendAlertUpdateParams.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<SpendAlertUpdateParams.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 SpendAlertUpdateParams.Body.Builder toBuilder()
-
validate
final SpendAlertUpdateParams.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 SpendAlertUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.currency() .interval() .notificationChannel() .thresholdAmount()
-
-
-
-