public static class ExpectedSharedContentLinkMetadata.Builder extends SharedContentLinkMetadataBase.Builder
ExpectedSharedContentLinkMetadata
.accessLevel, audienceOptions, audienceRestrictingSharedFolder, currentAudience, expiry, linkPermissions, passwordProtected
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.util.List<LinkAudience> audienceOptions,
LinkAudience currentAudience,
java.util.List<LinkPermission> linkPermissions,
boolean passwordProtected) |
Modifier and Type | Method and Description |
---|---|
ExpectedSharedContentLinkMetadata |
build()
Builds an instance of
ExpectedSharedContentLinkMetadata
configured with this builder's values |
ExpectedSharedContentLinkMetadata.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.
|
protected Builder(java.util.List<LinkAudience> audienceOptions, LinkAudience currentAudience, java.util.List<LinkPermission> linkPermissions, boolean passwordProtected)
public ExpectedSharedContentLinkMetadata.Builder withAccessLevel(AccessLevel accessLevel)
withAccessLevel
in class SharedContentLinkMetadataBase.Builder
accessLevel
- The access level on the link for this file.public ExpectedSharedContentLinkMetadata.Builder withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder)
withAudienceRestrictingSharedFolder
in class SharedContentLinkMetadataBase.Builder
audienceRestrictingSharedFolder
- The shared folder that
prevents the link audience for this link from being more
restrictive.public ExpectedSharedContentLinkMetadata.Builder withExpiry(java.util.Date expiry)
withExpiry
in class SharedContentLinkMetadataBase.Builder
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.public ExpectedSharedContentLinkMetadata build()
ExpectedSharedContentLinkMetadata
configured with this builder's valuesbuild
in class SharedContentLinkMetadataBase.Builder
ExpectedSharedContentLinkMetadata