public class SharedLinkFileInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SharedLinkFileInfo.Builder
Builder for
SharedLinkFileInfo . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
password |
protected java.lang.String |
path |
protected java.lang.String |
url |
Constructor and Description |
---|
SharedLinkFileInfo(java.lang.String url)
None
|
SharedLinkFileInfo(java.lang.String url,
java.lang.String path,
java.lang.String password)
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) |
java.lang.String |
getPassword()
Password for the shared link.
|
java.lang.String |
getPath()
The path corresponding to a file in a shared link to a folder.
|
java.lang.String |
getUrl()
The shared link corresponding to either a file or shared link to a
folder.
|
int |
hashCode() |
static SharedLinkFileInfo.Builder |
newBuilder(java.lang.String url)
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 java.lang.String url
protected final java.lang.String path
protected final java.lang.String password
public SharedLinkFileInfo(java.lang.String url, java.lang.String path, java.lang.String password)
newBuilder
to create instances of this class without
specifying values for all optional fields.url
- The shared link corresponding to either a file or shared link
to a folder. If it is for a folder shared link, we use the path param
to determine for which file in the folder the view is for. Must not
be null
.path
- The path corresponding to a file in a shared link to a
folder. Required for shared links to folders.password
- Password for the shared link. Required for
password-protected shared links to files unless it can be read from
a cookie.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedLinkFileInfo(java.lang.String url)
The default values for unset fields will be used.
url
- The shared link corresponding to either a file or shared link
to a folder. If it is for a folder shared link, we use the path param
to determine for which file in the folder the view is for. Must not
be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getUrl()
null
.public java.lang.String getPath()
null
if not present.public java.lang.String getPassword()
null
if not present.public static SharedLinkFileInfo.Builder newBuilder(java.lang.String url)
url
- The shared link corresponding to either a file or shared link
to a folder. If it is for a folder shared link, we use the path param
to determine for which file in the folder the view is for. Must not
be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.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.