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.Object
Builder forMemberDevices
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<DesktopClientSession>
desktopClients
protected java.util.List<MobileClientSession>
mobileClients
protected java.lang.String
teamMemberId
protected java.util.List<ActiveWebSession>
webSessions
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String teamMemberId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberDevices
build()
Builds an instance ofMemberDevices
configured with this builder's valuesMemberDevices.Builder
withDesktopClients(java.util.List<DesktopClientSession> desktopClients)
Set value for optional field.MemberDevices.Builder
withMobileClients(java.util.List<MobileClientSession> mobileClients)
Set value for optional field.MemberDevices.Builder
withWebSessions(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 anull
item.- 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 anull
item.- 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 anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public MemberDevices build()
Builds an instance ofMemberDevices
configured with this builder's values- Returns:
- new instance of
MemberDevices
-
-