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
  • Field Details

    • sessionInfo

      @Nullable protected final DesktopSessionLogInfo sessionInfo
    • hostName

      @Nonnull protected final String hostName
    • clientType

      @Nonnull protected final DesktopPlatform clientType
    • clientVersion

      @Nullable protected final String clientVersion
    • platform

      @Nonnull protected final String 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 sessions

      Use 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 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.
      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 sessions

      The default values for unset fields will be used.

      Parameters:
      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.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getHostName

      @Nonnull public String getHostName()
      Name of the hosting desktop.
      Returns:
      value for this field, never null.
    • getClientType

      @Nonnull public DesktopPlatform getClientType()
      The Dropbox desktop client type.
      Returns:
      value for this field, never null.
    • getPlatform

      @Nonnull public 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

      @Nullable public String getIpAddress()
      The IP address of the last activity from this session.
      Overrides:
      getIpAddress in class DeviceSessionLogInfo
      Returns:
      value for this field, or null if not present.
    • getCreated

      @Nullable public Date getCreated()
      The time this session was created.
      Overrides:
      getCreated in class DeviceSessionLogInfo
      Returns:
      value for this field, or null if not present.
    • getUpdated

      @Nullable public Date getUpdated()
      The time of the last activity from this session.
      Overrides:
      getUpdated in class DeviceSessionLogInfo
      Returns:
      value for this field, or null if not present.
    • getSessionInfo

      @Nullable public DesktopSessionLogInfo getSessionInfo()
      Desktop session unique id.
      Returns:
      value for this field, or null if not present.
    • getClientVersion

      @Nullable public String getClientVersion()
      The Dropbox client version.
      Returns:
      value for this field, or null if 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 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.
      Returns:
      builder for this class.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DeviceSessionLogInfo
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class DeviceSessionLogInfo
    • toString

      public String toString()
      Overrides:
      toString in class DeviceSessionLogInfo
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Overrides:
      toStringMultiline in class DeviceSessionLogInfo
      Returns:
      Formatted, multiline String representation of this object