Package com.dropbox.core.v2.teamlog
Class LegacyDeviceSessionLogInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
-
- com.dropbox.core.v2.teamlog.LegacyDeviceSessionLogInfo.Builder
-
- Enclosing class:
- LegacyDeviceSessionLogInfo
public static class LegacyDeviceSessionLogInfo.Builder extends DeviceSessionLogInfo.Builder
Builder forLegacyDeviceSessionLogInfo.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringclientVersionprotected java.lang.StringdeviceTypeprotected java.lang.StringdisplayNameprotected java.lang.BooleanisEmmManagedprotected java.lang.StringlegacyUniqIdprotected java.lang.StringmacAddressprotected java.lang.StringosVersionprotected java.lang.Stringplatformprotected SessionLogInfosessionInfo-
Fields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
created, ipAddress, updated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyDeviceSessionLogInfobuild()Builds an instance ofLegacyDeviceSessionLogInfoconfigured with this builder's valuesLegacyDeviceSessionLogInfo.BuilderwithClientVersion(java.lang.String clientVersion)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithCreated(java.util.Date created)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithDeviceType(java.lang.String deviceType)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithDisplayName(java.lang.String displayName)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithIpAddress(java.lang.String ipAddress)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithIsEmmManaged(java.lang.Boolean isEmmManaged)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithLegacyUniqId(java.lang.String legacyUniqId)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithMacAddress(java.lang.String macAddress)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithOsVersion(java.lang.String osVersion)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithPlatform(java.lang.String platform)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithSessionInfo(SessionLogInfo sessionInfo)Set value for optional field.LegacyDeviceSessionLogInfo.BuilderwithUpdated(java.util.Date updated)Set value for optional field.
-
-
-
Field Detail
-
sessionInfo
protected SessionLogInfo sessionInfo
-
displayName
protected java.lang.String displayName
-
isEmmManaged
protected java.lang.Boolean isEmmManaged
-
platform
protected java.lang.String platform
-
macAddress
protected java.lang.String macAddress
-
osVersion
protected java.lang.String osVersion
-
deviceType
protected java.lang.String deviceType
-
clientVersion
protected java.lang.String clientVersion
-
legacyUniqId
protected java.lang.String legacyUniqId
-
-
Method Detail
-
withSessionInfo
public LegacyDeviceSessionLogInfo.Builder withSessionInfo(SessionLogInfo sessionInfo)
Set value for optional field.- Parameters:
sessionInfo- Session unique id.- Returns:
- this builder
-
withDisplayName
public LegacyDeviceSessionLogInfo.Builder withDisplayName(java.lang.String displayName)
Set value for optional field.- Parameters:
displayName- The device name. Might be missing due to historical data gap.- Returns:
- this builder
-
withIsEmmManaged
public LegacyDeviceSessionLogInfo.Builder withIsEmmManaged(java.lang.Boolean isEmmManaged)
Set value for optional field.- Parameters:
isEmmManaged- Is device managed by emm. Might be missing due to historical data gap.- Returns:
- this builder
-
withPlatform
public LegacyDeviceSessionLogInfo.Builder withPlatform(java.lang.String platform)
Set value for optional field.- Parameters:
platform- Information on the hosting platform. Might be missing due to historical data gap.- Returns:
- this builder
-
withMacAddress
public LegacyDeviceSessionLogInfo.Builder withMacAddress(java.lang.String macAddress)
Set value for optional field.- Parameters:
macAddress- The mac address of the last activity from this session. Might be missing due to historical data gap.- Returns:
- this builder
-
withOsVersion
public LegacyDeviceSessionLogInfo.Builder withOsVersion(java.lang.String osVersion)
Set value for optional field.- Parameters:
osVersion- The hosting OS version. Might be missing due to historical data gap.- Returns:
- this builder
-
withDeviceType
public LegacyDeviceSessionLogInfo.Builder withDeviceType(java.lang.String deviceType)
Set value for optional field.- Parameters:
deviceType- Information on the hosting device type. Might be missing due to historical data gap.- Returns:
- this builder
-
withClientVersion
public LegacyDeviceSessionLogInfo.Builder withClientVersion(java.lang.String clientVersion)
Set value for optional field.- Parameters:
clientVersion- The Dropbox client version. Might be missing due to historical data gap.- Returns:
- this builder
-
withLegacyUniqId
public LegacyDeviceSessionLogInfo.Builder withLegacyUniqId(java.lang.String legacyUniqId)
Set value for optional field.- Parameters:
legacyUniqId- Alternative unique device session id, instead of session id field. Might be missing due to historical data gap.- Returns:
- this builder
-
withIpAddress
public LegacyDeviceSessionLogInfo.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 LegacyDeviceSessionLogInfo.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 LegacyDeviceSessionLogInfo.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 LegacyDeviceSessionLogInfo build()
Builds an instance ofLegacyDeviceSessionLogInfoconfigured with this builder's values- Overrides:
buildin classDeviceSessionLogInfo.Builder- Returns:
- new instance of
LegacyDeviceSessionLogInfo
-
-