Class IncreaseRequestApproveParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class IncreaseRequestApproveParams implements Params
Approve a pending spend limit increase request.
Writes a per-user spend limit at
amountfor the requester and transitions the request toapproved.perioddefaults to the period the member was blocked on. Anthropic emails the requester unlesssuppress_notificationis set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classIncreaseRequestApproveParams.BuilderA builder for IncreaseRequestApproveParams.
public final classIncreaseRequestApproveParams.Body
-
Method Summary
Modifier and Type Method Description final Optional<String>spendLimitIncreaseRequestId()ID of the spend limit increase request. final Stringamount()New per-user spend limit as a non-negative integer decimal string (minor units). final Optional<BetaSpendLimitPeriod>period()final Optional<Boolean>suppressNotification()final JsonField<String>_amount()Returns the raw JSON value of amount. final JsonField<BetaSpendLimitPeriod>_period()Returns the raw JSON value of period. final JsonField<Boolean>_suppressNotification()Returns the raw JSON value of suppressNotification. 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 IncreaseRequestApproveParams.BuildertoBuilder()final IncreaseRequestApproveParams.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. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static IncreaseRequestApproveParams.Builderbuilder()Returns a mutable builder for constructing an instance of IncreaseRequestApproveParams. -
-
Method Detail
-
spendLimitIncreaseRequestId
final Optional<String> spendLimitIncreaseRequestId()
ID of the spend limit increase request.
-
amount
final String amount()
New per-user spend limit as a non-negative integer decimal string (minor units).
-
period
final Optional<BetaSpendLimitPeriod> period()
-
suppressNotification
final Optional<Boolean> suppressNotification()
-
_amount
final JsonField<String> _amount()
Returns the raw JSON value of amount.
Unlike amount, this method doesn't throw if the JSON field has an unexpected type.
-
_period
final JsonField<BetaSpendLimitPeriod> _period()
Returns the raw JSON value of period.
Unlike period, this method doesn't throw if the JSON field has an unexpected type.
-
_suppressNotification
final JsonField<Boolean> _suppressNotification()
Returns the raw JSON value of suppressNotification.
Unlike suppressNotification, 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 IncreaseRequestApproveParams.Builder toBuilder()
-
_body
final IncreaseRequestApproveParams.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.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static IncreaseRequestApproveParams.Builder builder()
Returns a mutable builder for constructing an instance of IncreaseRequestApproveParams.
The following fields are required:
.amount()
-
-
-
-