Package com.dropbox.core.v2.team
Class DeviceSession.Builder
- java.lang.Object
-
- com.dropbox.core.v2.team.DeviceSession.Builder
-
- Direct Known Subclasses:
ActiveWebSession.Builder
,DesktopClientSession.Builder
,MobileClientSession.Builder
- Enclosing class:
- DeviceSession
public static class DeviceSession.Builder extends java.lang.Object
Builder forDeviceSession
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String sessionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceSession
build()
Builds an instance ofDeviceSession
configured with this builder's valuesDeviceSession.Builder
withCountry(java.lang.String country)
Set value for optional field.DeviceSession.Builder
withCreated(java.util.Date created)
Set value for optional field.DeviceSession.Builder
withIpAddress(java.lang.String ipAddress)
Set value for optional field.DeviceSession.Builder
withUpdated(java.util.Date updated)
Set value for optional field.
-
-
-
Method Detail
-
withIpAddress
public DeviceSession.Builder withIpAddress(java.lang.String ipAddress)
Set value for optional field.- Parameters:
ipAddress
- The IP address of the last activity from this session.- Returns:
- this builder
-
withCountry
public DeviceSession.Builder withCountry(java.lang.String country)
Set value for optional field.- Parameters:
country
- The country from which the last activity from this session was made.- Returns:
- this builder
-
withCreated
public DeviceSession.Builder withCreated(java.util.Date created)
Set value for optional field.- Parameters:
created
- The time this session was created.- Returns:
- this builder
-
withUpdated
public DeviceSession.Builder withUpdated(java.util.Date updated)
Set value for optional field.- Parameters:
updated
- The time of the last activity from this session.- Returns:
- this builder
-
build
public DeviceSession build()
Builds an instance ofDeviceSession
configured with this builder's values- Returns:
- new instance of
DeviceSession
-
-