/** * Returns a new builder for creating an instance of this class. * * @param docId The Paper doc ID. Must not be {@code null}. * @param members User which should be added to the Paper doc. Specify only * email address or Dropbox account ID. Must contain at most 20 items, * not contain a {@code null} item, and not be {@code null}. * * @return builder for this class. * * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ public static Builder newBuilder(String docId, List<AddMember> members) { return new Builder(docId, members); }
/** * Issues the request. */ public List<AddPaperDocUserMemberResult> start() throws DocLookupErrorException, DbxException { AddPaperDocUser arg_ = this._builder.build(); return _client.docsUsersAdd(arg_); } }
/** * Set value for optional field. * * @param customMessage A personal message that will be emailed to each * successfully added member. * * @return this builder */ public DocsUsersAddBuilder withCustomMessage(String customMessage) { this._builder.withCustomMessage(customMessage); return this; }
/** * Set value for optional field. * * <p> If left unset or set to {@code null}, defaults to {@code false}. </p> * * @param quiet Clients should set this to true if no email message shall * be sent to added users. Defaults to {@code false} when set to {@code * null}. * * @return this builder */ public DocsUsersAddBuilder withQuiet(Boolean quiet) { this._builder.withQuiet(quiet); return this; }