Package com.dropbox.core.v2.teamlog
Class MobileDeviceSessionLogInfo.Builder
java.lang.Object
com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
com.dropbox.core.v2.teamlog.MobileDeviceSessionLogInfo.Builder
- Enclosing class:
MobileDeviceSessionLogInfo
Builder for
MobileDeviceSessionLogInfo.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MobileClientPlatformprotected Stringprotected final Stringprotected Stringprotected Stringprotected MobileSessionLogInfoFields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
created, ipAddress, updated -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(String deviceName, MobileClientPlatform clientType) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofMobileDeviceSessionLogInfoconfigured with this builder's valueswithClientVersion(String clientVersion) Set value for optional field.withCreated(Date created) Set value for optional field.withIpAddress(String ipAddress) Set value for optional field.withLastCarrier(String lastCarrier) Set value for optional field.withOsVersion(String osVersion) Set value for optional field.withSessionInfo(MobileSessionLogInfo sessionInfo) Set value for optional field.withUpdated(Date updated) Set value for optional field.
-
Field Details
-
deviceName
-
clientType
-
sessionInfo
-
clientVersion
-
osVersion
-
lastCarrier
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withSessionInfo
Set value for optional field.- Parameters:
sessionInfo- Mobile session unique id.- Returns:
- this builder
-
withClientVersion
Set value for optional field.- Parameters:
clientVersion- The Dropbox client version.- Returns:
- this builder
-
withOsVersion
Set value for optional field.- Parameters:
osVersion- The hosting OS version.- Returns:
- this builder
-
withLastCarrier
Set value for optional field.- Parameters:
lastCarrier- last carrier used by the device.- 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 ofMobileDeviceSessionLogInfoconfigured with this builder's values- Overrides:
buildin classDeviceSessionLogInfo.Builder- Returns:
- new instance of
MobileDeviceSessionLogInfo
-