public class PreviewResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PreviewResult.Builder
Builder for
PreviewResult . |
Modifier and Type | Field and Description |
---|---|
protected FileMetadata |
fileMetadata |
protected MinimalFileLinkMetadata |
linkMetadata |
Constructor and Description |
---|
PreviewResult()
None
|
PreviewResult(FileMetadata fileMetadata,
MinimalFileLinkMetadata linkMetadata)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
FileMetadata |
getFileMetadata()
Metadata corresponding to the file received as an argument.
|
MinimalFileLinkMetadata |
getLinkMetadata()
Minimal metadata corresponding to the file received as an argument.
|
int |
hashCode() |
static PreviewResult.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final FileMetadata fileMetadata
protected final MinimalFileLinkMetadata linkMetadata
public PreviewResult(FileMetadata fileMetadata, MinimalFileLinkMetadata linkMetadata)
newBuilder
to create instances of this class without
specifying values for all optional fields.fileMetadata
- Metadata corresponding to the file received as an
argument. Will be populated if the endpoint is called with a path
(ReadPath).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()
The default values for unset fields will be used.
public FileMetadata getFileMetadata()
null
if not present.public MinimalFileLinkMetadata getLinkMetadata()
null
if not present.public static PreviewResult.Builder newBuilder()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.