public class SharedLinkSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SharedLinkSettings.Builder
Builder for
SharedLinkSettings . |
Modifier and Type | Field and Description |
---|---|
protected RequestedLinkAccessLevel |
access |
protected LinkAudience |
audience |
protected java.util.Date |
expires |
protected java.lang.String |
linkPassword |
protected RequestedVisibility |
requestedVisibility |
Constructor and Description |
---|
SharedLinkSettings()
None
|
SharedLinkSettings(RequestedVisibility requestedVisibility,
java.lang.String linkPassword,
java.util.Date expires,
LinkAudience audience,
RequestedLinkAccessLevel access)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
RequestedLinkAccessLevel |
getAccess()
Requested access level you want the audience to gain from this link.
|
LinkAudience |
getAudience()
The new audience who can benefit from the access level specified by the
link's access level specified in the `link_access_level` field of
`LinkPermissions`.
|
java.util.Date |
getExpires()
Expiration time of the shared link.
|
java.lang.String |
getLinkPassword()
If
getRequestedVisibility() is RequestedVisibility.PASSWORD this is needed to specify the password to
access the link. |
RequestedVisibility |
getRequestedVisibility()
The requested access for this shared link.
|
int |
hashCode() |
static SharedLinkSettings.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 RequestedVisibility requestedVisibility
protected final java.lang.String linkPassword
protected final java.util.Date expires
protected final LinkAudience audience
protected final RequestedLinkAccessLevel access
public SharedLinkSettings(RequestedVisibility requestedVisibility, java.lang.String linkPassword, java.util.Date expires, LinkAudience audience, RequestedLinkAccessLevel access)
newBuilder
to create instances of this class without
specifying values for all optional fields.requestedVisibility
- The requested access for this shared link.linkPassword
- If getRequestedVisibility()
is RequestedVisibility.PASSWORD
this is needed to specify the
password to access the link.expires
- Expiration time of the shared link. By default the link
won't expire.audience
- The new audience who can benefit from the access level
specified by the link's access level specified in the
`link_access_level` field of `LinkPermissions`. This is used in
conjunction with team policies and shared folder policies to
determine the final effective audience type in the
`effective_audience` field of `LinkPermissions.access
- Requested access level you want the audience to gain from
this link. Note, modifying access level for an existing link is not
supported.public SharedLinkSettings()
The default values for unset fields will be used.
public RequestedVisibility getRequestedVisibility()
null
if not present.public java.lang.String getLinkPassword()
getRequestedVisibility()
is RequestedVisibility.PASSWORD
this is needed to specify the password to
access the link.null
if not present.public java.util.Date getExpires()
null
if not present.public LinkAudience getAudience()
null
if not present.public RequestedLinkAccessLevel getAccess()
null
if not present.public static SharedLinkSettings.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.