public class DesktopDeviceSessionLogInfo extends DeviceSessionLogInfo
Modifier and Type | Class and Description |
---|---|
static class |
DesktopDeviceSessionLogInfo.Builder
Builder for
DesktopDeviceSessionLogInfo . |
Modifier and Type | Field and Description |
---|---|
protected DesktopPlatform |
clientType |
protected java.lang.String |
clientVersion |
protected java.lang.String |
hostName |
protected boolean |
isDeleteOnUnlinkSupported |
protected java.lang.String |
platform |
protected DesktopSessionLogInfo |
sessionInfo |
created, ipAddress, updated
Constructor and Description |
---|
DesktopDeviceSessionLogInfo(java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported)
Information about linked Dropbox desktop client sessions
|
DesktopDeviceSessionLogInfo(java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported,
java.lang.String ipAddress,
java.util.Date created,
java.util.Date updated,
DesktopSessionLogInfo sessionInfo,
java.lang.String clientVersion)
Information about linked Dropbox desktop client sessions
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
DesktopPlatform |
getClientType()
The Dropbox desktop client type.
|
java.lang.String |
getClientVersion()
The Dropbox client version.
|
java.util.Date |
getCreated()
The time this session was created.
|
java.lang.String |
getHostName()
Name of the hosting desktop.
|
java.lang.String |
getIpAddress()
The IP address of the last activity from this session.
|
boolean |
getIsDeleteOnUnlinkSupported()
Whether itu2019s possible to delete all of the account files upon
unlinking.
|
java.lang.String |
getPlatform()
Information on the hosting platform.
|
DesktopSessionLogInfo |
getSessionInfo()
Desktop session unique id.
|
java.util.Date |
getUpdated()
The time of the last activity from this session.
|
int |
hashCode() |
static DesktopDeviceSessionLogInfo.Builder |
newBuilder(java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported)
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.
|
newBuilder
protected final DesktopSessionLogInfo sessionInfo
protected final java.lang.String hostName
protected final DesktopPlatform clientType
protected final java.lang.String clientVersion
protected final java.lang.String platform
protected final boolean isDeleteOnUnlinkSupported
public DesktopDeviceSessionLogInfo(java.lang.String hostName, DesktopPlatform clientType, java.lang.String platform, boolean isDeleteOnUnlinkSupported, java.lang.String ipAddress, java.util.Date created, java.util.Date updated, DesktopSessionLogInfo sessionInfo, java.lang.String clientVersion)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
hostName
- Name of the hosting desktop. Must not be null
.clientType
- The Dropbox desktop client type. Must not be null
.platform
- Information on the hosting platform. Must not be null
.isDeleteOnUnlinkSupported
- Whether itu2019s possible to delete all
of the account files upon unlinking.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.sessionInfo
- Desktop session unique id. Might be missing due to
historical data gap.clientVersion
- The Dropbox client version.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public DesktopDeviceSessionLogInfo(java.lang.String hostName, DesktopPlatform clientType, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
The default values for unset fields will be used.
hostName
- Name of the hosting desktop. Must not be null
.clientType
- The Dropbox desktop client type. Must not be null
.platform
- Information on the hosting platform. Must not be null
.isDeleteOnUnlinkSupported
- Whether itu2019s possible to delete all
of the account files upon unlinking.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getHostName()
null
.public DesktopPlatform getClientType()
null
.public java.lang.String getPlatform()
null
.public boolean getIsDeleteOnUnlinkSupported()
public java.lang.String getIpAddress()
getIpAddress
in class DeviceSessionLogInfo
null
if not present.public java.util.Date getCreated()
getCreated
in class DeviceSessionLogInfo
null
if not present.public java.util.Date getUpdated()
getUpdated
in class DeviceSessionLogInfo
null
if not present.public DesktopSessionLogInfo getSessionInfo()
null
if not present.public java.lang.String getClientVersion()
null
if not present.public static DesktopDeviceSessionLogInfo.Builder newBuilder(java.lang.String hostName, DesktopPlatform clientType, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
hostName
- Name of the hosting desktop. Must not be null
.clientType
- The Dropbox desktop client type. Must not be null
.platform
- Information on the hosting platform. Must not be null
.isDeleteOnUnlinkSupported
- Whether itu2019s possible to delete all
of the account files upon unlinking.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class DeviceSessionLogInfo
public boolean equals(java.lang.Object obj)
equals
in class DeviceSessionLogInfo
public java.lang.String toString()
toString
in class DeviceSessionLogInfo
public java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class DeviceSessionLogInfo