public class SharedLinkChangeVisibilityDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SharedLinkVisibility |
newValue |
protected SharedLinkVisibility |
previousValue |
Constructor and Description |
---|
SharedLinkChangeVisibilityDetails(SharedLinkVisibility newValue)
Changed visibility of shared link.
|
SharedLinkChangeVisibilityDetails(SharedLinkVisibility newValue,
SharedLinkVisibility previousValue)
Changed visibility of shared link.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
SharedLinkVisibility |
getNewValue()
New shared link visibility.
|
SharedLinkVisibility |
getPreviousValue()
Previous shared link visibility.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final SharedLinkVisibility newValue
protected final SharedLinkVisibility previousValue
public SharedLinkChangeVisibilityDetails(SharedLinkVisibility newValue, SharedLinkVisibility previousValue)
newValue
- New shared link visibility. Must not be null
.previousValue
- Previous shared link visibility. Might be missing
due to historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedLinkChangeVisibilityDetails(SharedLinkVisibility newValue)
The default values for unset fields will be used.
newValue
- New shared link visibility. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedLinkVisibility getNewValue()
null
.public SharedLinkVisibility getPreviousValue()
null
if not present.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.