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 SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String sessionId)
 - 
Method SummaryAll 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- 
withIpAddresspublic 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
 
 - 
withCountrypublic 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
 
 - 
withCreatedpublic DeviceSession.Builder withCreated(java.util.Date created) Set value for optional field.- Parameters:
- created- The time this session was created.
- Returns:
- this builder
 
 - 
withUpdatedpublic 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
 
 - 
buildpublic DeviceSession build() Builds an instance ofDeviceSessionconfigured with this builder's values- Returns:
- new instance of DeviceSession
 
 
- 
 
-