Package com.dropbox.core.v2.files
Class MinimalFileLinkMetadata
java.lang.Object
com.dropbox.core.v2.files.MinimalFileLinkMetadata
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMinimalFileLinkMetadata(String url, String rev) NoneMinimalFileLinkMetadata(String url, String rev, String id, String path) UsenewBuilder(java.lang.String,java.lang.String)to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Unique identifier for the linked file.getPath()Full path in the user's Dropbox.getRev()A unique identifier for the current revision of a file.getUrl()URL of the shared link.inthashCode()newBuilder(String url, String rev) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
url
-
id
-
path
-
rev
-
-
Constructor Details
-
MinimalFileLinkMetadata
public MinimalFileLinkMetadata(@Nonnull String url, @Nonnull String rev, @Nullable String id, @Nullable String path) UsenewBuilder(java.lang.String,java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
url- URL of the shared link. Must not benull.rev- A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts. Must have length of at least 9, match pattern "[0-9a-f]+", and not benull.id- Unique identifier for the linked file. Must have length of at least 1.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.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
MinimalFileLinkMetadata
NoneThe default values for unset fields will be used.
- Parameters:
url- URL of the shared link. Must not benull.rev- A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts. Must have length of at least 9, match pattern "[0-9a-f]+", and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getUrl
URL of the shared link.- Returns:
- value for this field, never
null.
-
getRev
A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.- Returns:
- value for this field, never
null.
-
getId
Unique identifier for the linked file.- Returns:
- value for this field, or
nullif not present.
-
getPath
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:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
url- URL of the shared link. Must not benull.rev- A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts. Must have length of at least 9, match pattern "[0-9a-f]+", and not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-