Class EditTemplate.Builder
- java.lang.Object
-
- ai.extend.types.EditTemplate.Builder
-
- All Implemented Interfaces:
EditTemplate._FinalStage,EditTemplate.ConfigStage,EditTemplate.CreatedAtStage,EditTemplate.FileStage,EditTemplate.IdStage,EditTemplate.NameStage,EditTemplate.UpdatedAtStage
- Enclosing class:
- EditTemplate
public static final class EditTemplate.Builder extends java.lang.Object implements EditTemplate.IdStage, EditTemplate.NameStage, EditTemplate.FileStage, EditTemplate.ConfigStage, EditTemplate.CreatedAtStage, EditTemplate.UpdatedAtStage, EditTemplate._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditTemplatebuild()EditTemplate.CreatedAtStageconfig(EditConfig config)Default edit configuration saved on the template.EditTemplate.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)EditTemplate._FinalStagedescription(Nullable<java.lang.String> description)The description of the edit template, if one was provided.EditTemplate._FinalStagedescription(java.lang.String description)The description of the edit template, if one was provided.EditTemplate._FinalStagedescription(java.util.Optional<java.lang.String> description)The description of the edit template, if one was provided.EditTemplate.ConfigStagefile(FileSummary file)The source file associated with this edit template.EditTemplate.Builderfrom(EditTemplate other)EditTemplate.NameStageid(java.lang.String id)A unique identifier for the edit template.EditTemplate.FileStagename(java.lang.String name)The name of the edit template.EditTemplate._FinalStageschemaConfig(Nullable<EditSchemaGenerationConfig> schemaConfig)Optional schema generation configuration saved on the template.EditTemplate._FinalStageschemaConfig(EditSchemaGenerationConfig schemaConfig)Optional schema generation configuration saved on the template.EditTemplate._FinalStageschemaConfig(java.util.Optional<EditSchemaGenerationConfig> schemaConfig)Optional schema generation configuration saved on the template.EditTemplate._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)
-
-
-
Method Detail
-
from
public EditTemplate.Builder from(EditTemplate other)
- Specified by:
fromin interfaceEditTemplate.IdStage
-
id
public EditTemplate.NameStage id(@NotNull java.lang.String id)
A unique identifier for the edit template.
Example:
"edt_xK9mLPqRtN3vS8wF5hB2cQ"A unique identifier for the edit template.
Example:
"edt_xK9mLPqRtN3vS8wF5hB2cQ"- Specified by:
idin interfaceEditTemplate.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public EditTemplate.FileStage name(@NotNull java.lang.String name)
The name of the edit template.
The name of the edit template.
- Specified by:
namein interfaceEditTemplate.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
file
public EditTemplate.ConfigStage file(@NotNull FileSummary file)
The source file associated with this edit template.
The source file associated with this edit template.
- Specified by:
filein interfaceEditTemplate.FileStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
config
public EditTemplate.CreatedAtStage config(@NotNull EditConfig config)
Default edit configuration saved on the template. Empty when no edit configuration was saved.
Default edit configuration saved on the template. Empty when no edit configuration was saved.
- Specified by:
configin interfaceEditTemplate.ConfigStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public EditTemplate.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceEditTemplate.CreatedAtStage
-
updatedAt
public EditTemplate._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
- Specified by:
updatedAtin interfaceEditTemplate.UpdatedAtStage
-
schemaConfig
public EditTemplate._FinalStage schemaConfig(Nullable<EditSchemaGenerationConfig> schemaConfig)
Optional schema generation configuration saved on the template.
- Specified by:
schemaConfigin interfaceEditTemplate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
schemaConfig
public EditTemplate._FinalStage schemaConfig(EditSchemaGenerationConfig schemaConfig)
Optional schema generation configuration saved on the template.
- Specified by:
schemaConfigin interfaceEditTemplate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
schemaConfig
public EditTemplate._FinalStage schemaConfig(java.util.Optional<EditSchemaGenerationConfig> schemaConfig)
Optional schema generation configuration saved on the template.
- Specified by:
schemaConfigin interfaceEditTemplate._FinalStage
-
description
public EditTemplate._FinalStage description(Nullable<java.lang.String> description)
The description of the edit template, if one was provided.
- Specified by:
descriptionin interfaceEditTemplate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public EditTemplate._FinalStage description(java.lang.String description)
The description of the edit template, if one was provided.
- Specified by:
descriptionin interfaceEditTemplate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public EditTemplate._FinalStage description(java.util.Optional<java.lang.String> description)
The description of the edit template, if one was provided.
- Specified by:
descriptionin interfaceEditTemplate._FinalStage
-
build
public EditTemplate build()
- Specified by:
buildin interfaceEditTemplate._FinalStage
-
-