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 Summary
Fields 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.Builder
created, ipAddress, updated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String deviceName, MobileClientPlatform clientType)
-
Method Summary
All 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
-
deviceName
protected final java.lang.String deviceName
-
clientType
protected final MobileClientPlatform clientType
-
sessionInfo
protected MobileSessionLogInfo sessionInfo
-
clientVersion
protected java.lang.String clientVersion
-
osVersion
protected java.lang.String osVersion
-
lastCarrier
protected java.lang.String lastCarrier
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String deviceName, MobileClientPlatform clientType)
-
-
Method Detail
-
withSessionInfo
public MobileDeviceSessionLogInfo.Builder withSessionInfo(MobileSessionLogInfo sessionInfo)
Set value for optional field.- Parameters:
sessionInfo- Mobile session unique id.- Returns:
- this builder
-
withClientVersion
public MobileDeviceSessionLogInfo.Builder withClientVersion(java.lang.String clientVersion)
Set value for optional field.- Parameters:
clientVersion- The Dropbox client version.- Returns:
- this builder
-
withOsVersion
public MobileDeviceSessionLogInfo.Builder withOsVersion(java.lang.String osVersion)
Set value for optional field.- Parameters:
osVersion- The hosting OS version.- Returns:
- this builder
-
withLastCarrier
public MobileDeviceSessionLogInfo.Builder withLastCarrier(java.lang.String lastCarrier)
Set value for optional field.- Parameters:
lastCarrier- last carrier used by the device.- Returns:
- this builder
-
withIpAddress
public MobileDeviceSessionLogInfo.Builder withIpAddress(java.lang.String ipAddress)
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
public MobileDeviceSessionLogInfo.Builder withCreated(java.util.Date created)
Set value for optional field.- Overrides:
withCreatedin classDeviceSessionLogInfo.Builder- Parameters:
created- The time this session was created.- Returns:
- this builder
-
withUpdated
public MobileDeviceSessionLogInfo.Builder withUpdated(java.util.Date updated)
Set value for optional field.- Overrides:
withUpdatedin classDeviceSessionLogInfo.Builder- Parameters:
updated- The time of the last activity from this session.- Returns:
- this builder
-
build
public MobileDeviceSessionLogInfo build()
Builds an instance ofMobileDeviceSessionLogInfoconfigured with this builder's values- Overrides:
buildin classDeviceSessionLogInfo.Builder- Returns:
- new instance of
MobileDeviceSessionLogInfo
-
-