Package com.dropbox.core.v2.files
Class SharedLinkFileInfo
- java.lang.Object
- 
- com.dropbox.core.v2.files.SharedLinkFileInfo
 
- 
 public class SharedLinkFileInfo extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSharedLinkFileInfo.BuilderBuilder forSharedLinkFileInfo.
 - 
Constructor SummaryConstructors Constructor Description SharedLinkFileInfo(java.lang.String url)NoneSharedLinkFileInfo(java.lang.String url, java.lang.String path, java.lang.String password)UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetPassword()Password for the shared link.java.lang.StringgetPath()The path corresponding to a file in a shared link to a folder.java.lang.StringgetUrl()The shared link corresponding to either a file or shared link to a folder.inthashCode()static SharedLinkFileInfo.BuildernewBuilder(java.lang.String url)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
SharedLinkFileInfopublic SharedLinkFileInfo(java.lang.String url, java.lang.String path, java.lang.String password)UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
SharedLinkFileInfopublic SharedLinkFileInfo(java.lang.String url) NoneThe default values for unset fields will be used. - Parameters:
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getUrlpublic java.lang.String getUrl() 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.- Returns:
- value for this field, never null.
 
 - 
getPathpublic java.lang.String getPath() The path corresponding to a file in a shared link to a folder. Required for shared links to folders.- Returns:
- value for this field, or nullif not present.
 
 - 
getPasswordpublic java.lang.String getPassword() Password for the shared link. Required for password-protected shared links to files unless it can be read from a cookie.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static SharedLinkFileInfo.Builder newBuilder(java.lang.String url) Returns a new builder for creating an instance of this class.- Parameters:
- 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.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-