public static class SharedContentLinkMetadataBase.Builder
extends java.lang.Object
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 |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.util.List<LinkAudience> audienceOptions,
LinkAudience currentAudience,
java.util.List<LinkPermission> linkPermissions,
boolean passwordProtected) |
Modifier and Type | Method and Description |
---|---|
SharedContentLinkMetadataBase |
build()
Builds an instance of
SharedContentLinkMetadataBase
configured with this builder's values |
SharedContentLinkMetadataBase.Builder |
withAccessLevel(AccessLevel accessLevel)
Set value for optional field.
|
SharedContentLinkMetadataBase.Builder |
withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder)
Set value for optional field.
|
SharedContentLinkMetadataBase.Builder |
withExpiry(java.util.Date expiry)
Set value for optional field.
|
protected final java.util.List<LinkAudience> audienceOptions
protected final LinkAudience currentAudience
protected final java.util.List<LinkPermission> linkPermissions
protected final boolean passwordProtected
protected AccessLevel accessLevel
protected AudienceRestrictingSharedFolder audienceRestrictingSharedFolder
protected java.util.Date expiry
protected Builder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected)
public SharedContentLinkMetadataBase.Builder withAccessLevel(AccessLevel accessLevel)
accessLevel
- The access level on the link for this file.public SharedContentLinkMetadataBase.Builder withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder)
audienceRestrictingSharedFolder
- The shared folder that
prevents the link audience for this link from being more
restrictive.public SharedContentLinkMetadataBase.Builder withExpiry(java.util.Date expiry)
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.public SharedContentLinkMetadataBase build()
SharedContentLinkMetadataBase
configured with this builder's valuesSharedContentLinkMetadataBase