Package ai.extend.types
Class ExtendError.Builder
- java.lang.Object
-
- ai.extend.types.ExtendError.Builder
-
- All Implemented Interfaces:
ExtendError._FinalStage,ExtendError.CodeStage,ExtendError.MessageStage,ExtendError.RequestIdStage,ExtendError.RetryableStage
- Enclosing class:
- ExtendError
public static final class ExtendError.Builder extends java.lang.Object implements ExtendError.CodeStage, ExtendError.MessageStage, ExtendError.RequestIdStage, ExtendError.RetryableStage, ExtendError._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendErrorbuild()ExtendError.MessageStagecode(java.lang.String code)Error code identifying the type of errorExtendError.Builderfrom(ExtendError other)ExtendError.RequestIdStagemessage(java.lang.String message)Human-readable error messageExtendError.RetryableStagerequestId(java.lang.String requestId)Unique request identifier for support purposesExtendError._FinalStageretryable(boolean retryable)Whether the request can be retried
-
-
-
Method Detail
-
from
public ExtendError.Builder from(ExtendError other)
- Specified by:
fromin interfaceExtendError.CodeStage
-
code
public ExtendError.MessageStage code(@NotNull java.lang.String code)
Error code identifying the type of error
Error code identifying the type of error
- Specified by:
codein interfaceExtendError.CodeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
message
public ExtendError.RequestIdStage message(@NotNull java.lang.String message)
Human-readable error message
Human-readable error message
- Specified by:
messagein interfaceExtendError.MessageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
requestId
public ExtendError.RetryableStage requestId(@NotNull java.lang.String requestId)
Unique request identifier for support purposes
Unique request identifier for support purposes
- Specified by:
requestIdin interfaceExtendError.RequestIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
retryable
public ExtendError._FinalStage retryable(boolean retryable)
Whether the request can be retried
Whether the request can be retried
- Specified by:
retryablein interfaceExtendError.RetryableStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public ExtendError build()
- Specified by:
buildin interfaceExtendError._FinalStage
-
-