public class DeviceSessionLogInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DeviceSessionLogInfo.Builder
Builder for
DeviceSessionLogInfo . |
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
created |
protected java.lang.String |
ipAddress |
protected java.util.Date |
updated |
Constructor and Description |
---|
DeviceSessionLogInfo()
Device's session logged information.
|
DeviceSessionLogInfo(java.lang.String ipAddress,
java.util.Date created,
java.util.Date updated)
Device's session logged information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreated()
The time this session was created.
|
java.lang.String |
getIpAddress()
The IP address of the last activity from this session.
|
java.util.Date |
getUpdated()
The time of the last activity from this session.
|
int |
hashCode() |
static DeviceSessionLogInfo.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String ipAddress
protected final java.util.Date created
protected final java.util.Date updated
public DeviceSessionLogInfo(java.lang.String ipAddress, java.util.Date created, java.util.Date updated)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
ipAddress
- The IP address of the last activity from this session.
Might be missing due to historical data gap.created
- The time this session was created. Might be missing due
to historical data gap.updated
- The time of the last activity from this session. Might be
missing due to historical data gap.public DeviceSessionLogInfo()
The default values for unset fields will be used.
public java.lang.String getIpAddress()
null
if not present.public java.util.Date getCreated()
null
if not present.public java.util.Date getUpdated()
null
if not present.public static DeviceSessionLogInfo.Builder newBuilder()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.