public class DeviceUnlinkDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DeviceUnlinkDetails.Builder
Builder for
DeviceUnlinkDetails . |
Modifier and Type | Field and Description |
---|---|
protected boolean |
deleteData |
protected java.lang.String |
displayName |
protected SessionLogInfo |
sessionInfo |
Constructor and Description |
---|
DeviceUnlinkDetails(boolean deleteData)
Disconnected device.
|
DeviceUnlinkDetails(boolean deleteData,
SessionLogInfo sessionInfo,
java.lang.String displayName)
Disconnected device.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getDeleteData()
True if the user requested to delete data after device unlink, false
otherwise.
|
java.lang.String |
getDisplayName()
The device name.
|
SessionLogInfo |
getSessionInfo()
Session unique id.
|
int |
hashCode() |
static DeviceUnlinkDetails.Builder |
newBuilder(boolean deleteData)
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.
|
protected final SessionLogInfo sessionInfo
protected final java.lang.String displayName
protected final boolean deleteData
public DeviceUnlinkDetails(boolean deleteData, SessionLogInfo sessionInfo, java.lang.String displayName)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
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.public DeviceUnlinkDetails(boolean deleteData)
The default values for unset fields will be used.
deleteData
- True if the user requested to delete data after device
unlink, false otherwise.public boolean getDeleteData()
public SessionLogInfo getSessionInfo()
null
if not present.public java.lang.String getDisplayName()
null
if not present.public static DeviceUnlinkDetails.Builder newBuilder(boolean deleteData)
deleteData
- True if the user requested to delete data after device
unlink, false otherwise.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.