Class SpendAlertCreateParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class SpendAlertCreateParams implements Params
Creates a project spend alert.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendAlertCreateParams.BuilderA builder for SpendAlertCreateParams.
public final classSpendAlertCreateParams.BodyParameters for creating or updating a spend alert.
public final classSpendAlertCreateParams.CurrencyThe currency for the threshold amount.
public final classSpendAlertCreateParams.IntervalThe time interval for evaluating spend against the threshold.
public final classSpendAlertCreateParams.NotificationChannelEmail notification settings for a spend alert.
-
Method Summary
Modifier and Type Method Description final Optional<String>projectId()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>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final SpendAlertCreateParams.BuildertoBuilder()final SpendAlertCreateParams.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 SpendAlertCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of SpendAlertCreateParams. -
-
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.
-
_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 SpendAlertCreateParams.Builder toBuilder()
-
_body
final SpendAlertCreateParams.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 SpendAlertCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of SpendAlertCreateParams.
The following fields are required:
.currency() .interval() .notificationChannel() .thresholdAmount()
-
-
-
-