public class GetTemporaryLinkResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
link |
protected FileMetadata |
metadata |
Constructor and Description |
---|
GetTemporaryLinkResult(FileMetadata metadata,
java.lang.String link) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLink()
The temporary link which can be used to stream content the file.
|
FileMetadata |
getMetadata()
Metadata of the file.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final FileMetadata metadata
protected final java.lang.String link
public GetTemporaryLinkResult(FileMetadata metadata, java.lang.String link)
metadata
- Metadata of the file. Must not be null
.link
- The temporary link which can be used to stream content the
file. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileMetadata getMetadata()
null
.public java.lang.String getLink()
null
.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.