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 MobileClientPlatform
clientType
protected java.lang.String
clientVersion
protected java.lang.String
deviceName
protected java.lang.String
lastCarrier
protected java.lang.String
osVersion
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String sessionId, java.lang.String deviceName, MobileClientPlatform clientType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MobileClientSession
build()
Builds an instance ofMobileClientSession
configured with this builder's valuesMobileClientSession.Builder
withClientVersion(java.lang.String clientVersion)
Set value for optional field.MobileClientSession.Builder
withCountry(java.lang.String country)
Set value for optional field.MobileClientSession.Builder
withCreated(java.util.Date created)
Set value for optional field.MobileClientSession.Builder
withIpAddress(java.lang.String ipAddress)
Set value for optional field.MobileClientSession.Builder
withLastCarrier(java.lang.String lastCarrier)
Set value for optional field.MobileClientSession.Builder
withOsVersion(java.lang.String osVersion)
Set value for optional field.MobileClientSession.Builder
withUpdated(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:
withIpAddress
in 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:
withCountry
in 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:
withCreated
in 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:
withUpdated
in classDeviceSession.Builder
- Parameters:
updated
- The time of the last activity from this session.- Returns:
- this builder
-
build
public MobileClientSession build()
Builds an instance ofMobileClientSession
configured with this builder's values- Overrides:
build
in classDeviceSession.Builder
- Returns:
- new instance of
MobileClientSession
-
-