Package com.dropbox.core.v2.teamlog
Class DeviceSessionLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
- Direct Known Subclasses:
DesktopDeviceSessionLogInfo,LegacyDeviceSessionLogInfo,MobileDeviceSessionLogInfo,WebDeviceSessionLogInfo
Device's session logged information.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDevice's session logged information.DeviceSessionLogInfo(String ipAddress, Date created, Date updated) Device's session logged information. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe time this session was created.The IP address of the last activity from this session.The time of the last activity from this session.inthashCode()static DeviceSessionLogInfo.BuilderReturns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
ipAddress
-
created
-
updated
-
-
Constructor Details
-
DeviceSessionLogInfo
public DeviceSessionLogInfo(@Nullable String ipAddress, @Nullable Date created, @Nullable Date updated) Device's session logged information.Use
newBuilder()to create instances of this class without specifying values for all optional fields.- Parameters:
ipAddress- The IP address of the last activity from this session.created- The time this session was created.updated- The time of the last activity from this session.
-
DeviceSessionLogInfo
public DeviceSessionLogInfo()Device's session logged information.The default values for unset fields will be used.
-
-
Method Details
-
getIpAddress
The IP address of the last activity from this session.- Returns:
- value for this field, or
nullif not present.
-
getCreated
The time this session was created.- Returns:
- value for this field, or
nullif not present.
-
getUpdated
The time of the last activity from this session.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-