Package com.dropbox.core.v2.team
Class GroupFullInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamcommon.GroupSummary.Builder
-
- com.dropbox.core.v2.team.GroupFullInfo.Builder
-
- Enclosing class:
- GroupFullInfo
public static class GroupFullInfo.Builder extends GroupSummary.Builder
Builder forGroupFullInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
created
protected java.util.List<GroupMemberInfo>
members
-
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, long created)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupFullInfo
build()
Builds an instance ofGroupFullInfo
configured with this builder's valuesGroupFullInfo.Builder
withGroupExternalId(java.lang.String groupExternalId)
Set value for optional field.GroupFullInfo.Builder
withMemberCount(java.lang.Long memberCount)
Set value for optional field.GroupFullInfo.Builder
withMembers(java.util.List<GroupMemberInfo> members)
Set value for optional field.
-
-
-
Field Detail
-
created
protected final long created
-
members
protected java.util.List<GroupMemberInfo> members
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String groupName, java.lang.String groupId, GroupManagementType groupManagementType, long created)
-
-
Method Detail
-
withMembers
public GroupFullInfo.Builder withMembers(java.util.List<GroupMemberInfo> members)
Set value for optional field.- Parameters:
members
- List of group members. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withGroupExternalId
public GroupFullInfo.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 GroupFullInfo.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 GroupFullInfo build()
Builds an instance ofGroupFullInfo
configured with this builder's values- Overrides:
build
in classGroupSummary.Builder
- Returns:
- new instance of
GroupFullInfo
-
-