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 GroupTypegroupTypeprotected booleanisMemberprotected booleanisOwnerprotected booleansameTeam-
Fields inherited from class com.dropbox.core.v2.teamcommon.GroupSummary.Builder
groupExternalId, groupId, groupManagementType, groupName, memberCount
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(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 GroupInfobuild()Builds an instance ofGroupInfoconfigured with this builder's valuesGroupInfo.BuilderwithGroupExternalId(java.lang.String groupExternalId)Set value for optional field.GroupInfo.BuilderwithMemberCount(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:
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
public GroupInfo.Builder withMemberCount(java.lang.Long memberCount)
Set value for optional field.- Overrides:
withMemberCountin classGroupSummary.Builder- Parameters:
memberCount- The number of members in the group.- Returns:
- this builder
-
build
public GroupInfo build()
Builds an instance ofGroupInfoconfigured with this builder's values- Overrides:
buildin classGroupSummary.Builder- Returns:
- new instance of
GroupInfo
-
-