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
Builder for
DesktopDeviceSessionLogInfo.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DesktopPlatformprotected Stringprotected final Stringprotected final booleanprotected final Stringprotected DesktopSessionLogInfoFields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder
created, ipAddress, updated -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofDesktopDeviceSessionLogInfoconfigured with this builder's valueswithClientVersion(String clientVersion) Set value for optional field.withCreated(Date created) Set value for optional field.withIpAddress(String ipAddress) Set value for optional field.withSessionInfo(DesktopSessionLogInfo sessionInfo) Set value for optional field.withUpdated(Date updated) Set value for optional field.
-
Field Details
-
hostName
-
clientType
-
platform
-
isDeleteOnUnlinkSupported
protected final boolean isDeleteOnUnlinkSupported -
sessionInfo
-
clientVersion
-
-
Constructor Details
-
Builder
protected Builder(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported)
-
-
Method Details
-
withSessionInfo
Set value for optional field.- Parameters:
sessionInfo- Desktop session unique id.- Returns:
- this builder
-
withClientVersion
Set value for optional field.- Parameters:
clientVersion- The Dropbox client version.- Returns:
- this builder
-
withIpAddress
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
Set value for optional field.- Overrides:
withCreatedin classDeviceSessionLogInfo.Builder- Parameters:
created- The time this session was created.- Returns:
- this builder
-
withUpdated
Set value for optional field.- Overrides:
withUpdatedin classDeviceSessionLogInfo.Builder- Parameters:
updated- The time of the last activity from this session.- Returns:
- this builder
-
build
Builds an instance ofDesktopDeviceSessionLogInfoconfigured with this builder's values- Overrides:
buildin classDeviceSessionLogInfo.Builder- Returns:
- new instance of
DesktopDeviceSessionLogInfo
-