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.Object
Builder forGroupSummary
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
groupExternalId
protected java.lang.String
groupId
protected GroupManagementType
groupManagementType
protected java.lang.String
groupName
protected java.lang.Long
memberCount
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupSummary
build()
Builds an instance ofGroupSummary
configured with this builder's valuesGroupSummary.Builder
withGroupExternalId(java.lang.String groupExternalId)
Set value for optional field.GroupSummary.Builder
withMemberCount(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 ofGroupSummary
configured with this builder's values- Returns:
- new instance of
GroupSummary
-
-