Package com.dropbox.core.v2.sharing
Class MemberAccessLevelResult.Builder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.MemberAccessLevelResult.Builder
-
- Enclosing class:
- MemberAccessLevelResult
public static class MemberAccessLevelResult.Builder extends java.lang.Object
Builder forMemberAccessLevelResult
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ParentFolderAccessInfo>
accessDetails
protected AccessLevel
accessLevel
protected java.lang.String
warning
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberAccessLevelResult
build()
Builds an instance ofMemberAccessLevelResult
configured with this builder's valuesMemberAccessLevelResult.Builder
withAccessDetails(java.util.List<ParentFolderAccessInfo> accessDetails)
Set value for optional field.MemberAccessLevelResult.Builder
withAccessLevel(AccessLevel accessLevel)
Set value for optional field.MemberAccessLevelResult.Builder
withWarning(java.lang.String warning)
Set value for optional field.
-
-
-
Field Detail
-
accessLevel
protected AccessLevel accessLevel
-
warning
protected java.lang.String warning
-
accessDetails
protected java.util.List<ParentFolderAccessInfo> accessDetails
-
-
Method Detail
-
withAccessLevel
public MemberAccessLevelResult.Builder withAccessLevel(AccessLevel accessLevel)
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
public MemberAccessLevelResult.Builder withWarning(java.lang.String warning)
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(java.util.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 anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public MemberAccessLevelResult build()
Builds an instance ofMemberAccessLevelResult
configured with this builder's values- Returns:
- new instance of
MemberAccessLevelResult
-
-