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 protected
Builder(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 ActiveWebSession
build()
Builds an instance ofActiveWebSession
configured with this builder's valuesActiveWebSession.Builder
withCountry(java.lang.String country)
Set value for optional field.ActiveWebSession.Builder
withCreated(java.util.Date created)
Set value for optional field.ActiveWebSession.Builder
withExpires(java.util.Date expires)
Set value for optional field.ActiveWebSession.Builder
withIpAddress(java.lang.String ipAddress)
Set value for optional field.ActiveWebSession.Builder
withUpdated(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:
withIpAddress
in 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:
withCountry
in 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:
withCreated
in 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:
withUpdated
in classDeviceSession.Builder
- Parameters:
updated
- The time of the last activity from this session.- Returns:
- this builder
-
build
public ActiveWebSession build()
Builds an instance ofActiveWebSession
configured with this builder's values- Overrides:
build
in classDeviceSession.Builder
- Returns:
- new instance of
ActiveWebSession
-
-