Package com.dropbox.core.v2.team
Class MemberDevices.Builder
- java.lang.Object
-
- com.dropbox.core.v2.team.MemberDevices.Builder
-
- Enclosing class:
- MemberDevices
public static class MemberDevices.Builder extends java.lang.ObjectBuilder forMemberDevices.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<DesktopClientSession>desktopClientsprotected java.util.List<MobileClientSession>mobileClientsprotected java.lang.StringteamMemberIdprotected java.util.List<ActiveWebSession>webSessions
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String teamMemberId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberDevicesbuild()Builds an instance ofMemberDevicesconfigured with this builder's valuesMemberDevices.BuilderwithDesktopClients(java.util.List<DesktopClientSession> desktopClients)Set value for optional field.MemberDevices.BuilderwithMobileClients(java.util.List<MobileClientSession> mobileClients)Set value for optional field.MemberDevices.BuilderwithWebSessions(java.util.List<ActiveWebSession> webSessions)Set value for optional field.
-
-
-
Field Detail
-
teamMemberId
protected final java.lang.String teamMemberId
-
webSessions
protected java.util.List<ActiveWebSession> webSessions
-
desktopClients
protected java.util.List<DesktopClientSession> desktopClients
-
mobileClients
protected java.util.List<MobileClientSession> mobileClients
-
-
Method Detail
-
withWebSessions
public MemberDevices.Builder withWebSessions(java.util.List<ActiveWebSession> webSessions)
Set value for optional field.- Parameters:
webSessions- List of web sessions made by this team member. Must not contain anullitem.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
withDesktopClients
public MemberDevices.Builder withDesktopClients(java.util.List<DesktopClientSession> desktopClients)
Set value for optional field.- Parameters:
desktopClients- List of desktop clients by this team member. Must not contain anullitem.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
withMobileClients
public MemberDevices.Builder withMobileClients(java.util.List<MobileClientSession> mobileClients)
Set value for optional field.- Parameters:
mobileClients- List of mobile clients by this team member. Must not contain anullitem.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
build
public MemberDevices build()
Builds an instance ofMemberDevicesconfigured with this builder's values- Returns:
- new instance of
MemberDevices
-
-