Package com.dropbox.core.v2.sharing
Class MemberAccessLevelResult.Builder
java.lang.Object
com.dropbox.core.v2.sharing.MemberAccessLevelResult.Builder
- Enclosing class:
MemberAccessLevelResult
Builder for
MemberAccessLevelResult.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ParentFolderAccessInfo> protected AccessLevelprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofMemberAccessLevelResultconfigured with this builder's valueswithAccessDetails(List<ParentFolderAccessInfo> accessDetails) Set value for optional field.withAccessLevel(AccessLevel accessLevel) Set value for optional field.withWarning(String warning) Set value for optional field.
-
Field Details
-
accessLevel
-
warning
-
accessDetails
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withAccessLevel
Set value for optional field.- Parameters:
accessLevel- The member still has this level of access to the content through a parent folder.- Returns:
- this builder
-
withWarning
Set value for optional field.- Parameters:
warning- A localized string with additional information about why the user has this access level to the content.- Returns:
- this builder
-
withAccessDetails
public MemberAccessLevelResult.Builder withAccessDetails(List<ParentFolderAccessInfo> accessDetails) Set value for optional field.- Parameters:
accessDetails- The parent folders that a member has access to. The field is present if the user has access to the first parent folder where the member gains access. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
build
Builds an instance ofMemberAccessLevelResultconfigured with this builder's values- Returns:
- new instance of
MemberAccessLevelResult
-