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 SummaryFields Modifier and Type Field Description protected DesktopPlatformclientTypeprotected java.lang.StringclientVersionprotected java.lang.StringhostNameprotected booleanisDeleteOnUnlinkSupportedprotected java.lang.Stringplatform
 - 
Constructor SummaryConstructors 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 SummaryAll 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- 
hostNameprotected final java.lang.String hostName 
 - 
clientTypeprotected final DesktopPlatform clientType 
 - 
clientVersionprotected final java.lang.String clientVersion 
 - 
platformprotected final java.lang.String platform 
 - 
isDeleteOnUnlinkSupportedprotected final boolean isDeleteOnUnlinkSupported 
 
- 
 - 
Constructor Detail- 
Builderprotected Builder(java.lang.String sessionId, java.lang.String hostName, DesktopPlatform clientType, java.lang.String clientVersion, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
 
- 
 - 
Method Detail- 
withIpAddresspublic DesktopClientSession.Builder withIpAddress(java.lang.String ipAddress) Set value for optional field.- Overrides:
- withIpAddressin class- DeviceSession.Builder
- Parameters:
- ipAddress- The IP address of the last activity from this session.
- Returns:
- this builder
 
 - 
withCountrypublic DesktopClientSession.Builder withCountry(java.lang.String country) Set value for optional field.- Overrides:
- withCountryin class- DeviceSession.Builder
- Parameters:
- country- The country from which the last activity from this session was made.
- Returns:
- this builder
 
 - 
withCreatedpublic DesktopClientSession.Builder withCreated(java.util.Date created) Set value for optional field.- Overrides:
- withCreatedin class- DeviceSession.Builder
- Parameters:
- created- The time this session was created.
- Returns:
- this builder
 
 - 
withUpdatedpublic DesktopClientSession.Builder withUpdated(java.util.Date updated) Set value for optional field.- Overrides:
- withUpdatedin class- DeviceSession.Builder
- Parameters:
- updated- The time of the last activity from this session.
- Returns:
- this builder
 
 - 
buildpublic DesktopClientSession build() Builds an instance ofDesktopClientSessionconfigured with this builder's values- Overrides:
- buildin class- DeviceSession.Builder
- Returns:
- new instance of DesktopClientSession
 
 
- 
 
-