Class SpendAlertUpdateParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class SpendAlertUpdateParams implements Params
Updates a project spend alert.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendAlertUpdateParams.BuilderA builder for SpendAlertUpdateParams.
public final classSpendAlertUpdateParams.BodyParameters for creating or updating a spend alert.
public final classSpendAlertUpdateParams.CurrencyThe currency for the threshold amount.
public final classSpendAlertUpdateParams.IntervalThe time interval for evaluating spend against the threshold.
public final classSpendAlertUpdateParams.NotificationChannelEmail notification settings for a spend alert.
-
Method Summary
Modifier and Type Method Description final StringprojectId()final Optional<String>alertId()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>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final SpendAlertUpdateParams.BuildertoBuilder()final SpendAlertUpdateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpendAlertUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of SpendAlertUpdateParams. -
-
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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final SpendAlertUpdateParams.Builder toBuilder()
-
_body
final SpendAlertUpdateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static SpendAlertUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of SpendAlertUpdateParams.
The following fields are required:
.projectId() .currency() .interval() .notificationChannel() .thresholdAmount()
-
-
-
-