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
Builder for
MobileClientSession.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MobileClientPlatformprotected Stringprotected final Stringprotected Stringprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(String sessionId, String deviceName, MobileClientPlatform clientType) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofMobileClientSessionconfigured with this builder's valueswithClientVersion(String clientVersion) Set value for optional field.withCountry(String country) Set value for optional field.withCreated(Date created) Set value for optional field.withIpAddress(String ipAddress) Set value for optional field.withLastCarrier(String lastCarrier) Set value for optional field.withOsVersion(String osVersion) Set value for optional field.withUpdated(Date updated) Set value for optional field.
-
Field Details
-
deviceName
-
clientType
-
clientVersion
-
osVersion
-
lastCarrier
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withClientVersion
Set value for optional field.- Parameters:
clientVersion- The dropbox client version.- Returns:
- this builder
-
withOsVersion
Set value for optional field.- Parameters:
osVersion- The hosting OS version.- Returns:
- this builder
-
withLastCarrier
Set value for optional field.- Parameters:
lastCarrier- last carrier used by the device.- Returns:
- this builder
-
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 ofMobileClientSessionconfigured with this builder's values- Overrides:
buildin classDeviceSession.Builder- Returns:
- new instance of
MobileClientSession
-