Package com.dropbox.core.v2.teamlog
Class DesktopDeviceSessionLogInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
-
- com.dropbox.core.v2.teamlog.DesktopDeviceSessionLogInfo.Builder
-
- Enclosing class:
- DesktopDeviceSessionLogInfo
public static class DesktopDeviceSessionLogInfo.Builder extends DeviceSessionLogInfo.Builder
Builder forDesktopDeviceSessionLogInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected DesktopPlatform
clientType
protected java.lang.String
clientVersion
protected java.lang.String
hostName
protected boolean
isDeleteOnUnlinkSupported
protected java.lang.String
platform
protected DesktopSessionLogInfo
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 hostName, DesktopPlatform clientType, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DesktopDeviceSessionLogInfo
build()
Builds an instance ofDesktopDeviceSessionLogInfo
configured with this builder's valuesDesktopDeviceSessionLogInfo.Builder
withClientVersion(java.lang.String clientVersion)
Set value for optional field.DesktopDeviceSessionLogInfo.Builder
withCreated(java.util.Date created)
Set value for optional field.DesktopDeviceSessionLogInfo.Builder
withIpAddress(java.lang.String ipAddress)
Set value for optional field.DesktopDeviceSessionLogInfo.Builder
withSessionInfo(DesktopSessionLogInfo sessionInfo)
Set value for optional field.DesktopDeviceSessionLogInfo.Builder
withUpdated(java.util.Date updated)
Set value for optional field.
-
-
-
Field Detail
-
hostName
protected final java.lang.String hostName
-
clientType
protected final DesktopPlatform clientType
-
platform
protected final java.lang.String platform
-
isDeleteOnUnlinkSupported
protected final boolean isDeleteOnUnlinkSupported
-
sessionInfo
protected DesktopSessionLogInfo sessionInfo
-
clientVersion
protected java.lang.String clientVersion
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String hostName, DesktopPlatform clientType, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
-
-
Method Detail
-
withSessionInfo
public DesktopDeviceSessionLogInfo.Builder withSessionInfo(DesktopSessionLogInfo sessionInfo)
Set value for optional field.- Parameters:
sessionInfo
- Desktop session unique id. Might be missing due to historical data gap.- Returns:
- this builder
-
withClientVersion
public DesktopDeviceSessionLogInfo.Builder withClientVersion(java.lang.String clientVersion)
Set value for optional field.- Parameters:
clientVersion
- The Dropbox client version.- Returns:
- this builder
-
withIpAddress
public DesktopDeviceSessionLogInfo.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 DesktopDeviceSessionLogInfo.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 DesktopDeviceSessionLogInfo.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 DesktopDeviceSessionLogInfo build()
Builds an instance ofDesktopDeviceSessionLogInfo
configured with this builder's values- Overrides:
build
in classDeviceSessionLogInfo.Builder
- Returns:
- new instance of
DesktopDeviceSessionLogInfo
-
-