Class ArtifactRef.Builder
java.lang.Object
ai.docling.serve.api.convert.response.ArtifactRef.Builder
- Enclosing class:
- ArtifactRef
Builder for creating
ArtifactRef instances.
Generated by Lombok's @Builder annotation.
Builder methods:
artifactType(ArtifactType)- Set the artifact typemimeType(String)- Set the MIME typeuri(URI)- Set the presigned URLurlExpiresAt(Instant)- Set the expiry timestamp
-
Method Summary
Modifier and TypeMethodDescription@NonNull ArtifactRef.BuilderartifactType(@NonNull ArtifactType artifactType) Export format of the artifact.@NonNull ArtifactRefbuild()@NonNull ArtifactRef.BuilderMIME type of the artifact content.@NonNull StringtoString()@NonNull ArtifactRef.BuilderPresigned URL used to download the artifact.@NonNull ArtifactRef.BuilderurlExpiresAt(@Nullable Instant urlExpiresAt) Instant at which the presigned URL signature stops being valid.
-
Method Details
-
artifactType
Export format of the artifact.- Parameters:
artifactType- the artifact type- Returns:
this.
-
mimeType
MIME type of the artifact content.- Parameters:
mimeType- the MIME type- Returns:
this.
-
uri
Presigned URL used to download the artifact.- Parameters:
uri- the presigned URL- Returns:
this.
-
urlExpiresAt
Instant at which the presigned URL signature stops being valid.- Parameters:
urlExpiresAt- the expiry timestamp- Returns:
this.
-
build
-
toString
-