Package com.dropbox.core.v2.files
Class FolderSharingInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.FolderSharingInfo.Builder
-
- Enclosing class:
- FolderSharingInfo
public static class FolderSharingInfo.Builder extends java.lang.Object
Builder forFolderSharingInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
noAccess
protected java.lang.String
parentSharedFolderId
protected boolean
readOnly
protected java.lang.String
sharedFolderId
protected boolean
traverseOnly
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FolderSharingInfo
build()
Builds an instance ofFolderSharingInfo
configured with this builder's valuesFolderSharingInfo.Builder
withNoAccess(java.lang.Boolean noAccess)
Set value for optional field.FolderSharingInfo.Builder
withParentSharedFolderId(java.lang.String parentSharedFolderId)
Set value for optional field.FolderSharingInfo.Builder
withSharedFolderId(java.lang.String sharedFolderId)
Set value for optional field.FolderSharingInfo.Builder
withTraverseOnly(java.lang.Boolean traverseOnly)
Set value for optional field.
-
-
-
Method Detail
-
withParentSharedFolderId
public FolderSharingInfo.Builder withParentSharedFolderId(java.lang.String parentSharedFolderId)
Set value for optional field.- Parameters:
parentSharedFolderId
- Set if the folder is contained by a shared folder. Must match pattern "[-_0-9a-zA-Z:]+
".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withSharedFolderId
public FolderSharingInfo.Builder withSharedFolderId(java.lang.String sharedFolderId)
Set value for optional field.- Parameters:
sharedFolderId
- If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. Must match pattern "[-_0-9a-zA-Z:]+
".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withTraverseOnly
public FolderSharingInfo.Builder withTraverseOnly(java.lang.Boolean traverseOnly)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
traverseOnly
- Specifies that the folder can only be traversed and the user can only see a limited subset of the contents of this folder because they don't have read access to this folder. They do, however, have access to some sub folder. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
withNoAccess
public FolderSharingInfo.Builder withNoAccess(java.lang.Boolean noAccess)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
noAccess
- Specifies that the folder cannot be accessed by the user. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
build
public FolderSharingInfo build()
Builds an instance ofFolderSharingInfo
configured with this builder's values- Returns:
- new instance of
FolderSharingInfo
-
-