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