Package com.dropbox.core.v2.sharing
Class ExpectedSharedContentLinkMetadata.Builder
- java.lang.Object
-
- com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase.Builder
-
- com.dropbox.core.v2.sharing.ExpectedSharedContentLinkMetadata.Builder
-
- Enclosing class:
- ExpectedSharedContentLinkMetadata
public static class ExpectedSharedContentLinkMetadata.Builder extends SharedContentLinkMetadataBase.Builder
Builder forExpectedSharedContentLinkMetadata
.
-
-
Field Summary
-
Fields inherited from class com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase.Builder
accessLevel, audienceOptions, audienceRestrictingSharedFolder, currentAudience, expiry, linkPermissions, passwordProtected
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpectedSharedContentLinkMetadata
build()
Builds an instance ofExpectedSharedContentLinkMetadata
configured with this builder's valuesExpectedSharedContentLinkMetadata.Builder
withAccessLevel(AccessLevel accessLevel)
Set value for optional field.ExpectedSharedContentLinkMetadata.Builder
withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder)
Set value for optional field.ExpectedSharedContentLinkMetadata.Builder
withExpiry(java.util.Date expiry)
Set value for optional field.
-
-
-
Constructor Detail
-
Builder
protected Builder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected)
-
-
Method Detail
-
withAccessLevel
public ExpectedSharedContentLinkMetadata.Builder withAccessLevel(AccessLevel accessLevel)
Set value for optional field.- Overrides:
withAccessLevel
in classSharedContentLinkMetadataBase.Builder
- Parameters:
accessLevel
- The access level on the link for this file.- Returns:
- this builder
-
withAudienceRestrictingSharedFolder
public ExpectedSharedContentLinkMetadata.Builder withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder)
Set value for optional field.- Overrides:
withAudienceRestrictingSharedFolder
in classSharedContentLinkMetadataBase.Builder
- Parameters:
audienceRestrictingSharedFolder
- The shared folder that prevents the link audience for this link from being more restrictive.- Returns:
- this builder
-
withExpiry
public ExpectedSharedContentLinkMetadata.Builder withExpiry(java.util.Date expiry)
Set value for optional field.- Overrides:
withExpiry
in 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
public ExpectedSharedContentLinkMetadata build()
Builds an instance ofExpectedSharedContentLinkMetadata
configured with this builder's values- Overrides:
build
in classSharedContentLinkMetadataBase.Builder
- Returns:
- new instance of
ExpectedSharedContentLinkMetadata
-
-