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
 
 public static class MobileDeviceSessionLogInfo.Builder extends DeviceSessionLogInfo.Builder Builder forMobileDeviceSessionLogInfo.
- 
- 
Field SummaryFields Modifier and Type Field Description protected MobileClientPlatformclientTypeprotected java.lang.StringclientVersionprotected java.lang.StringdeviceNameprotected java.lang.StringlastCarrierprotected java.lang.StringosVersionprotected MobileSessionLogInfosessionInfo- 
Fields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Buildercreated, ipAddress, updated
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String deviceName, MobileClientPlatform clientType)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MobileDeviceSessionLogInfobuild()Builds an instance ofMobileDeviceSessionLogInfoconfigured with this builder's valuesMobileDeviceSessionLogInfo.BuilderwithClientVersion(java.lang.String clientVersion)Set value for optional field.MobileDeviceSessionLogInfo.BuilderwithCreated(java.util.Date created)Set value for optional field.MobileDeviceSessionLogInfo.BuilderwithIpAddress(java.lang.String ipAddress)Set value for optional field.MobileDeviceSessionLogInfo.BuilderwithLastCarrier(java.lang.String lastCarrier)Set value for optional field.MobileDeviceSessionLogInfo.BuilderwithOsVersion(java.lang.String osVersion)Set value for optional field.MobileDeviceSessionLogInfo.BuilderwithSessionInfo(MobileSessionLogInfo sessionInfo)Set value for optional field.MobileDeviceSessionLogInfo.BuilderwithUpdated(java.util.Date updated)Set value for optional field.
 
- 
- 
- 
Field Detail- 
deviceNameprotected final java.lang.String deviceName 
 - 
clientTypeprotected final MobileClientPlatform clientType 
 - 
sessionInfoprotected MobileSessionLogInfo sessionInfo 
 - 
clientVersionprotected java.lang.String clientVersion 
 - 
osVersionprotected java.lang.String osVersion 
 - 
lastCarrierprotected java.lang.String lastCarrier 
 
- 
 - 
Constructor Detail- 
Builderprotected Builder(java.lang.String deviceName, MobileClientPlatform clientType)
 
- 
 - 
Method Detail- 
withSessionInfopublic MobileDeviceSessionLogInfo.Builder withSessionInfo(MobileSessionLogInfo sessionInfo) Set value for optional field.- Parameters:
- sessionInfo- Mobile session unique id.
- Returns:
- this builder
 
 - 
withClientVersionpublic MobileDeviceSessionLogInfo.Builder withClientVersion(java.lang.String clientVersion) Set value for optional field.- Parameters:
- clientVersion- The Dropbox client version.
- Returns:
- this builder
 
 - 
withOsVersionpublic MobileDeviceSessionLogInfo.Builder withOsVersion(java.lang.String osVersion) Set value for optional field.- Parameters:
- osVersion- The hosting OS version.
- Returns:
- this builder
 
 - 
withLastCarrierpublic MobileDeviceSessionLogInfo.Builder withLastCarrier(java.lang.String lastCarrier) Set value for optional field.- Parameters:
- lastCarrier- last carrier used by the device.
- Returns:
- this builder
 
 - 
withIpAddresspublic MobileDeviceSessionLogInfo.Builder withIpAddress(java.lang.String ipAddress) Set value for optional field.- Overrides:
- withIpAddressin class- DeviceSessionLogInfo.Builder
- Parameters:
- ipAddress- The IP address of the last activity from this session.
- Returns:
- this builder
 
 - 
withCreatedpublic MobileDeviceSessionLogInfo.Builder withCreated(java.util.Date created) Set value for optional field.- Overrides:
- withCreatedin class- DeviceSessionLogInfo.Builder
- Parameters:
- created- The time this session was created.
- Returns:
- this builder
 
 - 
withUpdatedpublic MobileDeviceSessionLogInfo.Builder withUpdated(java.util.Date updated) Set value for optional field.- Overrides:
- withUpdatedin class- DeviceSessionLogInfo.Builder
- Parameters:
- updated- The time of the last activity from this session.
- Returns:
- this builder
 
 - 
buildpublic MobileDeviceSessionLogInfo build() Builds an instance ofMobileDeviceSessionLogInfoconfigured with this builder's values- Overrides:
- buildin class- DeviceSessionLogInfo.Builder
- Returns:
- new instance of MobileDeviceSessionLogInfo
 
 
- 
 
-