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.ObjectBuilder forDeviceSession.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String sessionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceSessionbuild()Builds an instance ofDeviceSessionconfigured with this builder's valuesDeviceSession.BuilderwithCountry(java.lang.String country)Set value for optional field.DeviceSession.BuilderwithCreated(java.util.Date created)Set value for optional field.DeviceSession.BuilderwithIpAddress(java.lang.String ipAddress)Set value for optional field.DeviceSession.BuilderwithUpdated(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 ofDeviceSessionconfigured with this builder's values- Returns:
- new instance of
DeviceSession
-
-