Package com.dropbox.core.v2.files
Class PreviewResult.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.PreviewResult.Builder
-
- Enclosing class:
- PreviewResult
public static class PreviewResult.Builder extends java.lang.Object
Builder forPreviewResult
.
-
-
Field Summary
Fields Modifier and Type Field Description protected FileMetadata
fileMetadata
protected MinimalFileLinkMetadata
linkMetadata
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreviewResult
build()
Builds an instance ofPreviewResult
configured with this builder's valuesPreviewResult.Builder
withFileMetadata(FileMetadata fileMetadata)
Set value for optional field.PreviewResult.Builder
withLinkMetadata(MinimalFileLinkMetadata linkMetadata)
Set value for optional field.
-
-
-
Field Detail
-
fileMetadata
protected FileMetadata fileMetadata
-
linkMetadata
protected MinimalFileLinkMetadata linkMetadata
-
-
Method Detail
-
withFileMetadata
public PreviewResult.Builder withFileMetadata(FileMetadata fileMetadata)
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
public PreviewResult.Builder withLinkMetadata(MinimalFileLinkMetadata linkMetadata)
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
public PreviewResult build()
Builds an instance ofPreviewResult
configured with this builder's values- Returns:
- new instance of
PreviewResult
-
-