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
Builder for
DesktopClientSession.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DesktopPlatformprotected final Stringprotected final Stringprotected final booleanprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofDesktopClientSessionconfigured with this builder's valueswithCountry(String country) Set value for optional field.withCreated(Date created) Set value for optional field.withIpAddress(String ipAddress) Set value for optional field.withUpdated(Date updated) Set value for optional field.
-
Field Details
-
hostName
-
clientType
-
clientVersion
-
platform
-
isDeleteOnUnlinkSupported
protected final boolean isDeleteOnUnlinkSupported
-
-
Constructor Details
-
Builder
protected Builder(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported)
-
-
Method Details
-
withIpAddress
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
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
Set value for optional field.- Overrides:
withCreatedin classDeviceSession.Builder- Parameters:
created- The time this session was created.- Returns:
- this builder
-
withUpdated
Set value for optional field.- Overrides:
withUpdatedin classDeviceSession.Builder- Parameters:
updated- The time of the last activity from this session.- Returns:
- this builder
-
build
Builds an instance ofDesktopClientSessionconfigured with this builder's values- Overrides:
buildin classDeviceSession.Builder- Returns:
- new instance of
DesktopClientSession
-