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 DesktopPlatformclientTypeprotected java.lang.StringclientVersionprotected java.lang.StringhostNameprotected booleanisDeleteOnUnlinkSupportedprotected java.lang.Stringplatformprotected DesktopSessionLogInfosessionInfo-
Fields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
created, ipAddress, updated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(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 DesktopDeviceSessionLogInfobuild()Builds an instance ofDesktopDeviceSessionLogInfoconfigured with this builder's valuesDesktopDeviceSessionLogInfo.BuilderwithClientVersion(java.lang.String clientVersion)Set value for optional field.DesktopDeviceSessionLogInfo.BuilderwithCreated(java.util.Date created)Set value for optional field.DesktopDeviceSessionLogInfo.BuilderwithIpAddress(java.lang.String ipAddress)Set value for optional field.DesktopDeviceSessionLogInfo.BuilderwithSessionInfo(DesktopSessionLogInfo sessionInfo)Set value for optional field.DesktopDeviceSessionLogInfo.BuilderwithUpdated(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.- 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:
withIpAddressin classDeviceSessionLogInfo.Builder- Parameters:
ipAddress- The IP address of the last activity from this session.- Returns:
- this builder
-
withCreated
public DesktopDeviceSessionLogInfo.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 DesktopDeviceSessionLogInfo.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 DesktopDeviceSessionLogInfo build()
Builds an instance ofDesktopDeviceSessionLogInfoconfigured with this builder's values- Overrides:
buildin classDeviceSessionLogInfo.Builder- Returns:
- new instance of
DesktopDeviceSessionLogInfo
-
-