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 DesktopPlatformclientTypeprotected java.lang.StringclientVersionprotected java.lang.StringhostNameprotected booleanisDeleteOnUnlinkSupportedprotected java.lang.Stringplatform
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(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 DesktopClientSessionbuild()Builds an instance ofDesktopClientSessionconfigured with this builder's valuesDesktopClientSession.BuilderwithCountry(java.lang.String country)Set value for optional field.DesktopClientSession.BuilderwithCreated(java.util.Date created)Set value for optional field.DesktopClientSession.BuilderwithIpAddress(java.lang.String ipAddress)Set value for optional field.DesktopClientSession.BuilderwithUpdated(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:
withIpAddressin 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:
withCountryin 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:
withCreatedin 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:
withUpdatedin classDeviceSession.Builder- Parameters:
updated- The time of the last activity from this session.- Returns:
- this builder
-
build
public DesktopClientSession build()
Builds an instance ofDesktopClientSessionconfigured with this builder's values- Overrides:
buildin classDeviceSession.Builder- Returns:
- new instance of
DesktopClientSession
-
-