Package com.dropbox.core.v2.team
Class ActiveWebSession.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.team.DeviceSession.Builder
- 
- com.dropbox.core.v2.team.ActiveWebSession.Builder
 
 
- 
- Enclosing class:
- ActiveWebSession
 
 public static class ActiveWebSession.Builder extends DeviceSession.Builder Builder forActiveWebSession.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String sessionId, java.lang.String userAgent, java.lang.String os, java.lang.String browser)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ActiveWebSessionbuild()Builds an instance ofActiveWebSessionconfigured with this builder's valuesActiveWebSession.BuilderwithCountry(java.lang.String country)Set value for optional field.ActiveWebSession.BuilderwithCreated(java.util.Date created)Set value for optional field.ActiveWebSession.BuilderwithExpires(java.util.Date expires)Set value for optional field.ActiveWebSession.BuilderwithIpAddress(java.lang.String ipAddress)Set value for optional field.ActiveWebSession.BuilderwithUpdated(java.util.Date updated)Set value for optional field.
 
- 
- 
- 
Method Detail- 
withExpirespublic ActiveWebSession.Builder withExpires(java.util.Date expires) Set value for optional field.- Parameters:
- expires- The time this session expires.
- Returns:
- this builder
 
 - 
withIpAddresspublic ActiveWebSession.Builder withIpAddress(java.lang.String ipAddress) Set value for optional field.- Overrides:
- withIpAddressin class- DeviceSession.Builder
- Parameters:
- ipAddress- The IP address of the last activity from this session.
- Returns:
- this builder
 
 - 
withCountrypublic ActiveWebSession.Builder withCountry(java.lang.String country) Set value for optional field.- Overrides:
- withCountryin class- DeviceSession.Builder
- Parameters:
- country- The country from which the last activity from this session was made.
- Returns:
- this builder
 
 - 
withCreatedpublic ActiveWebSession.Builder withCreated(java.util.Date created) Set value for optional field.- Overrides:
- withCreatedin class- DeviceSession.Builder
- Parameters:
- created- The time this session was created.
- Returns:
- this builder
 
 - 
withUpdatedpublic ActiveWebSession.Builder withUpdated(java.util.Date updated) Set value for optional field.- Overrides:
- withUpdatedin class- DeviceSession.Builder
- Parameters:
- updated- The time of the last activity from this session.
- Returns:
- this builder
 
 - 
buildpublic ActiveWebSession build() Builds an instance ofActiveWebSessionconfigured with this builder's values- Overrides:
- buildin class- DeviceSession.Builder
- Returns:
- new instance of ActiveWebSession
 
 
- 
 
-