public class SharedLinkSettings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SharedLinkSettings.Builder
Builder for
SharedLinkSettings . |
Modifier and Type | Field and Description |
---|---|
protected Date |
expires |
protected String |
linkPassword |
protected RequestedVisibility |
requestedVisibility |
Constructor and Description |
---|
SharedLinkSettings()
None
|
SharedLinkSettings(RequestedVisibility requestedVisibility,
String linkPassword,
Date expires)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getExpires()
Expiration time of the shared link.
|
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.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final RequestedVisibility requestedVisibility
protected final String linkPassword
protected final Date expires
public SharedLinkSettings(RequestedVisibility requestedVisibility, String linkPassword, Date expires)
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.public SharedLinkSettings()
The default values for unset fields will be used.
public RequestedVisibility getRequestedVisibility()
null
if not present.public String getLinkPassword()
getRequestedVisibility()
is RequestedVisibility.PASSWORD
this is needed to specify the password to
access the link.null
if not present.public Date getExpires()
null
if not present.public static SharedLinkSettings.Builder newBuilder()
public String toStringMultiline()
The returned String may contain newlines.