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
 
 public static class SharedContentLinkMetadata.Builder extends SharedContentLinkMetadataBase.Builder Builder forSharedContentLinkMetadata.
- 
- 
Field SummaryFields Modifier and Type Field Description protected AudienceExceptionsaudienceExceptionsprotected java.lang.Stringurl- 
Fields inherited from class com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase.BuilderaccessLevel, audienceOptions, audienceRestrictingSharedFolder, currentAudience, expiry, linkPermissions, passwordProtected
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, java.lang.String url)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedContentLinkMetadatabuild()Builds an instance ofSharedContentLinkMetadataconfigured with this builder's valuesSharedContentLinkMetadata.BuilderwithAccessLevel(AccessLevel accessLevel)Set value for optional field.SharedContentLinkMetadata.BuilderwithAudienceExceptions(AudienceExceptions audienceExceptions)Set value for optional field.SharedContentLinkMetadata.BuilderwithAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder)Set value for optional field.SharedContentLinkMetadata.BuilderwithExpiry(java.util.Date expiry)Set value for optional field.
 
- 
- 
- 
Field Detail- 
urlprotected final java.lang.String url 
 - 
audienceExceptionsprotected AudienceExceptions audienceExceptions 
 
- 
 - 
Constructor Detail- 
Builderprotected Builder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected, java.lang.String url) 
 
- 
 - 
Method Detail- 
withAudienceExceptionspublic 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
 
 - 
withAccessLevelpublic SharedContentLinkMetadata.Builder withAccessLevel(AccessLevel accessLevel) Set value for optional field.- Overrides:
- withAccessLevelin class- SharedContentLinkMetadataBase.Builder
- Parameters:
- accessLevel- The access level on the link for this file.
- Returns:
- this builder
 
 - 
withAudienceRestrictingSharedFolderpublic SharedContentLinkMetadata.Builder withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder) Set value for optional field.- Overrides:
- withAudienceRestrictingSharedFolderin class- SharedContentLinkMetadataBase.Builder
- Parameters:
- audienceRestrictingSharedFolder- The shared folder that prevents the link audience for this link from being more restrictive.
- Returns:
- this builder
 
 - 
withExpirypublic SharedContentLinkMetadata.Builder withExpiry(java.util.Date expiry) Set value for optional field.- Overrides:
- withExpiryin class- SharedContentLinkMetadataBase.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
 
 - 
buildpublic SharedContentLinkMetadata build() Builds an instance ofSharedContentLinkMetadataconfigured with this builder's values- Overrides:
- buildin class- SharedContentLinkMetadataBase.Builder
- Returns:
- new instance of SharedContentLinkMetadata
 
 
- 
 
-