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
Builder for
ActiveWebSession.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofActiveWebSessionconfigured with this builder's valueswithCountry(String country) Set value for optional field.withCreated(Date created) Set value for optional field.withExpires(Date expires) Set value for optional field.withIpAddress(String ipAddress) Set value for optional field.withUpdated(Date updated) Set value for optional field.
-
Field Details
-
userAgent
-
os
-
browser
-
expires
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withExpires
Set value for optional field.- Parameters:
expires- The time this session expires.- Returns:
- this builder
-
withIpAddress
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
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
Set value for optional field.- Overrides:
withCreatedin classDeviceSession.Builder- Parameters:
created- The time this session was created.- Returns:
- this builder
-
withUpdated
Set value for optional field.- Overrides:
withUpdatedin classDeviceSession.Builder- Parameters:
updated- The time of the last activity from this session.- Returns:
- this builder
-
build
Builds an instance ofActiveWebSessionconfigured with this builder's values- Overrides:
buildin classDeviceSession.Builder- Returns:
- new instance of
ActiveWebSession
-