Package com.dropbox.core.v2.teamcommon
Class GroupSummary.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamcommon.GroupSummary.Builder
-
- Direct Known Subclasses:
GroupFullInfo.Builder,GroupInfo.Builder
- Enclosing class:
- GroupSummary
public static class GroupSummary.Builder extends java.lang.ObjectBuilder forGroupSummary.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringgroupExternalIdprotected java.lang.StringgroupIdprotected GroupManagementTypegroupManagementTypeprotected java.lang.StringgroupNameprotected java.lang.LongmemberCount
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupSummarybuild()Builds an instance ofGroupSummaryconfigured with this builder's valuesGroupSummary.BuilderwithGroupExternalId(java.lang.String groupExternalId)Set value for optional field.GroupSummary.BuilderwithMemberCount(java.lang.Long memberCount)Set value for optional field.
-
-
-
Field Detail
-
groupName
protected final java.lang.String groupName
-
groupId
protected final java.lang.String groupId
-
groupManagementType
protected final GroupManagementType groupManagementType
-
groupExternalId
protected java.lang.String groupExternalId
-
memberCount
protected java.lang.Long memberCount
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType)
-
-
Method Detail
-
withGroupExternalId
public GroupSummary.Builder withGroupExternalId(java.lang.String groupExternalId)
Set value for optional field.- Parameters:
groupExternalId- External ID of group. This is an arbitrary ID that an admin can attach to a group.- Returns:
- this builder
-
withMemberCount
public GroupSummary.Builder withMemberCount(java.lang.Long memberCount)
Set value for optional field.- Parameters:
memberCount- The number of members in the group.- Returns:
- this builder
-
build
public GroupSummary build()
Builds an instance ofGroupSummaryconfigured with this builder's values- Returns:
- new instance of
GroupSummary
-
-