Package com.dropbox.core.v2.teamlog
Class WebDeviceSessionLogInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
-
- com.dropbox.core.v2.teamlog.WebDeviceSessionLogInfo.Builder
-
- Enclosing class:
- WebDeviceSessionLogInfo
public static class WebDeviceSessionLogInfo.Builder extends DeviceSessionLogInfo.Builder
Builder forWebDeviceSessionLogInfo.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringbrowserprotected java.lang.Stringosprotected WebSessionLogInfosessionInfoprotected java.lang.StringuserAgent-
Fields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
created, ipAddress, updated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String userAgent, java.lang.String os, java.lang.String browser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebDeviceSessionLogInfobuild()Builds an instance ofWebDeviceSessionLogInfoconfigured with this builder's valuesWebDeviceSessionLogInfo.BuilderwithCreated(java.util.Date created)Set value for optional field.WebDeviceSessionLogInfo.BuilderwithIpAddress(java.lang.String ipAddress)Set value for optional field.WebDeviceSessionLogInfo.BuilderwithSessionInfo(WebSessionLogInfo sessionInfo)Set value for optional field.WebDeviceSessionLogInfo.BuilderwithUpdated(java.util.Date updated)Set value for optional field.
-
-
-
Field Detail
-
userAgent
protected final java.lang.String userAgent
-
os
protected final java.lang.String os
-
browser
protected final java.lang.String browser
-
sessionInfo
protected WebSessionLogInfo sessionInfo
-
-
Method Detail
-
withSessionInfo
public WebDeviceSessionLogInfo.Builder withSessionInfo(WebSessionLogInfo sessionInfo)
Set value for optional field.- Parameters:
sessionInfo- Web session unique id.- Returns:
- this builder
-
withIpAddress
public WebDeviceSessionLogInfo.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 WebDeviceSessionLogInfo.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 WebDeviceSessionLogInfo.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 WebDeviceSessionLogInfo build()
Builds an instance ofWebDeviceSessionLogInfoconfigured with this builder's values- Overrides:
buildin classDeviceSessionLogInfo.Builder- Returns:
- new instance of
WebDeviceSessionLogInfo
-
-