public class SharedContentLinkMetadataBase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SharedContentLinkMetadataBase.Builder
Builder for
SharedContentLinkMetadataBase . |
Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
accessLevel |
protected java.util.List<LinkAudience> |
audienceOptions |
protected AudienceRestrictingSharedFolder |
audienceRestrictingSharedFolder |
protected LinkAudience |
currentAudience |
protected java.util.Date |
expiry |
protected java.util.List<LinkPermission> |
linkPermissions |
protected boolean |
passwordProtected |
Constructor and Description |
---|
SharedContentLinkMetadataBase(java.util.List<LinkAudience> audienceOptions,
LinkAudience currentAudience,
java.util.List<LinkPermission> linkPermissions,
boolean passwordProtected)
None
|
SharedContentLinkMetadataBase(java.util.List<LinkAudience> audienceOptions,
LinkAudience currentAudience,
java.util.List<LinkPermission> linkPermissions,
boolean passwordProtected,
AccessLevel accessLevel,
AudienceRestrictingSharedFolder audienceRestrictingSharedFolder,
java.util.Date expiry)
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) |
AccessLevel |
getAccessLevel()
The access level on the link for this file.
|
java.util.List<LinkAudience> |
getAudienceOptions()
The audience options that are available for the content.
|
AudienceRestrictingSharedFolder |
getAudienceRestrictingSharedFolder()
The shared folder that prevents the link audience for this link from
being more restrictive.
|
LinkAudience |
getCurrentAudience()
The current audience of the link.
|
java.util.Date |
getExpiry()
Whether the link has an expiry set on it.
|
java.util.List<LinkPermission> |
getLinkPermissions()
A list of permissions for actions you can perform on the link.
|
boolean |
getPasswordProtected()
Whether the link is protected by a password.
|
int |
hashCode() |
static SharedContentLinkMetadataBase.Builder |
newBuilder(java.util.List<LinkAudience> audienceOptions,
LinkAudience currentAudience,
java.util.List<LinkPermission> linkPermissions,
boolean passwordProtected)
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 java.util.List<LinkAudience> audienceOptions
protected final AudienceRestrictingSharedFolder audienceRestrictingSharedFolder
protected final LinkAudience currentAudience
protected final java.util.Date expiry
protected final java.util.List<LinkPermission> linkPermissions
protected final boolean passwordProtected
public SharedContentLinkMetadataBase(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, AccessLevel accessLevel, AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, java.util.Date expiry)
newBuilder
to create instances of this class without
specifying values for all optional fields.audienceOptions
- The audience options that are available for the
content. Some audience options may be unavailable. For example,
team_only may be unavailable if the content is not owned by a user on
a team. The 'default' audience option is always available if the user
can modify link settings. Must not contain a null
item and
not be null
.currentAudience
- The current audience of the link. Must not be
null
.linkPermissions
- A list of permissions for actions you can perform
on the link. Must not contain a null
item and not be null
.passwordProtected
- Whether the link is protected by a password.accessLevel
- The access level on the link for this file.audienceRestrictingSharedFolder
- The shared folder that prevents
the link audience for this link from being more restrictive.expiry
- Whether the link has an expiry set on it. A link with an
expiry will have its audience changed to members when the expiry is
reached.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedContentLinkMetadataBase(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected)
The default values for unset fields will be used.
audienceOptions
- The audience options that are available for the
content. Some audience options may be unavailable. For example,
team_only may be unavailable if the content is not owned by a user on
a team. The 'default' audience option is always available if the user
can modify link settings. Must not contain a null
item and
not be null
.currentAudience
- The current audience of the link. Must not be
null
.linkPermissions
- A list of permissions for actions you can perform
on the link. Must not contain a null
item and not be null
.passwordProtected
- Whether the link is protected by a password.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.util.List<LinkAudience> getAudienceOptions()
null
.public LinkAudience getCurrentAudience()
null
.public java.util.List<LinkPermission> getLinkPermissions()
null
.public boolean getPasswordProtected()
public AccessLevel getAccessLevel()
null
if not present.public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder()
null
if not present.public java.util.Date getExpiry()
null
if not present.public static SharedContentLinkMetadataBase.Builder newBuilder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected)
audienceOptions
- The audience options that are available for the
content. Some audience options may be unavailable. For example,
team_only may be unavailable if the content is not owned by a user on
a team. The 'default' audience option is always available if the user
can modify link settings. Must not contain a null
item and
not be null
.currentAudience
- The current audience of the link. Must not be
null
.linkPermissions
- A list of permissions for actions you can perform
on the link. Must not contain a null
item and not be null
.passwordProtected
- Whether the link is protected by a password.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.