Package com.dropbox.core.v2.files
Class MinimalFileLinkMetadata
- java.lang.Object
- 
- com.dropbox.core.v2.files.MinimalFileLinkMetadata
 
- 
 public class MinimalFileLinkMetadata extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMinimalFileLinkMetadata.BuilderBuilder forMinimalFileLinkMetadata.
 - 
Constructor SummaryConstructors Constructor Description MinimalFileLinkMetadata(java.lang.String url, java.lang.String rev)NoneMinimalFileLinkMetadata(java.lang.String url, java.lang.String rev, java.lang.String id, java.lang.String path)UsenewBuilder(java.lang.String,java.lang.String)to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetId()Unique identifier for the linked file.java.lang.StringgetPath()Full path in the user's Dropbox.java.lang.StringgetRev()A unique identifier for the current revision of a file.java.lang.StringgetUrl()URL of the shared link.inthashCode()static MinimalFileLinkMetadata.BuildernewBuilder(java.lang.String url, java.lang.String rev)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
MinimalFileLinkMetadatapublic MinimalFileLinkMetadata(java.lang.String url, java.lang.String rev, java.lang.String id, java.lang.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 be- null.
- 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 be- null.
- 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:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
MinimalFileLinkMetadatapublic MinimalFileLinkMetadata(java.lang.String url, java.lang.String rev)NoneThe default values for unset fields will be used. - Parameters:
- url- URL of the shared link. Must not be- null.
- 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 be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getUrlpublic java.lang.String getUrl() URL of the shared link.- Returns:
- value for this field, never null.
 
 - 
getRevpublic java.lang.String 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.
 
 - 
getIdpublic java.lang.String getId() Unique identifier for the linked file.- Returns:
- value for this field, or nullif not present.
 
 - 
getPathpublic java.lang.String 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.
 
 - 
newBuilderpublic static MinimalFileLinkMetadata.Builder newBuilder(java.lang.String url, java.lang.String rev) Returns a new builder for creating an instance of this class.- Parameters:
- url- URL of the shared link. Must not be- null.
- 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 be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String 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
 
 
- 
 
-