Class FileContentsPagesItem.Builder
- java.lang.Object
-
- ai.extend.types.FileContentsPagesItem.Builder
-
- All Implemented Interfaces:
FileContentsPagesItem._FinalStage,FileContentsPagesItem.PageNumberStage
- Enclosing class:
- FileContentsPagesItem
public static final class FileContentsPagesItem.Builder extends java.lang.Object implements FileContentsPagesItem.PageNumberStage, FileContentsPagesItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileContentsPagesItembuild()FileContentsPagesItem.Builderfrom(FileContentsPagesItem other)FileContentsPagesItem._FinalStagehtml(java.lang.String html)HTML content of the page.FileContentsPagesItem._FinalStagehtml(java.util.Optional<java.lang.String> html)HTML content of the page.FileContentsPagesItem._FinalStagemarkdown(java.lang.String markdown)Cleaned and structured markdown content of this page.FileContentsPagesItem._FinalStagemarkdown(java.util.Optional<java.lang.String> markdown)Cleaned and structured markdown content of this page.FileContentsPagesItem._FinalStagepageHeight(java.lang.Double pageHeight)The height of the page in points.FileContentsPagesItem._FinalStagepageHeight(java.util.Optional<java.lang.Double> pageHeight)The height of the page in points.FileContentsPagesItem._FinalStagepageNumber(int pageNumber)The page number of this page in the document.FileContentsPagesItem._FinalStagepageWidth(java.lang.Double pageWidth)The width of the page in points.FileContentsPagesItem._FinalStagepageWidth(java.util.Optional<java.lang.Double> pageWidth)The width of the page in points.
-
-
-
Method Detail
-
from
public FileContentsPagesItem.Builder from(FileContentsPagesItem other)
- Specified by:
fromin interfaceFileContentsPagesItem.PageNumberStage
-
pageNumber
public FileContentsPagesItem._FinalStage pageNumber(int pageNumber)
The page number of this page in the document.
The page number of this page in the document.
- Specified by:
pageNumberin interfaceFileContentsPagesItem.PageNumberStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
html
public FileContentsPagesItem._FinalStage html(java.lang.String html)
HTML content of the page. Available for DOCX file types when the
htmlquery parameter is set to true.- Specified by:
htmlin interfaceFileContentsPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
html
public FileContentsPagesItem._FinalStage html(java.util.Optional<java.lang.String> html)
HTML content of the page. Available for DOCX file types when the
htmlquery parameter is set to true.- Specified by:
htmlin interfaceFileContentsPagesItem._FinalStage
-
markdown
public FileContentsPagesItem._FinalStage markdown(java.lang.String markdown)
Cleaned and structured markdown content of this page. Available for PDF and IMG file types when the
markdownquery parameter is set to true.- Specified by:
markdownin interfaceFileContentsPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
markdown
public FileContentsPagesItem._FinalStage markdown(java.util.Optional<java.lang.String> markdown)
Cleaned and structured markdown content of this page. Available for PDF and IMG file types when the
markdownquery parameter is set to true.- Specified by:
markdownin interfaceFileContentsPagesItem._FinalStage
-
pageWidth
public FileContentsPagesItem._FinalStage pageWidth(java.lang.Double pageWidth)
The width of the page in points. Available for PDF and IMG file types.
- Specified by:
pageWidthin interfaceFileContentsPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pageWidth
public FileContentsPagesItem._FinalStage pageWidth(java.util.Optional<java.lang.Double> pageWidth)
The width of the page in points. Available for PDF and IMG file types.
- Specified by:
pageWidthin interfaceFileContentsPagesItem._FinalStage
-
pageHeight
public FileContentsPagesItem._FinalStage pageHeight(java.lang.Double pageHeight)
The height of the page in points. Available for PDF and IMG file types.
- Specified by:
pageHeightin interfaceFileContentsPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pageHeight
public FileContentsPagesItem._FinalStage pageHeight(java.util.Optional<java.lang.Double> pageHeight)
The height of the page in points. Available for PDF and IMG file types.
- Specified by:
pageHeightin interfaceFileContentsPagesItem._FinalStage
-
build
public FileContentsPagesItem build()
- Specified by:
buildin interfaceFileContentsPagesItem._FinalStage
-
-