public class SharingChangeLinkPolicyDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SharingLinkPolicy |
newValue |
protected SharingLinkPolicy |
previousValue |
Constructor and Description |
---|
SharingChangeLinkPolicyDetails(SharingLinkPolicy newValue)
Changed whether members can share links outside team, and if links are
accessible only by team members or anyone by default.
|
SharingChangeLinkPolicyDetails(SharingLinkPolicy newValue,
SharingLinkPolicy previousValue)
Changed whether members can share links outside team, and if links are
accessible only by team members or anyone by default.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
SharingLinkPolicy |
getNewValue()
New external link accessibility policy.
|
SharingLinkPolicy |
getPreviousValue()
Previous external link accessibility policy.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final SharingLinkPolicy newValue
protected final SharingLinkPolicy previousValue
public SharingChangeLinkPolicyDetails(SharingLinkPolicy newValue, SharingLinkPolicy previousValue)
newValue
- New external link accessibility policy. Must not be
null
.previousValue
- Previous external link accessibility policy. Might
be missing due to historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharingChangeLinkPolicyDetails(SharingLinkPolicy newValue)
The default values for unset fields will be used.
newValue
- New external link accessibility policy. Must not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharingLinkPolicy getNewValue()
null
.public SharingLinkPolicy 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.