Package com.dropbox.core.v2.team
Class DesktopClientSession.Builder
- java.lang.Object
-
- com.dropbox.core.v2.team.DeviceSession.Builder
-
- com.dropbox.core.v2.team.DesktopClientSession.Builder
-
- Enclosing class:
- DesktopClientSession
public static class DesktopClientSession.Builder extends DeviceSession.Builder
Builder forDesktopClientSession
.
-
-
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
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String sessionId, java.lang.String hostName, DesktopPlatform clientType, java.lang.String clientVersion, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DesktopClientSession
build()
Builds an instance ofDesktopClientSession
configured with this builder's valuesDesktopClientSession.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.
-
-
-
Field Detail
-
hostName
protected final java.lang.String hostName
-
clientType
protected final DesktopPlatform clientType
-
clientVersion
protected final java.lang.String clientVersion
-
platform
protected final java.lang.String platform
-
isDeleteOnUnlinkSupported
protected final boolean isDeleteOnUnlinkSupported
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String sessionId, java.lang.String hostName, DesktopPlatform clientType, java.lang.String clientVersion, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
-
-
Method Detail
-
withIpAddress
public DesktopClientSession.Builder withIpAddress(java.lang.String ipAddress)
Set value for optional field.- Overrides:
withIpAddress
in classDeviceSession.Builder
- Parameters:
ipAddress
- The IP address of the last activity from this session.- Returns:
- this builder
-
withCountry
public DesktopClientSession.Builder withCountry(java.lang.String country)
Set value for optional field.- Overrides:
withCountry
in classDeviceSession.Builder
- Parameters:
country
- The country from which the last activity from this session was made.- Returns:
- this builder
-
withCreated
public DesktopClientSession.Builder withCreated(java.util.Date created)
Set value for optional field.- Overrides:
withCreated
in classDeviceSession.Builder
- Parameters:
created
- The time this session was created.- Returns:
- this builder
-
withUpdated
public DesktopClientSession.Builder withUpdated(java.util.Date updated)
Set value for optional field.- Overrides:
withUpdated
in classDeviceSession.Builder
- Parameters:
updated
- The time of the last activity from this session.- Returns:
- this builder
-
build
public DesktopClientSession build()
Builds an instance ofDesktopClientSession
configured with this builder's values- Overrides:
build
in classDeviceSession.Builder
- Returns:
- new instance of
DesktopClientSession
-
-