Package com.dropbox.core.v2.team
Class MobileClientSession.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.team.DeviceSession.Builder
- 
- com.dropbox.core.v2.team.MobileClientSession.Builder
 
 
- 
- Enclosing class:
- MobileClientSession
 
 public static class MobileClientSession.Builder extends DeviceSession.Builder Builder forMobileClientSession.
- 
- 
Field SummaryFields Modifier and Type Field Description protected MobileClientPlatformclientTypeprotected java.lang.StringclientVersionprotected java.lang.StringdeviceNameprotected java.lang.StringlastCarrierprotected java.lang.StringosVersion
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String sessionId, java.lang.String deviceName, MobileClientPlatform clientType)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MobileClientSessionbuild()Builds an instance ofMobileClientSessionconfigured with this builder's valuesMobileClientSession.BuilderwithClientVersion(java.lang.String clientVersion)Set value for optional field.MobileClientSession.BuilderwithCountry(java.lang.String country)Set value for optional field.MobileClientSession.BuilderwithCreated(java.util.Date created)Set value for optional field.MobileClientSession.BuilderwithIpAddress(java.lang.String ipAddress)Set value for optional field.MobileClientSession.BuilderwithLastCarrier(java.lang.String lastCarrier)Set value for optional field.MobileClientSession.BuilderwithOsVersion(java.lang.String osVersion)Set value for optional field.MobileClientSession.BuilderwithUpdated(java.util.Date updated)Set value for optional field.
 
- 
- 
- 
Field Detail- 
deviceNameprotected final java.lang.String deviceName 
 - 
clientTypeprotected final MobileClientPlatform clientType 
 - 
clientVersionprotected java.lang.String clientVersion 
 - 
osVersionprotected java.lang.String osVersion 
 - 
lastCarrierprotected java.lang.String lastCarrier 
 
- 
 - 
Constructor Detail- 
Builderprotected Builder(java.lang.String sessionId, java.lang.String deviceName, MobileClientPlatform clientType)
 
- 
 - 
Method Detail- 
withClientVersionpublic MobileClientSession.Builder withClientVersion(java.lang.String clientVersion) Set value for optional field.- Parameters:
- clientVersion- The dropbox client version.
- Returns:
- this builder
 
 - 
withOsVersionpublic MobileClientSession.Builder withOsVersion(java.lang.String osVersion) Set value for optional field.- Parameters:
- osVersion- The hosting OS version.
- Returns:
- this builder
 
 - 
withLastCarrierpublic MobileClientSession.Builder withLastCarrier(java.lang.String lastCarrier) Set value for optional field.- Parameters:
- lastCarrier- last carrier used by the device.
- Returns:
- this builder
 
 - 
withIpAddresspublic MobileClientSession.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 MobileClientSession.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 MobileClientSession.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 MobileClientSession.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 MobileClientSession build() Builds an instance ofMobileClientSessionconfigured with this builder's values- Overrides:
- buildin class- DeviceSession.Builder
- Returns:
- new instance of MobileClientSession
 
 
- 
 
-