public class LinkSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LinkSettings.Builder
Builder for
LinkSettings . |
Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
accessLevel |
protected LinkAudience |
audience |
protected LinkExpiry |
expiry |
protected LinkPassword |
password |
Constructor and Description |
---|
LinkSettings()
Settings that apply to a link.
|
LinkSettings(AccessLevel accessLevel,
LinkAudience audience,
LinkExpiry expiry,
LinkPassword password)
Settings that apply to a link.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AccessLevel |
getAccessLevel()
The access level on the link for this file.
|
LinkAudience |
getAudience()
The type of audience on the link for this file.
|
LinkExpiry |
getExpiry()
An expiry timestamp to set on a link.
|
LinkPassword |
getPassword()
The password for the link.
|
int |
hashCode() |
static LinkSettings.Builder |
newBuilder()
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 accessLevel
protected final LinkAudience audience
protected final LinkExpiry expiry
protected final LinkPassword password
public LinkSettings(AccessLevel accessLevel, LinkAudience audience, LinkExpiry expiry, LinkPassword password)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
accessLevel
- The access level on the link for this file.
Currently, it only accepts 'viewer' and 'viewer_no_comment'.audience
- The type of audience on the link for this file.expiry
- An expiry timestamp to set on a link.password
- The password for the link.public LinkSettings()
The default values for unset fields will be used.
public AccessLevel getAccessLevel()
null
if not present.public LinkAudience getAudience()
null
if not present.public LinkExpiry getExpiry()
null
if not present.public LinkPassword getPassword()
null
if not present.public static LinkSettings.Builder newBuilder()
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.