Package ai.extend.types
Class FileSummary.Builder
- java.lang.Object
-
- ai.extend.types.FileSummary.Builder
-
- All Implemented Interfaces:
FileSummary._FinalStage,FileSummary.CreatedAtStage,FileSummary.IdStage,FileSummary.MetadataStage,FileSummary.NameStage,FileSummary.UpdatedAtStage
- Enclosing class:
- FileSummary
public static final class FileSummary.Builder extends java.lang.Object implements FileSummary.IdStage, FileSummary.NameStage, FileSummary.MetadataStage, FileSummary.CreatedAtStage, FileSummary.UpdatedAtStage, FileSummary._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSummarybuild()FileSummary.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)FileSummary.Builderfrom(FileSummary other)FileSummary.NameStageid(java.lang.String id)ID for the file.FileSummary.CreatedAtStagemetadata(FileMetadata metadata)FileSummary.MetadataStagename(java.lang.String name)The name of the fileFileSummary._FinalStageparentFileId(Nullable<java.lang.String> parentFileId)ID of the parent file.FileSummary._FinalStageparentFileId(java.lang.String parentFileId)ID of the parent file.FileSummary._FinalStageparentFileId(java.util.Optional<java.lang.String> parentFileId)ID of the parent file.FileSummary._FinalStagetype(Nullable<FileType> type)The type of the file.FileSummary._FinalStagetype(FileType type)The type of the file.FileSummary._FinalStagetype(java.util.Optional<FileType> type)The type of the file.FileSummary._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)
-
-
-
Method Detail
-
from
public FileSummary.Builder from(FileSummary other)
- Specified by:
fromin interfaceFileSummary.IdStage
-
id
public FileSummary.NameStage id(@NotNull java.lang.String id)
ID for the file.
Example:
"file_xK9mLPqRtN3vS8wF5hB2cQ"ID for the file.
Example:
"file_xK9mLPqRtN3vS8wF5hB2cQ"- Specified by:
idin interfaceFileSummary.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public FileSummary.MetadataStage name(@NotNull java.lang.String name)
The name of the file
Example:
"Invoices.pdf"The name of the file
Example:
"Invoices.pdf"- Specified by:
namein interfaceFileSummary.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public FileSummary.CreatedAtStage metadata(@NotNull FileMetadata metadata)
- Specified by:
metadatain interfaceFileSummary.MetadataStage
-
createdAt
public FileSummary.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceFileSummary.CreatedAtStage
-
updatedAt
public FileSummary._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
- Specified by:
updatedAtin interfaceFileSummary.UpdatedAtStage
-
parentFileId
public FileSummary._FinalStage parentFileId(Nullable<java.lang.String> parentFileId)
ID of the parent file.
Availability: Present for files created via a Splitter in a workflow.
- Specified by:
parentFileIdin interfaceFileSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentFileId
public FileSummary._FinalStage parentFileId(java.lang.String parentFileId)
ID of the parent file.
Availability: Present for files created via a Splitter in a workflow.
- Specified by:
parentFileIdin interfaceFileSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentFileId
public FileSummary._FinalStage parentFileId(java.util.Optional<java.lang.String> parentFileId)
ID of the parent file.
Availability: Present for files created via a Splitter in a workflow.
- Specified by:
parentFileIdin interfaceFileSummary._FinalStage
-
type
public FileSummary._FinalStage type(Nullable<FileType> type)
The type of the file.
Availability: Present when the file type could be determined.
- Specified by:
typein interfaceFileSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public FileSummary._FinalStage type(FileType type)
The type of the file.
Availability: Present when the file type could be determined.
- Specified by:
typein interfaceFileSummary._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public FileSummary._FinalStage type(java.util.Optional<FileType> type)
The type of the file.
Availability: Present when the file type could be determined.
- Specified by:
typein interfaceFileSummary._FinalStage
-
build
public FileSummary build()
- Specified by:
buildin interfaceFileSummary._FinalStage
-
-