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 Summary
Fields Modifier and Type Field Description protected MobileClientPlatformclientTypeprotected java.lang.StringclientVersionprotected java.lang.StringdeviceNameprotected java.lang.StringlastCarrierprotected java.lang.StringosVersion
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String sessionId, java.lang.String deviceName, MobileClientPlatform clientType)
-
Method Summary
All 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
-
deviceName
protected final java.lang.String deviceName
-
clientType
protected final MobileClientPlatform clientType
-
clientVersion
protected java.lang.String clientVersion
-
osVersion
protected java.lang.String osVersion
-
lastCarrier
protected java.lang.String lastCarrier
-
-
Constructor Detail
-
Builder
protected Builder(java.lang.String sessionId, java.lang.String deviceName, MobileClientPlatform clientType)
-
-
Method Detail
-
withClientVersion
public MobileClientSession.Builder withClientVersion(java.lang.String clientVersion)
Set value for optional field.- Parameters:
clientVersion- The dropbox client version.- Returns:
- this builder
-
withOsVersion
public MobileClientSession.Builder withOsVersion(java.lang.String osVersion)
Set value for optional field.- Parameters:
osVersion- The hosting OS version.- Returns:
- this builder
-
withLastCarrier
public MobileClientSession.Builder withLastCarrier(java.lang.String lastCarrier)
Set value for optional field.- Parameters:
lastCarrier- last carrier used by the device.- Returns:
- this builder
-
withIpAddress
public MobileClientSession.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 MobileClientSession.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 MobileClientSession.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 MobileClientSession.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 MobileClientSession build()
Builds an instance ofMobileClientSessionconfigured with this builder's values- Overrides:
buildin classDeviceSession.Builder- Returns:
- new instance of
MobileClientSession
-
-