Class Processor.Builder
- java.lang.Object
-
- ai.extend.types.Processor.Builder
-
- All Implemented Interfaces:
Processor._FinalStage,Processor.CreatedAtStage,Processor.DraftVersionStage,Processor.IdStage,Processor.NameStage,Processor.ObjectStage,Processor.TypeStage,Processor.UpdatedAtStage
- Enclosing class:
- Processor
public static final class Processor.Builder extends java.lang.Object implements Processor.ObjectStage, Processor.IdStage, Processor.NameStage, Processor.TypeStage, Processor.CreatedAtStage, Processor.UpdatedAtStage, Processor.DraftVersionStage, Processor._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Processorbuild()Processor.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)The time (in UTC) at which the processor was created.Processor._FinalStagedraftVersion(ProcessorVersion draftVersion)Processor.Builderfrom(Processor other)Processor.NameStageid(java.lang.String id)The ID of the processor.Processor.TypeStagename(java.lang.String name)The name of the processor.Processor.IdStageobject(java.lang.String object)The type of response.Processor.CreatedAtStagetype(ProcessorType type)Processor.DraftVersionStageupdatedAt(java.time.OffsetDateTime updatedAt)The time (in UTC) at which the processor was last updated.
-
-
-
Method Detail
-
from
public Processor.Builder from(Processor other)
- Specified by:
fromin interfaceProcessor.ObjectStage
-
object
public Processor.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 interfaceProcessor.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public Processor.NameStage id(@NotNull java.lang.String id)
The ID of the processor.
Example:
"dp_Xj8mK2pL9nR4vT7qY5wZ"The ID of the processor.
Example:
"dp_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
idin interfaceProcessor.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Processor.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 interfaceProcessor.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public Processor.CreatedAtStage type(@NotNull ProcessorType type)
- Specified by:
typein interfaceProcessor.TypeStage
-
createdAt
public Processor.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 interfaceProcessor.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Processor.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 interfaceProcessor.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
draftVersion
public Processor._FinalStage draftVersion(@NotNull ProcessorVersion draftVersion)
- Specified by:
draftVersionin interfaceProcessor.DraftVersionStage
-
build
public Processor build()
- Specified by:
buildin interfaceProcessor._FinalStage
-
-