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.ObjectBuilder forSharedLinkFileInfo.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedLinkFileInfobuild()Builds an instance ofSharedLinkFileInfoconfigured with this builder's valuesSharedLinkFileInfo.BuilderwithPassword(java.lang.String password)Set value for optional field.SharedLinkFileInfo.BuilderwithPath(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 ofSharedLinkFileInfoconfigured with this builder's values- Returns:
- new instance of
SharedLinkFileInfo
-
-