Package com.dropbox.core.v2.files
Class MinimalFileLinkMetadata.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.MinimalFileLinkMetadata.Builder
-
- Enclosing class:
- MinimalFileLinkMetadata
public static class MinimalFileLinkMetadata.Builder extends java.lang.Object
Builder forMinimalFileLinkMetadata
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String url, java.lang.String rev)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MinimalFileLinkMetadata
build()
Builds an instance ofMinimalFileLinkMetadata
configured with this builder's valuesMinimalFileLinkMetadata.Builder
withId(java.lang.String id)
Set value for optional field.MinimalFileLinkMetadata.Builder
withPath(java.lang.String path)
Set value for optional field.
-
-
-
Method Detail
-
withId
public MinimalFileLinkMetadata.Builder withId(java.lang.String id)
Set value for optional field.- Parameters:
id
- Unique identifier for the linked file. Must have length of at least 1.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withPath
public MinimalFileLinkMetadata.Builder withPath(java.lang.String path)
Set value for optional field.- Parameters:
path
- Full path in the user's Dropbox. This always starts with a slash. This field will only be present only if the linked file is in the authenticated user's Dropbox.- Returns:
- this builder
-
build
public MinimalFileLinkMetadata build()
Builds an instance ofMinimalFileLinkMetadata
configured with this builder's values- Returns:
- new instance of
MinimalFileLinkMetadata
-
-