public static class DesktopClientSession.Builder extends DeviceSession.Builder
DesktopClientSession.| Modifier and Type | Field and Description |
|---|---|
protected DesktopPlatform |
clientType |
protected java.lang.String |
clientVersion |
protected java.lang.String |
hostName |
protected boolean |
isDeleteOnUnlinkSupported |
protected java.lang.String |
platform |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder(java.lang.String sessionId,
java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String clientVersion,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported) |
| Modifier and Type | Method and Description |
|---|---|
DesktopClientSession |
build()
Builds an instance of
DesktopClientSession configured with
this builder's values |
DesktopClientSession.Builder |
withCountry(java.lang.String country)
Set value for optional field.
|
DesktopClientSession.Builder |
withCreated(java.util.Date created)
Set value for optional field.
|
DesktopClientSession.Builder |
withIpAddress(java.lang.String ipAddress)
Set value for optional field.
|
DesktopClientSession.Builder |
withUpdated(java.util.Date updated)
Set value for optional field.
|
protected final java.lang.String hostName
protected final DesktopPlatform clientType
protected final java.lang.String clientVersion
protected final java.lang.String platform
protected final boolean isDeleteOnUnlinkSupported
protected Builder(java.lang.String sessionId,
java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String clientVersion,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported)
public DesktopClientSession.Builder withIpAddress(java.lang.String ipAddress)
withIpAddress in class DeviceSession.BuilderipAddress - The IP address of the last activity from this
session.public DesktopClientSession.Builder withCountry(java.lang.String country)
withCountry in class DeviceSession.Buildercountry - The country from which the last activity from this
session was made.public DesktopClientSession.Builder withCreated(java.util.Date created)
withCreated in class DeviceSession.Buildercreated - The time this session was created.public DesktopClientSession.Builder withUpdated(java.util.Date updated)
withUpdated in class DeviceSession.Builderupdated - The time of the last activity from this session.public DesktopClientSession build()
DesktopClientSession configured with
this builder's valuesbuild in class DeviceSession.BuilderDesktopClientSession