Class EditSchemaGenerationResponse.Builder
- java.lang.Object
-
- ai.extend.types.EditSchemaGenerationResponse.Builder
-
- All Implemented Interfaces:
EditSchemaGenerationResponse._FinalStage,EditSchemaGenerationResponse.SchemaStage
- Enclosing class:
- EditSchemaGenerationResponse
public static final class EditSchemaGenerationResponse.Builder extends java.lang.Object implements EditSchemaGenerationResponse.SchemaStage, EditSchemaGenerationResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditSchemaGenerationResponse._FinalStageannotatedSchema(Nullable<EditRootJson> annotatedSchema)The original schema that was detected and annotated from the file.EditSchemaGenerationResponse._FinalStageannotatedSchema(EditRootJson annotatedSchema)The original schema that was detected and annotated from the file.EditSchemaGenerationResponse._FinalStageannotatedSchema(java.util.Optional<EditRootJson> annotatedSchema)The original schema that was detected and annotated from the file.EditSchemaGenerationResponsebuild()EditSchemaGenerationResponse.Builderfrom(EditSchemaGenerationResponse other)EditSchemaGenerationResponse._FinalStagemappingResult(Nullable<EditSchemaGenerationMappingResult> mappingResult)Mapping information betweeninputSchemapaths and detected form fields when an input schema was provided.EditSchemaGenerationResponse._FinalStagemappingResult(EditSchemaGenerationMappingResult mappingResult)Mapping information betweeninputSchemapaths and detected form fields when an input schema was provided.EditSchemaGenerationResponse._FinalStagemappingResult(java.util.Optional<EditSchemaGenerationMappingResult> mappingResult)Mapping information betweeninputSchemapaths and detected form fields when an input schema was provided.EditSchemaGenerationResponse._FinalStageschema(EditRootJson schema)The final generated schema after mapping.
-
-
-
Method Detail
-
from
public EditSchemaGenerationResponse.Builder from(EditSchemaGenerationResponse other)
- Specified by:
fromin interfaceEditSchemaGenerationResponse.SchemaStage
-
schema
public EditSchemaGenerationResponse._FinalStage schema(@NotNull EditRootJson schema)
The final generated schema after mapping. If no input schema was provided this will be the same as the annotatedSchema.
The final generated schema after mapping. If no input schema was provided this will be the same as the annotatedSchema.
- Specified by:
schemain interfaceEditSchemaGenerationResponse.SchemaStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
mappingResult
public EditSchemaGenerationResponse._FinalStage mappingResult(Nullable<EditSchemaGenerationMappingResult> mappingResult)
Mapping information between
inputSchemapaths and detected form fields when an input schema was provided.- Specified by:
mappingResultin interfaceEditSchemaGenerationResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
mappingResult
public EditSchemaGenerationResponse._FinalStage mappingResult(EditSchemaGenerationMappingResult mappingResult)
Mapping information between
inputSchemapaths and detected form fields when an input schema was provided.- Specified by:
mappingResultin interfaceEditSchemaGenerationResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
mappingResult
public EditSchemaGenerationResponse._FinalStage mappingResult(java.util.Optional<EditSchemaGenerationMappingResult> mappingResult)
Mapping information between
inputSchemapaths and detected form fields when an input schema was provided.- Specified by:
mappingResultin interfaceEditSchemaGenerationResponse._FinalStage
-
annotatedSchema
public EditSchemaGenerationResponse._FinalStage annotatedSchema(Nullable<EditRootJson> annotatedSchema)
The original schema that was detected and annotated from the file.
- Specified by:
annotatedSchemain interfaceEditSchemaGenerationResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
annotatedSchema
public EditSchemaGenerationResponse._FinalStage annotatedSchema(EditRootJson annotatedSchema)
The original schema that was detected and annotated from the file.
- Specified by:
annotatedSchemain interfaceEditSchemaGenerationResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
annotatedSchema
public EditSchemaGenerationResponse._FinalStage annotatedSchema(java.util.Optional<EditRootJson> annotatedSchema)
The original schema that was detected and annotated from the file.
- Specified by:
annotatedSchemain interfaceEditSchemaGenerationResponse._FinalStage
-
build
public EditSchemaGenerationResponse build()
- Specified by:
buildin interfaceEditSchemaGenerationResponse._FinalStage
-
-