Class DeviceUnlinkDetails


  • public class DeviceUnlinkDetails
    extends java.lang.Object
    Disconnected device.
    • Field Detail

      • displayName

        protected final java.lang.String displayName
      • deleteData

        protected final boolean deleteData
    • Constructor Detail

      • DeviceUnlinkDetails

        public DeviceUnlinkDetails​(boolean deleteData,
                                   SessionLogInfo sessionInfo,
                                   java.lang.String displayName)
        Disconnected device.

        Use newBuilder(boolean) to create instances of this class without specifying values for all optional fields.

        Parameters:
        deleteData - True if the user requested to delete data after device unlink, false otherwise.
        sessionInfo - Session unique id.
        displayName - The device name. Might be missing due to historical data gap.
      • DeviceUnlinkDetails

        public DeviceUnlinkDetails​(boolean deleteData)
        Disconnected device.

        The default values for unset fields will be used.

        Parameters:
        deleteData - True if the user requested to delete data after device unlink, false otherwise.
    • Method Detail

      • getDeleteData

        public boolean getDeleteData()
        True if the user requested to delete data after device unlink, false otherwise.
        Returns:
        value for this field.
      • getSessionInfo

        public SessionLogInfo getSessionInfo()
        Session unique id.
        Returns:
        value for this field, or null if not present.
      • getDisplayName

        public java.lang.String getDisplayName()
        The device name. Might be missing due to historical data gap.
        Returns:
        value for this field, or null if not present.
      • newBuilder

        public static DeviceUnlinkDetails.Builder newBuilder​(boolean deleteData)
        Returns a new builder for creating an instance of this class.
        Parameters:
        deleteData - True if the user requested to delete data after device unlink, false otherwise.
        Returns:
        builder for this class.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringMultiline

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

        The returned String may contain newlines.

        Returns:
        Formatted, multiline String representation of this object