Package com.dropbox.core.v2.teamlog
Class DeviceUnlinkDetails
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.DeviceUnlinkDetails
-
public class DeviceUnlinkDetails extends java.lang.Object
Disconnected device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeviceUnlinkDetails.Builder
Builder forDeviceUnlinkDetails
.
-
Field Summary
Fields Modifier and Type Field Description protected boolean
deleteData
protected java.lang.String
displayName
protected SessionLogInfo
sessionInfo
-
Constructor Summary
Constructors Constructor Description DeviceUnlinkDetails(boolean deleteData)
Disconnected device.DeviceUnlinkDetails(boolean deleteData, SessionLogInfo sessionInfo, java.lang.String displayName)
Disconnected device.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
sessionInfo
@Nullable protected final SessionLogInfo sessionInfo
-
displayName
@Nullable protected final java.lang.String displayName
-
deleteData
protected final boolean deleteData
-
-
Constructor Detail
-
DeviceUnlinkDetails
public DeviceUnlinkDetails(boolean deleteData, @Nullable SessionLogInfo sessionInfo, @Nullable 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
@Nullable public SessionLogInfo getSessionInfo()
Session unique id.- Returns:
- value for this field, or
null
if not present.
-
getDisplayName
@Nullable 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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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
-
-