Package com.dropbox.core.v2.sharing
Class GroupInfo.Builder
java.lang.Object
com.dropbox.core.v2.teamcommon.GroupSummary.Builder
com.dropbox.core.v2.sharing.GroupInfo.Builder
- Enclosing class:
GroupInfo
Builder for
GroupInfo.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GroupTypeprotected final booleanprotected final booleanprotected final booleanFields inherited from class com.dropbox.core.v2.teamcommon.GroupSummary.Builder
groupExternalId, groupId, groupManagementType, groupName, memberCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofGroupInfoconfigured with this builder's valueswithGroupExternalId(String groupExternalId) Set value for optional field.withMemberCount(Long memberCount) Set value for optional field.
-
Field Details
-
groupType
-
isMember
protected final boolean isMember -
isOwner
protected final boolean isOwner -
sameTeam
protected final boolean sameTeam
-
-
Constructor Details
-
Builder
protected Builder(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam)
-
-
Method Details
-
withGroupExternalId
Set value for optional field.- Overrides:
withGroupExternalIdin classGroupSummary.Builder- Parameters:
groupExternalId- External ID of group. This is an arbitrary ID that an admin can attach to a group.- Returns:
- this builder
-
withMemberCount
Set value for optional field.- Overrides:
withMemberCountin classGroupSummary.Builder- Parameters:
memberCount- The number of members in the group.- Returns:
- this builder
-
build
Builds an instance ofGroupInfoconfigured with this builder's values- Overrides:
buildin classGroupSummary.Builder- Returns:
- new instance of
GroupInfo
-