public class SharedLinkSettingsChangeAudienceDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SharedLinkSettingsChangeAudienceDetails.Builder
Builder for
SharedLinkSettingsChangeAudienceDetails . |
Modifier and Type | Field and Description |
---|---|
protected LinkAudience |
newValue |
protected LinkAudience |
previousValue |
protected AccessLevel |
sharedContentAccessLevel |
protected java.lang.String |
sharedContentLink |
Constructor and Description |
---|
SharedLinkSettingsChangeAudienceDetails(AccessLevel sharedContentAccessLevel,
LinkAudience newValue)
Changed the audience of the shared link.
|
SharedLinkSettingsChangeAudienceDetails(AccessLevel sharedContentAccessLevel,
LinkAudience newValue,
java.lang.String sharedContentLink,
LinkAudience previousValue)
Changed the audience of the shared link.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
LinkAudience |
getNewValue()
New link audience value.
|
LinkAudience |
getPreviousValue()
Previous link audience value.
|
AccessLevel |
getSharedContentAccessLevel()
Shared content access level.
|
java.lang.String |
getSharedContentLink()
Shared content link.
|
int |
hashCode() |
static SharedLinkSettingsChangeAudienceDetails.Builder |
newBuilder(AccessLevel sharedContentAccessLevel,
LinkAudience newValue)
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 AccessLevel sharedContentAccessLevel
protected final java.lang.String sharedContentLink
protected final LinkAudience newValue
protected final LinkAudience previousValue
public SharedLinkSettingsChangeAudienceDetails(AccessLevel sharedContentAccessLevel, LinkAudience newValue, java.lang.String sharedContentLink, LinkAudience previousValue)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
sharedContentAccessLevel
- Shared content access level. Must not be
null
.newValue
- New link audience value. Must not be null
.sharedContentLink
- Shared content link.previousValue
- Previous link audience value.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedLinkSettingsChangeAudienceDetails(AccessLevel sharedContentAccessLevel, LinkAudience newValue)
The default values for unset fields will be used.
sharedContentAccessLevel
- Shared content access level. Must not be
null
.newValue
- New link audience value. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AccessLevel getSharedContentAccessLevel()
null
.public LinkAudience getNewValue()
null
.public java.lang.String getSharedContentLink()
null
if not present.public LinkAudience getPreviousValue()
null
if not present.public static SharedLinkSettingsChangeAudienceDetails.Builder newBuilder(AccessLevel sharedContentAccessLevel, LinkAudience newValue)
sharedContentAccessLevel
- Shared content access level. Must not be
null
.newValue
- New link audience value. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.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.