Package com.dropbox.core.v2.teamlog
Class WebDeviceSessionLogInfo.Builder
java.lang.Object
com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
com.dropbox.core.v2.teamlog.WebDeviceSessionLogInfo.Builder
- Enclosing class:
WebDeviceSessionLogInfo
Builder for
WebDeviceSessionLogInfo.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected WebSessionLogInfoprotected final StringFields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
created, ipAddress, updated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofWebDeviceSessionLogInfoconfigured with this builder's valueswithCreated(Date created) Set value for optional field.withIpAddress(String ipAddress) Set value for optional field.withSessionInfo(WebSessionLogInfo sessionInfo) Set value for optional field.withUpdated(Date updated) Set value for optional field.
-
Field Details
-
userAgent
-
os
-
browser
-
sessionInfo
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withSessionInfo
Set value for optional field.- Parameters:
sessionInfo- Web session unique id.- Returns:
- this builder
-
withIpAddress
Set value for optional field.- Overrides:
withIpAddressin classDeviceSessionLogInfo.Builder- Parameters:
ipAddress- The IP address of the last activity from this session.- Returns:
- this builder
-
withCreated
Set value for optional field.- Overrides:
withCreatedin classDeviceSessionLogInfo.Builder- Parameters:
created- The time this session was created.- Returns:
- this builder
-
withUpdated
Set value for optional field.- Overrides:
withUpdatedin classDeviceSessionLogInfo.Builder- Parameters:
updated- The time of the last activity from this session.- Returns:
- this builder
-
build
Builds an instance ofWebDeviceSessionLogInfoconfigured with this builder's values- Overrides:
buildin classDeviceSessionLogInfo.Builder- Returns:
- new instance of
WebDeviceSessionLogInfo
-