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
public static class GroupInfo.Builder extends GroupSummary.Builder
Builder forGroupInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupType
groupType
protected boolean
isMember
protected boolean
isOwner
protected boolean
sameTeam
-
Fields inherited from class com.dropbox.core.v2.teamcommon.GroupSummary.Builder
groupExternalId, groupId, groupManagementType, groupName, memberCount
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupInfo
build()
Builds an instance ofGroupInfo
configured with this builder's valuesGroupInfo.Builder
withGroupExternalId(java.lang.String groupExternalId)
Set value for optional field.GroupInfo.Builder
withMemberCount(java.lang.Long memberCount)
Set value for optional field.
-
-
-
Field Detail
-
groupType
protected final GroupType groupType
-
isMember
protected final boolean isMember
-
isOwner
protected final boolean isOwner
-
sameTeam
protected final boolean sameTeam
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam)
-
-
Method Detail
-
withGroupExternalId
public GroupInfo.Builder withGroupExternalId(java.lang.String groupExternalId)
Set value for optional field.- Overrides:
withGroupExternalId
in 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
public GroupInfo.Builder withMemberCount(java.lang.Long memberCount)
Set value for optional field.- Overrides:
withMemberCount
in classGroupSummary.Builder
- Parameters:
memberCount
- The number of members in the group.- Returns:
- this builder
-
build
public GroupInfo build()
Builds an instance ofGroupInfo
configured with this builder's values- Overrides:
build
in classGroupSummary.Builder
- Returns:
- new instance of
GroupInfo
-
-