Package com.dropbox.core.v2.teamlog
Class DesktopDeviceSessionLogInfo
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
-
- com.dropbox.core.v2.teamlog.DesktopDeviceSessionLogInfo
-
public class DesktopDeviceSessionLogInfo extends DeviceSessionLogInfo
Information about linked Dropbox desktop client sessions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DesktopDeviceSessionLogInfo.Builder
Builder forDesktopDeviceSessionLogInfo
.
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
created, ipAddress, updated
-
-
Constructor Summary
Constructors Constructor Description DesktopDeviceSessionLogInfo(java.lang.String hostName, DesktopPlatform clientType, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
Information about linked Dropbox desktop client sessionsDesktopDeviceSessionLogInfo(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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
newBuilder
-
-
-
-
Field Detail
-
sessionInfo
protected final DesktopSessionLogInfo sessionInfo
-
hostName
protected final java.lang.String hostName
-
clientType
protected final DesktopPlatform clientType
-
clientVersion
protected final java.lang.String clientVersion
-
platform
protected final java.lang.String platform
-
isDeleteOnUnlinkSupported
protected final boolean isDeleteOnUnlinkSupported
-
-
Constructor Detail
-
DesktopDeviceSessionLogInfo
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)
Information about linked Dropbox desktop client sessionsUse
newBuilder(java.lang.String,com.dropbox.core.v2.team.DesktopPlatform,java.lang.String,boolean)
to create instances of this class without specifying values for all optional fields.- Parameters:
hostName
- Name of the hosting desktop. Must not benull
.clientType
- The Dropbox desktop client type. Must not benull
.platform
- Information on the hosting platform. Must not benull
.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.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
DesktopDeviceSessionLogInfo
public DesktopDeviceSessionLogInfo(java.lang.String hostName, DesktopPlatform clientType, java.lang.String platform, boolean isDeleteOnUnlinkSupported)
Information about linked Dropbox desktop client sessionsThe default values for unset fields will be used.
- Parameters:
hostName
- Name of the hosting desktop. Must not benull
.clientType
- The Dropbox desktop client type. Must not benull
.platform
- Information on the hosting platform. Must not benull
.isDeleteOnUnlinkSupported
- Whether itu2019s possible to delete all of the account files upon unlinking.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getHostName
public java.lang.String getHostName()
Name of the hosting desktop.- Returns:
- value for this field, never
null
.
-
getClientType
public DesktopPlatform getClientType()
The Dropbox desktop client type.- Returns:
- value for this field, never
null
.
-
getPlatform
public java.lang.String getPlatform()
Information on the hosting platform.- Returns:
- value for this field, never
null
.
-
getIsDeleteOnUnlinkSupported
public boolean getIsDeleteOnUnlinkSupported()
Whether itu2019s possible to delete all of the account files upon unlinking.- Returns:
- value for this field.
-
getIpAddress
public java.lang.String getIpAddress()
The IP address of the last activity from this session. Might be missing due to historical data gap.- Overrides:
getIpAddress
in classDeviceSessionLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getCreated
public java.util.Date getCreated()
The time this session was created. Might be missing due to historical data gap.- Overrides:
getCreated
in classDeviceSessionLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getUpdated
public java.util.Date getUpdated()
The time of the last activity from this session. Might be missing due to historical data gap.- Overrides:
getUpdated
in classDeviceSessionLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getSessionInfo
public DesktopSessionLogInfo getSessionInfo()
Desktop session unique id. Might be missing due to historical data gap.- Returns:
- value for this field, or
null
if not present.
-
getClientVersion
public java.lang.String getClientVersion()
The Dropbox client version.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public 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.- Parameters:
hostName
- Name of the hosting desktop. Must not benull
.clientType
- The Dropbox desktop client type. Must not benull
.platform
- Information on the hosting platform. Must not benull
.isDeleteOnUnlinkSupported
- Whether itu2019s possible to delete all of the account files upon unlinking.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDeviceSessionLogInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classDeviceSessionLogInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDeviceSessionLogInfo
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultiline
in classDeviceSessionLogInfo
- Returns:
- Formatted, multiline String representation of this object
-
-