Package com.dropbox.core.v2.sharing
Class SharedContentLinkMetadataBase.Builder
java.lang.Object
com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase.Builder
- Direct Known Subclasses:
ExpectedSharedContentLinkMetadata.Builder,SharedContentLinkMetadata.Builder
- Enclosing class:
SharedContentLinkMetadataBase
Builder for
SharedContentLinkMetadataBase.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessLevelprotected final List<LinkAudience> protected AudienceRestrictingSharedFolderprotected final LinkAudienceprotected Dateprotected final List<LinkPermission> protected final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(List<LinkAudience> audienceOptions, LinkAudience currentAudience, List<LinkPermission> linkPermissions, boolean passwordProtected) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofSharedContentLinkMetadataBaseconfigured with this builder's valueswithAccessLevel(AccessLevel accessLevel) Set value for optional field.withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder) Set value for optional field.withExpiry(Date expiry) Set value for optional field.
-
Field Details
-
audienceOptions
-
currentAudience
-
linkPermissions
-
passwordProtected
protected final boolean passwordProtected -
accessLevel
-
expiry
-
-
Constructor Details
-
Builder
protected Builder(List<LinkAudience> audienceOptions, LinkAudience currentAudience, List<LinkPermission> linkPermissions, boolean passwordProtected)
-
-
Method Details
-
withAccessLevel
Set value for optional field.- Parameters:
accessLevel- The access level on the link for this file.- Returns:
- this builder
-
withExpiry
Set value for optional field.- 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 ofSharedContentLinkMetadataBaseconfigured with this builder's values- Returns:
- new instance of
SharedContentLinkMetadataBase
-