Package com.dropbox.core.v2.files
Class PaperCreateResult
- java.lang.Object
-
- com.dropbox.core.v2.files.PaperCreateResult
-
public class PaperCreateResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
fileId
protected long
paperRevision
protected java.lang.String
resultPath
protected java.lang.String
url
-
Constructor Summary
Constructors Constructor Description PaperCreateResult(java.lang.String url, java.lang.String resultPath, java.lang.String fileId, long paperRevision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getFileId()
The id to use in Dropbox APIs when referencing the Paper Doc.long
getPaperRevision()
The current doc revision.java.lang.String
getResultPath()
The fully qualified path the Paper Doc was actually created at.java.lang.String
getUrl()
URL to open the Paper Doc.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
PaperCreateResult
public PaperCreateResult(@Nonnull java.lang.String url, @Nonnull java.lang.String resultPath, @Nonnull java.lang.String fileId, long paperRevision)
- Parameters:
url
- URL to open the Paper Doc. Must not benull
.resultPath
- The fully qualified path the Paper Doc was actually created at. Must not benull
.fileId
- The id to use in Dropbox APIs when referencing the Paper Doc. Must have length of at least 4, match pattern "id:.+
", and not benull
.paperRevision
- The current doc revision.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getUrl
@Nonnull public java.lang.String getUrl()
URL to open the Paper Doc.- Returns:
- value for this field, never
null
.
-
getResultPath
@Nonnull public java.lang.String getResultPath()
The fully qualified path the Paper Doc was actually created at.- Returns:
- value for this field, never
null
.
-
getFileId
@Nonnull public java.lang.String getFileId()
The id to use in Dropbox APIs when referencing the Paper Doc.- Returns:
- value for this field, never
null
.
-
getPaperRevision
public long getPaperRevision()
The current doc revision.- Returns:
- value for this field.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public 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
-
-