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.ObjectBuilder forSharedContentLinkMetadataBase.
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessLevelaccessLevelprotected java.util.List<LinkAudience>audienceOptionsprotected AudienceRestrictingSharedFolderaudienceRestrictingSharedFolderprotected LinkAudiencecurrentAudienceprotected java.util.Dateexpiryprotected java.util.List<LinkPermission>linkPermissionsprotected booleanpasswordProtected
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(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 SharedContentLinkMetadataBasebuild()Builds an instance ofSharedContentLinkMetadataBaseconfigured with this builder's valuesSharedContentLinkMetadataBase.BuilderwithAccessLevel(AccessLevel accessLevel)Set value for optional field.SharedContentLinkMetadataBase.BuilderwithAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder)Set value for optional field.SharedContentLinkMetadataBase.BuilderwithExpiry(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 ofSharedContentLinkMetadataBaseconfigured with this builder's values- Returns:
- new instance of
SharedContentLinkMetadataBase
-
-