Package com.dropbox.core.v2.files
Class PreviewResult.Builder
java.lang.Object
com.dropbox.core.v2.files.PreviewResult.Builder
- Enclosing class:
PreviewResult
Builder for
PreviewResult.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofPreviewResultconfigured with this builder's valueswithFileMetadata(FileMetadata fileMetadata) Set value for optional field.withLinkMetadata(MinimalFileLinkMetadata linkMetadata) Set value for optional field.
-
Field Details
-
fileMetadata
-
linkMetadata
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withFileMetadata
Set value for optional field.- Parameters:
fileMetadata- Metadata corresponding to the file received as an argument. Will be populated if the endpoint is called with a path (ReadPath).- Returns:
- this builder
-
withLinkMetadata
Set value for optional field.- Parameters:
linkMetadata- Minimal metadata corresponding to the file received as an argument. Will be populated if the endpoint is called using a shared link (SharedLinkFileInfo).- Returns:
- this builder
-
build
Builds an instance ofPreviewResultconfigured with this builder's values- Returns:
- new instance of
PreviewResult
-