Class ProcessorVersion.Builder
- java.lang.Object
-
- ai.extend.types.ProcessorVersion.Builder
-
- All Implemented Interfaces:
ProcessorVersion._FinalStage,ProcessorVersion.ConfigStage,ProcessorVersion.CreatedAtStage,ProcessorVersion.IdStage,ProcessorVersion.ObjectStage,ProcessorVersion.ProcessorIdStage,ProcessorVersion.ProcessorTypeStage,ProcessorVersion.UpdatedAtStage,ProcessorVersion.VersionStage
- Enclosing class:
- ProcessorVersion
public static final class ProcessorVersion.Builder extends java.lang.Object implements ProcessorVersion.ObjectStage, ProcessorVersion.IdStage, ProcessorVersion.ProcessorIdStage, ProcessorVersion.ProcessorTypeStage, ProcessorVersion.VersionStage, ProcessorVersion.ConfigStage, ProcessorVersion.CreatedAtStage, ProcessorVersion.UpdatedAtStage, ProcessorVersion._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessorVersionbuild()ProcessorVersion.CreatedAtStageconfig(ProcessorVersionConfig config)The configuration settings for this version of the document processor.ProcessorVersion.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)The time (in UTC) at which this version of the document processor was created.ProcessorVersion._FinalStagedescription(java.lang.String description)An optional description of this version of the document processor.ProcessorVersion._FinalStagedescription(java.util.Optional<java.lang.String> description)An optional description of this version of the document processor.ProcessorVersion.Builderfrom(ProcessorVersion other)ProcessorVersion.ProcessorIdStageid(java.lang.String id)The unique identifier for this version of the document processor.ProcessorVersion.IdStageobject(java.lang.String object)The type of the object.ProcessorVersion.ProcessorTypeStageprocessorId(java.lang.String processorId)The ID of the parent document processor.ProcessorVersion._FinalStageprocessorName(java.lang.String processorName)The name of the parent document processor.ProcessorVersion._FinalStageprocessorName(java.util.Optional<java.lang.String> processorName)The name of the parent document processor.ProcessorVersion.VersionStageprocessorType(ProcessorType processorType)ProcessorVersion._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)The time (in UTC) at which this version of the document processor was last updated.ProcessorVersion.ConfigStageversion(java.lang.String version)The version number or identifier for this specific version of the document processor.
-
-
-
Method Detail
-
from
public ProcessorVersion.Builder from(ProcessorVersion other)
- Specified by:
fromin interfaceProcessorVersion.ObjectStage
-
object
public ProcessorVersion.IdStage object(@NotNull java.lang.String object)
The type of the object. In this case, it will always be
"document_processor_version".The type of the object. In this case, it will always be
"document_processor_version".- Specified by:
objectin interfaceProcessorVersion.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public ProcessorVersion.ProcessorIdStage id(@NotNull java.lang.String id)
The unique identifier for this version of the document processor.
Example:
"dpv_xK9mLPqRtN3vS8wF5hB2cQ"The unique identifier for this version of the document processor.
Example:
"dpv_xK9mLPqRtN3vS8wF5hB2cQ"- Specified by:
idin interfaceProcessorVersion.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorId
public ProcessorVersion.ProcessorTypeStage processorId(@NotNull java.lang.String processorId)
The ID of the parent document processor.
Example:
"dp_Xj8mK2pL9nR4vT7qY5wZ"The ID of the parent document processor.
Example:
"dp_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
processorIdin interfaceProcessorVersion.ProcessorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorType
public ProcessorVersion.VersionStage processorType(@NotNull ProcessorType processorType)
- Specified by:
processorTypein interfaceProcessorVersion.ProcessorTypeStage
-
version
public ProcessorVersion.ConfigStage version(@NotNull java.lang.String version)
The version number or identifier for this specific version of the document processor. The draft version will have version="draft".
Examples:
"1.0","2.1","draft"The version number or identifier for this specific version of the document processor. The draft version will have version="draft".
Examples:
"1.0","2.1","draft"- Specified by:
versionin interfaceProcessorVersion.VersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public ProcessorVersion.CreatedAtStage config(@NotNull ProcessorVersionConfig config)
The configuration settings for this version of the document processor. The structure of this object will vary depending on the processor type.
See the configuration section in the "Guides" tab, for yout specific processor type, for more details on the configuration settings.
The configuration settings for this version of the document processor. The structure of this object will vary depending on the processor type.
See the configuration section in the "Guides" tab, for yout specific processor type, for more details on the configuration settings.
- Specified by:
configin interfaceProcessorVersion.ConfigStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ProcessorVersion.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
The time (in UTC) at which this version of the document processor was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"The time (in UTC) at which this version of the document processor was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"- Specified by:
createdAtin interfaceProcessorVersion.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public ProcessorVersion._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
The time (in UTC) at which this version of the document processor was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"The time (in UTC) at which this version of the document processor was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"- Specified by:
updatedAtin interfaceProcessorVersion.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public ProcessorVersion._FinalStage description(java.lang.String description)
An optional description of this version of the document processor.
Example:
"Updated extraction fields for new invoice format"- Specified by:
descriptionin interfaceProcessorVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public ProcessorVersion._FinalStage description(java.util.Optional<java.lang.String> description)
An optional description of this version of the document processor.
Example:
"Updated extraction fields for new invoice format"- Specified by:
descriptionin interfaceProcessorVersion._FinalStage
-
processorName
public ProcessorVersion._FinalStage processorName(java.lang.String processorName)
The name of the parent document processor.
Example:
"Invoice Processor"- Specified by:
processorNamein interfaceProcessorVersion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorName
public ProcessorVersion._FinalStage processorName(java.util.Optional<java.lang.String> processorName)
The name of the parent document processor.
Example:
"Invoice Processor"- Specified by:
processorNamein interfaceProcessorVersion._FinalStage
-
build
public ProcessorVersion build()
- Specified by:
buildin interfaceProcessorVersion._FinalStage
-
-