Class LegacyProcessor.Builder
- java.lang.Object
-
- ai.extend.types.LegacyProcessor.Builder
-
- All Implemented Interfaces:
LegacyProcessor._FinalStage,LegacyProcessor.CreatedAtStage,LegacyProcessor.DraftVersionStage,LegacyProcessor.IdStage,LegacyProcessor.NameStage,LegacyProcessor.ObjectStage,LegacyProcessor.TypeStage,LegacyProcessor.UpdatedAtStage
- Enclosing class:
- LegacyProcessor
public static final class LegacyProcessor.Builder extends java.lang.Object implements LegacyProcessor.ObjectStage, LegacyProcessor.IdStage, LegacyProcessor.NameStage, LegacyProcessor.TypeStage, LegacyProcessor.CreatedAtStage, LegacyProcessor.UpdatedAtStage, LegacyProcessor.DraftVersionStage, LegacyProcessor._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyProcessorbuild()LegacyProcessor.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)The time (in UTC) at which the processor was created.LegacyProcessor._FinalStagedraftVersion(LegacyProcessorVersion draftVersion)LegacyProcessor.Builderfrom(LegacyProcessor other)LegacyProcessor.NameStageid(java.lang.String id)The ID of the processor.LegacyProcessor.TypeStagename(java.lang.String name)The name of the processor.LegacyProcessor.IdStageobject(java.lang.String object)The type of response.LegacyProcessor.CreatedAtStagetype(LegacyProcessorType type)LegacyProcessor.DraftVersionStageupdatedAt(java.time.OffsetDateTime updatedAt)The time (in UTC) at which the processor was last updated.
-
-
-
Method Detail
-
from
public LegacyProcessor.Builder from(LegacyProcessor other)
- Specified by:
fromin interfaceLegacyProcessor.ObjectStage
-
object
public LegacyProcessor.IdStage object(@NotNull java.lang.String object)
The type of response. In this case, it will always be
"document_processor".The type of response. In this case, it will always be
"document_processor".- Specified by:
objectin interfaceLegacyProcessor.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public LegacyProcessor.NameStage id(@NotNull java.lang.String id)
The ID of the processor.
Example:
"ex_Xj8mK2pL9nR4vT7qY5wZ"The ID of the processor.
Example:
"ex_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
idin interfaceLegacyProcessor.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public LegacyProcessor.TypeStage name(@NotNull java.lang.String name)
The name of the processor.
Example:
"Invoice Processor"The name of the processor.
Example:
"Invoice Processor"- Specified by:
namein interfaceLegacyProcessor.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public LegacyProcessor.CreatedAtStage type(@NotNull LegacyProcessorType type)
- Specified by:
typein interfaceLegacyProcessor.TypeStage
-
createdAt
public LegacyProcessor.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
The time (in UTC) at which the processor was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"The time (in UTC) at which the processor was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"- Specified by:
createdAtin interfaceLegacyProcessor.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public LegacyProcessor.DraftVersionStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
The time (in UTC) at which the processor was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"The time (in UTC) at which the processor was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"- Specified by:
updatedAtin interfaceLegacyProcessor.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
draftVersion
public LegacyProcessor._FinalStage draftVersion(@NotNull LegacyProcessorVersion draftVersion)
- Specified by:
draftVersionin interfaceLegacyProcessor.DraftVersionStage
-
build
public LegacyProcessor build()
- Specified by:
buildin interfaceLegacyProcessor._FinalStage
-
-