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 Summary
Constructors Modifier Constructor Description protectedBuilder(java.lang.String sessionId, java.lang.String userAgent, java.lang.String os, java.lang.String browser)
-
Method Summary
All 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
-
withExpires
public ActiveWebSession.Builder withExpires(java.util.Date expires)
Set value for optional field.- Parameters:
expires- The time this session expires.- Returns:
- this builder
-
withIpAddress
public ActiveWebSession.Builder withIpAddress(java.lang.String ipAddress)
Set value for optional field.- Overrides:
withIpAddressin classDeviceSession.Builder- Parameters:
ipAddress- The IP address of the last activity from this session.- Returns:
- this builder
-
withCountry
public ActiveWebSession.Builder withCountry(java.lang.String country)
Set value for optional field.- Overrides:
withCountryin classDeviceSession.Builder- Parameters:
country- The country from which the last activity from this session was made.- Returns:
- this builder
-
withCreated
public ActiveWebSession.Builder withCreated(java.util.Date created)
Set value for optional field.- Overrides:
withCreatedin classDeviceSession.Builder- Parameters:
created- The time this session was created.- Returns:
- this builder
-
withUpdated
public ActiveWebSession.Builder withUpdated(java.util.Date updated)
Set value for optional field.- Overrides:
withUpdatedin classDeviceSession.Builder- Parameters:
updated- The time of the last activity from this session.- Returns:
- this builder
-
build
public ActiveWebSession build()
Builds an instance ofActiveWebSessionconfigured with this builder's values- Overrides:
buildin classDeviceSession.Builder- Returns:
- new instance of
ActiveWebSession
-
-