Package com.dropbox.core.v2.files
Class SharedLinkFileInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.SharedLinkFileInfo.Builder
-
- Enclosing class:
- SharedLinkFileInfo
public static class SharedLinkFileInfo.Builder extends java.lang.Object
Builder forSharedLinkFileInfo
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedLinkFileInfo
build()
Builds an instance ofSharedLinkFileInfo
configured with this builder's valuesSharedLinkFileInfo.Builder
withPassword(java.lang.String password)
Set value for optional field.SharedLinkFileInfo.Builder
withPath(java.lang.String path)
Set value for optional field.
-
-
-
Method Detail
-
withPath
public SharedLinkFileInfo.Builder withPath(java.lang.String path)
Set value for optional field.- Parameters:
path
- The path corresponding to a file in a shared link to a folder. Required for shared links to folders.- Returns:
- this builder
-
withPassword
public SharedLinkFileInfo.Builder withPassword(java.lang.String password)
Set value for optional field.- Parameters:
password
- Password for the shared link. Required for password-protected shared links to files unless it can be read from a cookie.- Returns:
- this builder
-
build
public SharedLinkFileInfo build()
Builds an instance ofSharedLinkFileInfo
configured with this builder's values- Returns:
- new instance of
SharedLinkFileInfo
-
-