Package com.dropbox.core.v2.sharing
Class SharedContentLinkMetadata.Builder
java.lang.Object
com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase.Builder
com.dropbox.core.v2.sharing.SharedContentLinkMetadata.Builder
- Enclosing class:
SharedContentLinkMetadata
Builder for
SharedContentLinkMetadata.-
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase.Builder
accessLevel, audienceOptions, audienceRestrictingSharedFolder, currentAudience, expiry, linkPermissions, passwordProtected -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(List<LinkAudience> audienceOptions, LinkAudience currentAudience, List<LinkPermission> linkPermissions, boolean passwordProtected, String url) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofSharedContentLinkMetadataconfigured with this builder's valueswithAccessLevel(AccessLevel accessLevel) Set value for optional field.withAudienceExceptions(AudienceExceptions audienceExceptions) Set value for optional field.withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder) Set value for optional field.withExpiry(Date expiry) Set value for optional field.
-
Field Details
-
url
-
audienceExceptions
-
-
Constructor Details
-
Builder
protected Builder(List<LinkAudience> audienceOptions, LinkAudience currentAudience, List<LinkPermission> linkPermissions, boolean passwordProtected, String url)
-
-
Method Details
-
withAudienceExceptions
public SharedContentLinkMetadata.Builder withAudienceExceptions(AudienceExceptions audienceExceptions) Set value for optional field.- Parameters:
audienceExceptions- The content inside this folder with link audience different than this folder's. This is only returned when an endpoint that returns metadata for a single shared folder is called, e.g. /get_folder_metadata.- Returns:
- this builder
-
withAccessLevel
Set value for optional field.- Overrides:
withAccessLevelin classSharedContentLinkMetadataBase.Builder- Parameters:
accessLevel- The access level on the link for this file.- Returns:
- this builder
-
withExpiry
Set value for optional field.- Overrides:
withExpiryin classSharedContentLinkMetadataBase.Builder- Parameters:
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.- Returns:
- this builder
-
build
Builds an instance ofSharedContentLinkMetadataconfigured with this builder's values- Overrides:
buildin classSharedContentLinkMetadataBase.Builder- Returns:
- new instance of
SharedContentLinkMetadata
-