public static class DesktopClientSession.Builder extends DeviceSession.Builder
DesktopClientSession
.Modifier and Type | Field and Description |
---|---|
protected DesktopPlatform |
clientType |
protected String |
clientVersion |
protected String |
hostName |
protected boolean |
isDeleteOnUnlinkSupported |
protected String |
platform |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String sessionId,
String hostName,
DesktopPlatform clientType,
String clientVersion,
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(String country)
Set value for optional field.
|
DesktopClientSession.Builder |
withCreated(Date created)
Set value for optional field.
|
DesktopClientSession.Builder |
withIpAddress(String ipAddress)
Set value for optional field.
|
DesktopClientSession.Builder |
withUpdated(Date updated)
Set value for optional field.
|
protected final String hostName
protected final DesktopPlatform clientType
protected final String clientVersion
protected final String platform
protected final boolean isDeleteOnUnlinkSupported
protected Builder(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported)
public DesktopClientSession.Builder withIpAddress(String ipAddress)
withIpAddress
in class DeviceSession.Builder
ipAddress
- The IP address of the last activity from this
session.public DesktopClientSession.Builder withCountry(String country)
withCountry
in class DeviceSession.Builder
country
- The country from which the last activity from this
session was made.public DesktopClientSession.Builder withCreated(Date created)
withCreated
in class DeviceSession.Builder
created
- The time this session was created.public DesktopClientSession.Builder withUpdated(Date updated)
withUpdated
in class DeviceSession.Builder
updated
- The time of the last activity from this session.public DesktopClientSession build()
DesktopClientSession
configured with
this builder's valuesbuild
in class DeviceSession.Builder
DesktopClientSession