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 MobileClientPlatform
clientType
protected java.lang.String
clientVersion
protected java.lang.String
deviceName
protected java.lang.String
lastCarrier
protected java.lang.String
osVersion
protected MobileSessionLogInfo
sessionInfo
-
Fields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
created, ipAddress, updated
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String deviceName, MobileClientPlatform clientType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MobileDeviceSessionLogInfo
build()
Builds an instance ofMobileDeviceSessionLogInfo
configured with this builder's valuesMobileDeviceSessionLogInfo.Builder
withClientVersion(java.lang.String clientVersion)
Set value for optional field.MobileDeviceSessionLogInfo.Builder
withCreated(java.util.Date created)
Set value for optional field.MobileDeviceSessionLogInfo.Builder
withIpAddress(java.lang.String ipAddress)
Set value for optional field.MobileDeviceSessionLogInfo.Builder
withLastCarrier(java.lang.String lastCarrier)
Set value for optional field.MobileDeviceSessionLogInfo.Builder
withOsVersion(java.lang.String osVersion)
Set value for optional field.MobileDeviceSessionLogInfo.Builder
withSessionInfo(MobileSessionLogInfo sessionInfo)
Set value for optional field.MobileDeviceSessionLogInfo.Builder
withUpdated(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:
withIpAddress
in 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:
withCreated
in 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:
withUpdated
in classDeviceSessionLogInfo.Builder
- Parameters:
updated
- The time of the last activity from this session.- Returns:
- this builder
-
build
public MobileDeviceSessionLogInfo build()
Builds an instance ofMobileDeviceSessionLogInfo
configured with this builder's values- Overrides:
build
in classDeviceSessionLogInfo.Builder
- Returns:
- new instance of
MobileDeviceSessionLogInfo
-
-