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.String
browser
protected java.lang.String
os
protected WebSessionLogInfo
sessionInfo
protected java.lang.String
userAgent
-
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 userAgent, java.lang.String os, java.lang.String browser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebDeviceSessionLogInfo
build()
Builds an instance ofWebDeviceSessionLogInfo
configured with this builder's valuesWebDeviceSessionLogInfo.Builder
withCreated(java.util.Date created)
Set value for optional field.WebDeviceSessionLogInfo.Builder
withIpAddress(java.lang.String ipAddress)
Set value for optional field.WebDeviceSessionLogInfo.Builder
withSessionInfo(WebSessionLogInfo sessionInfo)
Set value for optional field.WebDeviceSessionLogInfo.Builder
withUpdated(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. Might be missing due to historical data gap.- Returns:
- this builder
-
withIpAddress
public WebDeviceSessionLogInfo.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. Might be missing due to historical data gap.- Returns:
- this builder
-
withCreated
public WebDeviceSessionLogInfo.Builder withCreated(java.util.Date created)
Set value for optional field.- Overrides:
withCreated
in classDeviceSessionLogInfo.Builder
- Parameters:
created
- The time this session was created. Might be missing due to historical data gap.- Returns:
- this builder
-
withUpdated
public WebDeviceSessionLogInfo.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. Might be missing due to historical data gap.- Returns:
- this builder
-
build
public WebDeviceSessionLogInfo build()
Builds an instance ofWebDeviceSessionLogInfo
configured with this builder's values- Overrides:
build
in classDeviceSessionLogInfo.Builder
- Returns:
- new instance of
WebDeviceSessionLogInfo
-
-