public static class InviteeMembershipInfo.Builder extends MembershipInfo.Builder
InviteeMembershipInfo
.Modifier and Type | Field and Description |
---|---|
protected InviteeInfo |
invitee |
protected UserInfo |
user |
accessType, initials, isInherited, permissions
Modifier | Constructor and Description |
---|---|
protected |
Builder(AccessLevel accessType,
InviteeInfo invitee) |
Modifier and Type | Method and Description |
---|---|
InviteeMembershipInfo |
build()
Builds an instance of
InviteeMembershipInfo configured with
this builder's values |
InviteeMembershipInfo.Builder |
withInitials(String initials)
Set value for optional field.
|
InviteeMembershipInfo.Builder |
withIsInherited(Boolean isInherited)
Set value for optional field.
|
InviteeMembershipInfo.Builder |
withPermissions(List<MemberPermission> permissions)
Set value for optional field.
|
InviteeMembershipInfo.Builder |
withUser(UserInfo user)
Set value for optional field.
|
protected final InviteeInfo invitee
protected UserInfo user
protected Builder(AccessLevel accessType, InviteeInfo invitee)
public InviteeMembershipInfo.Builder withUser(UserInfo user)
user
- The user this invitation is tied to, if available.public InviteeMembershipInfo.Builder withPermissions(List<MemberPermission> permissions)
withPermissions
in class MembershipInfo.Builder
permissions
- The permissions that requesting user has on this
member. The set of permissions corresponds to the MemberActions
in the request. Must not contain a null
item.IllegalArgumentException
- If any argument does not meet its
preconditions.public InviteeMembershipInfo.Builder withInitials(String initials)
withInitials
in class MembershipInfo.Builder
initials
- Suggested name initials for a member.public InviteeMembershipInfo.Builder withIsInherited(Boolean isInherited)
If left unset or set to null
, defaults to false
.
withIsInherited
in class MembershipInfo.Builder
isInherited
- True if the member has access from a parent
folder. Defaults to false
when set to null
.public InviteeMembershipInfo build()
InviteeMembershipInfo
configured with
this builder's valuesbuild
in class MembershipInfo.Builder
InviteeMembershipInfo