Package com.anthropic.models
Class ContractSpendLimitReachedException.Builder
-
- All Implemented Interfaces:
public final class ContractSpendLimitReachedException.Builder extends RateLimitException.Builder
A builder for ContractSpendLimitReachedException.
-
-
Method Summary
Modifier and Type Method Description ContractSpendLimitReachedException.Builderheaders(Headers headers)ContractSpendLimitReachedException.Builderbody(JsonValue body)ContractSpendLimitReachedException.Buildercause(Throwable cause)ContractSpendLimitReachedException.Buildercause(Optional<Throwable> cause)Alias for calling Builder.cause with cause.orElse(null).ContractSpendLimitReachedExceptionbuild()Returns an immutable instance of ContractSpendLimitReachedException. -
-
Method Detail
-
headers
ContractSpendLimitReachedException.Builder headers(Headers headers)
-
cause
ContractSpendLimitReachedException.Builder cause(Throwable cause)
-
cause
ContractSpendLimitReachedException.Builder cause(Optional<Throwable> cause)
Alias for calling Builder.cause with
cause.orElse(null).
-
build
ContractSpendLimitReachedException build()
Returns an immutable instance of ContractSpendLimitReachedException.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.headers() .body()
-
-
-
-