Package com.dropbox.core.v2.sharing
Class AddFileMemberBuilder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.AddFileMemberBuilder
-
public class AddFileMemberBuilder extends java.lang.Object
The request builder returned byDbxUserSharingRequests.addFileMemberBuilder(java.lang.String, java.util.List<com.dropbox.core.v2.sharing.MemberSelector>)
.Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<FileMemberActionResult>
start()
Issues the request.AddFileMemberBuilder
withAccessLevel(AccessLevel accessLevel)
Set value for optional field.AddFileMemberBuilder
withAddMessageAsComment(java.lang.Boolean addMessageAsComment)
Set value for optional field.AddFileMemberBuilder
withCustomMessage(java.lang.String customMessage)
Set value for optional field.AddFileMemberBuilder
withQuiet(java.lang.Boolean quiet)
Set value for optional field.
-
-
-
Method Detail
-
withCustomMessage
public AddFileMemberBuilder withCustomMessage(java.lang.String customMessage)
Set value for optional field.- Parameters:
customMessage
- Message to send to added members in their invitation.- Returns:
- this builder
-
withQuiet
public AddFileMemberBuilder withQuiet(java.lang.Boolean quiet)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
quiet
- Whether added members should be notified via email and device notifications of their invitation. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
withAccessLevel
public AddFileMemberBuilder withAccessLevel(AccessLevel accessLevel)
Set value for optional field.If left unset or set to
null
, defaults toAccessLevel.VIEWER
.- Parameters:
accessLevel
- AccessLevel union object, describing what access level we want to give new members. Must not benull
. Defaults toAccessLevel.VIEWER
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withAddMessageAsComment
public AddFileMemberBuilder withAddMessageAsComment(java.lang.Boolean addMessageAsComment)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Parameters:
addMessageAsComment
- If the custom message should be added as a comment on the file. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
start
public java.util.List<FileMemberActionResult> start() throws AddFileMemberErrorException, DbxException
Issues the request.
-
-