Package com.dropbox.core.v2.sharing
Class InviteeMembershipInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.MembershipInfo.Builder
-
- com.dropbox.core.v2.sharing.InviteeMembershipInfo.Builder
-
- Enclosing class:
- InviteeMembershipInfo
public static class InviteeMembershipInfo.Builder extends MembershipInfo.Builder
Builder forInviteeMembershipInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected InviteeInfo
invitee
protected UserInfo
user
-
Fields inherited from class com.dropbox.core.v2.sharing.MembershipInfo.Builder
accessType, initials, isInherited, permissions
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(AccessLevel accessType, InviteeInfo invitee)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InviteeMembershipInfo
build()
Builds an instance ofInviteeMembershipInfo
configured with this builder's valuesInviteeMembershipInfo.Builder
withInitials(java.lang.String initials)
Set value for optional field.InviteeMembershipInfo.Builder
withIsInherited(java.lang.Boolean isInherited)
Set value for optional field.InviteeMembershipInfo.Builder
withPermissions(java.util.List<MemberPermission> permissions)
Set value for optional field.InviteeMembershipInfo.Builder
withUser(UserInfo user)
Set value for optional field.
-
-
-
Field Detail
-
invitee
protected final InviteeInfo invitee
-
user
protected UserInfo user
-
-
Constructor Detail
-
Builder
protected Builder(AccessLevel accessType, InviteeInfo invitee)
-
-
Method Detail
-
withUser
public InviteeMembershipInfo.Builder withUser(UserInfo user)
Set value for optional field.- Parameters:
user
- The user this invitation is tied to, if available.- Returns:
- this builder
-
withPermissions
public InviteeMembershipInfo.Builder withPermissions(java.util.List<MemberPermission> permissions)
Set value for optional field.- Overrides:
withPermissions
in classMembershipInfo.Builder
- Parameters:
permissions
- The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withInitials
public InviteeMembershipInfo.Builder withInitials(java.lang.String initials)
Set value for optional field.- Overrides:
withInitials
in classMembershipInfo.Builder
- Parameters:
initials
- Never set.- Returns:
- this builder
-
withIsInherited
public InviteeMembershipInfo.Builder withIsInherited(java.lang.Boolean isInherited)
Set value for optional field.If left unset or set to
null
, defaults tofalse
.- Overrides:
withIsInherited
in classMembershipInfo.Builder
- Parameters:
isInherited
- True if the member has access from a parent folder. Defaults tofalse
when set tonull
.- Returns:
- this builder
-
build
public InviteeMembershipInfo build()
Builds an instance ofInviteeMembershipInfo
configured with this builder's values- Overrides:
build
in classMembershipInfo.Builder
- Returns:
- new instance of
InviteeMembershipInfo
-
-