Class SpendLimitSetParams.Body
-
- All Implemented Interfaces:
public final class SpendLimitSetParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendLimitSetParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<String>amount()Limit amount as a non-negative integer decimal string in the minor unit of the organization's billing currency (cents for USD): "50000" is $500.00. final SpendLimitSetParams.Scopescope()What the limit applies to. final Optional<BetaSpendLimitPeriod>period()final JsonField<String>_amount()Returns the raw JSON value of amount. final JsonField<SpendLimitSetParams.Scope>_scope()Returns the raw JSON value of scope. final JsonField<BetaSpendLimitPeriod>_period()Returns the raw JSON value of period. final Map<String, JsonValue>_additionalProperties()final SpendLimitSetParams.Body.BuildertoBuilder()final SpendLimitSetParams.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 SpendLimitSetParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
amount
final Optional<String> amount()
Limit amount as a non-negative integer decimal string in the minor unit of the organization's billing currency (cents for USD): "50000" is $500.00.
nullsets an explicit no-limit override for this scope andperiodonly — each period resolves independently, so caps for other periods still apply.
-
scope
final SpendLimitSetParams.Scope scope()
What the limit applies to. Claude Enterprise organizations set
userlimits. Claude Console organizations setorganizationandworkspacelimits. Any other combination returns 400. Settingorganizationandworkspacelimits through the API is in an early access preview. To request access, contact your Anthropic account team.
-
period
final Optional<BetaSpendLimitPeriod> period()
-
_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.
-
_scope
final JsonField<SpendLimitSetParams.Scope> _scope()
Returns the raw JSON value of scope.
Unlike scope, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SpendLimitSetParams.Body.Builder toBuilder()
-
validate
final SpendLimitSetParams.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 SpendLimitSetParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.amount() .scope()
-
-
-
-