Package com.dropbox.core.v2.team
Class DeviceSession.Builder
java.lang.Object
com.dropbox.core.v2.team.DeviceSession.Builder
- Direct Known Subclasses:
ActiveWebSession.Builder,DesktopClientSession.Builder,MobileClientSession.Builder
- Enclosing class:
DeviceSession
Builder for
DeviceSession.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofDeviceSessionconfigured with this builder's valueswithCountry(String country) Set value for optional field.withCreated(Date created) Set value for optional field.withIpAddress(String ipAddress) Set value for optional field.withUpdated(Date updated) Set value for optional field.
-
Field Details
-
sessionId
-
ipAddress
-
country
-
created
-
updated
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withIpAddress
Set value for optional field.- Parameters:
ipAddress- The IP address of the last activity from this session.- Returns:
- this builder
-
withCountry
Set value for optional field.- Parameters:
country- The country from which the last activity from this session was made.- Returns:
- this builder
-
withCreated
Set value for optional field.- Parameters:
created- The time this session was created.- Returns:
- this builder
-
withUpdated
Set value for optional field.- Parameters:
updated- The time of the last activity from this session.- Returns:
- this builder
-
build
Builds an instance ofDeviceSessionconfigured with this builder's values- Returns:
- new instance of
DeviceSession
-