public static class PreviewResult.Builder
extends java.lang.Object
PreviewResult
.Modifier and Type | Field and Description |
---|---|
protected FileMetadata |
fileMetadata |
protected MinimalFileLinkMetadata |
linkMetadata |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
PreviewResult |
build()
Builds an instance of
PreviewResult configured with this
builder's values |
PreviewResult.Builder |
withFileMetadata(FileMetadata fileMetadata)
Set value for optional field.
|
PreviewResult.Builder |
withLinkMetadata(MinimalFileLinkMetadata linkMetadata)
Set value for optional field.
|
protected FileMetadata fileMetadata
protected MinimalFileLinkMetadata linkMetadata
public PreviewResult.Builder withFileMetadata(FileMetadata fileMetadata)
fileMetadata
- Metadata corresponding to the file received as
an argument. Will be populated if the endpoint is called with a
path (ReadPath).public PreviewResult.Builder withLinkMetadata(MinimalFileLinkMetadata linkMetadata)
linkMetadata
- Minimal metadata corresponding to the file
received as an argument. Will be populated if the endpoint is
called using a shared link (SharedLinkFileInfo).public PreviewResult build()
PreviewResult
configured with this
builder's valuesPreviewResult