public class AddFileMemberBuilder
extends java.lang.Object
DbxUserSharingRequests.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.
Modifier and Type | Method and 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.
|
public AddFileMemberBuilder withCustomMessage(java.lang.String customMessage)
customMessage
- Message to send to added members in their
invitation.public AddFileMemberBuilder withQuiet(java.lang.Boolean quiet)
If left unset or set to null
, defaults to false
.
quiet
- Whether added members should be notified via device
notifications of their invitation. Defaults to false
when set
to null
.public AddFileMemberBuilder withAccessLevel(AccessLevel accessLevel)
If left unset or set to null
, defaults to AccessLevel.VIEWER
.
accessLevel
- AccessLevel union object, describing what access
level we want to give new members. Must not be null
. Defaults
to AccessLevel.VIEWER
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AddFileMemberBuilder withAddMessageAsComment(java.lang.Boolean addMessageAsComment)
If left unset or set to null
, defaults to false
.
addMessageAsComment
- If the custom message should be added as a
comment on the file. Defaults to false
when set to null
.public java.util.List<FileMemberActionResult> start() throws AddFileMemberErrorException, DbxException