public static class MemberAccessLevelResult.Builder
extends java.lang.Object
MemberAccessLevelResult
.Modifier and Type | Field and Description |
---|---|
protected java.util.List<ParentFolderAccessInfo> |
accessDetails |
protected AccessLevel |
accessLevel |
protected java.lang.String |
warning |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
MemberAccessLevelResult |
build()
Builds an instance of
MemberAccessLevelResult configured with
this builder's values |
MemberAccessLevelResult.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.
|
protected AccessLevel accessLevel
protected java.lang.String warning
protected java.util.List<ParentFolderAccessInfo> accessDetails
public MemberAccessLevelResult.Builder withAccessLevel(AccessLevel accessLevel)
accessLevel
- The member still has this level of access to the
content through a parent folder.public MemberAccessLevelResult.Builder withWarning(java.lang.String warning)
warning
- A localized string with additional information about
why the user has this access level to the content.public MemberAccessLevelResult.Builder withAccessDetails(java.util.List<ParentFolderAccessInfo> accessDetails)
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 a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberAccessLevelResult build()
MemberAccessLevelResult
configured with
this builder's valuesMemberAccessLevelResult