Package com.dropbox.core.v2.teamlog
Class DesktopDeviceSessionLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
com.dropbox.core.v2.teamlog.DesktopDeviceSessionLogInfo
Information about linked Dropbox desktop client sessions
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DesktopPlatformprotected final Stringprotected final Stringprotected final booleanprotected final Stringprotected final DesktopSessionLogInfoFields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
created, ipAddress, updated -
Constructor Summary
ConstructorsConstructorDescriptionDesktopDeviceSessionLogInfo(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported) Information about linked Dropbox desktop client sessionsDesktopDeviceSessionLogInfo(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported, String ipAddress, Date created, Date updated, DesktopSessionLogInfo sessionInfo, String clientVersion) Information about linked Dropbox desktop client sessions -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe Dropbox desktop client type.The Dropbox client version.The time this session was created.Name of the hosting desktop.The IP address of the last activity from this session.booleanWhether itu2019s possible to delete all of the account files upon unlinking.Information on the hosting platform.Desktop session unique id.The time of the last activity from this session.inthashCode()newBuilder(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
newBuilder
-
Field Details
-
sessionInfo
-
hostName
-
clientType
-
clientVersion
-
platform
-
isDeleteOnUnlinkSupported
protected final boolean isDeleteOnUnlinkSupported
-
-
Constructor Details
-
DesktopDeviceSessionLogInfo
public DesktopDeviceSessionLogInfo(@Nonnull String hostName, @Nonnull DesktopPlatform clientType, @Nonnull String platform, boolean isDeleteOnUnlinkSupported, @Nullable String ipAddress, @Nullable Date created, @Nullable Date updated, @Nullable DesktopSessionLogInfo sessionInfo, @Nullable 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.created- The time this session was created.updated- The time of the last activity from this session.sessionInfo- Desktop session unique id.clientVersion- The Dropbox client version.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
DesktopDeviceSessionLogInfo
public DesktopDeviceSessionLogInfo(@Nonnull String hostName, @Nonnull DesktopPlatform clientType, @Nonnull 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getHostName
Name of the hosting desktop.- Returns:
- value for this field, never
null.
-
getClientType
The Dropbox desktop client type.- Returns:
- value for this field, never
null.
-
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
The IP address of the last activity from this session.- Overrides:
getIpAddressin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getCreated
The time this session was created.- Overrides:
getCreatedin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getUpdated
The time of the last activity from this session.- Overrides:
getUpdatedin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getSessionInfo
Desktop session unique id.- Returns:
- value for this field, or
nullif not present.
-
getClientVersion
The Dropbox client version.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static DesktopDeviceSessionLogInfo.Builder newBuilder(String hostName, DesktopPlatform clientType, 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classDeviceSessionLogInfo
-
equals
- Overrides:
equalsin classDeviceSessionLogInfo
-
toString
- Overrides:
toStringin classDeviceSessionLogInfo
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classDeviceSessionLogInfo- Returns:
- Formatted, multiline String representation of this object
-