public class AddFileMemberBuilder extends 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 |
---|---|
List<FileMemberActionResult> |
start()
Issues the request.
|
AddFileMemberBuilder |
withAccessLevel(AccessLevel accessLevel)
Set value for optional field.
|
AddFileMemberBuilder |
withAddMessageAsComment(Boolean addMessageAsComment)
Set value for optional field.
|
AddFileMemberBuilder |
withCustomMessage(String customMessage)
Set value for optional field.
|
AddFileMemberBuilder |
withQuiet(Boolean quiet)
Set value for optional field.
|
public AddFileMemberBuilder withCustomMessage(String customMessage)
customMessage
- Message to send to added members in their
invitation.public AddFileMemberBuilder withQuiet(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
.IllegalArgumentException
- If any argument does not meet its
preconditions.public AddFileMemberBuilder withAddMessageAsComment(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 List<FileMemberActionResult> start() throws AddFileMemberErrorException, DbxException