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