public final class AssetLogInfo
extends java.lang.Object
This class is an open tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isAbc()
methods will return true
. You can use tag()
to determine the
tag associated with this instance.
Open unions may be extended in the future with additional tags. If a new
tag is introduced that this SDK does not recognized, the OTHER
value
will be used.
Modifier and Type | Class and Description |
---|---|
static class |
AssetLogInfo.Tag
Discriminating tag type for
AssetLogInfo . |
Modifier and Type | Field and Description |
---|---|
static AssetLogInfo |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static AssetLogInfo |
file(FileLogInfo value)
Returns an instance of
AssetLogInfo that has its tag set to
AssetLogInfo.Tag.FILE . |
static AssetLogInfo |
folder(FolderLogInfo value)
Returns an instance of
AssetLogInfo that has its tag set to
AssetLogInfo.Tag.FOLDER . |
FileLogInfo |
getFileValue()
File's details.
|
FolderLogInfo |
getFolderValue()
Folder's details.
|
PaperDocumentLogInfo |
getPaperDocumentValue()
Paper document's details.
|
PaperFolderLogInfo |
getPaperFolderValue()
Paper folder's details.
|
ShowcaseDocumentLogInfo |
getShowcaseDocumentValue()
Showcase document's details.
|
int |
hashCode() |
boolean |
isFile()
|
boolean |
isFolder()
|
boolean |
isOther()
|
boolean |
isPaperDocument()
|
boolean |
isPaperFolder()
|
boolean |
isShowcaseDocument()
|
static AssetLogInfo |
paperDocument(PaperDocumentLogInfo value)
Returns an instance of
AssetLogInfo that has its tag set to
AssetLogInfo.Tag.PAPER_DOCUMENT . |
static AssetLogInfo |
paperFolder(PaperFolderLogInfo value)
Returns an instance of
AssetLogInfo that has its tag set to
AssetLogInfo.Tag.PAPER_FOLDER . |
static AssetLogInfo |
showcaseDocument(ShowcaseDocumentLogInfo value)
Returns an instance of
AssetLogInfo that has its tag set to
AssetLogInfo.Tag.SHOWCASE_DOCUMENT . |
AssetLogInfo.Tag |
tag()
Returns the tag for this instance.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final AssetLogInfo OTHER
Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
public AssetLogInfo.Tag tag()
This class is a tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isXyz()
methods will return true
. Callers are recommended to use the tag
value in a switch
statement to properly handle the different
values for this AssetLogInfo
.
If a tag returned by the server is unrecognized by this SDK, the
AssetLogInfo.Tag.OTHER
value will be used.
public boolean isFile()
true
if this instance is tagged as AssetLogInfo.Tag.FILE
,
false
otherwise.public static AssetLogInfo file(FileLogInfo value)
value
- value to assign to this instance.AssetLogInfo
with its tag set to AssetLogInfo.Tag.FILE
.java.lang.IllegalArgumentException
- if value
is null
.public FileLogInfo getFileValue()
This instance must be tagged as AssetLogInfo.Tag.FILE
.
FileLogInfo
value associated with this instance if
isFile()
is true
.java.lang.IllegalStateException
- If isFile()
is false
.public boolean isFolder()
true
if this instance is tagged as AssetLogInfo.Tag.FOLDER
,
false
otherwise.public static AssetLogInfo folder(FolderLogInfo value)
AssetLogInfo
that has its tag set to
AssetLogInfo.Tag.FOLDER
.
Folder's details.
value
- value to assign to this instance.AssetLogInfo
with its tag set to AssetLogInfo.Tag.FOLDER
.java.lang.IllegalArgumentException
- if value
is null
.public FolderLogInfo getFolderValue()
This instance must be tagged as AssetLogInfo.Tag.FOLDER
.
FolderLogInfo
value associated with this instance if
isFolder()
is true
.java.lang.IllegalStateException
- If isFolder()
is false
.public boolean isPaperDocument()
true
if this instance is tagged as AssetLogInfo.Tag.PAPER_DOCUMENT
, false
otherwise.public static AssetLogInfo paperDocument(PaperDocumentLogInfo value)
AssetLogInfo
that has its tag set to
AssetLogInfo.Tag.PAPER_DOCUMENT
.
Paper document's details.
value
- value to assign to this instance.AssetLogInfo
with its tag set to AssetLogInfo.Tag.PAPER_DOCUMENT
.java.lang.IllegalArgumentException
- if value
is null
.public PaperDocumentLogInfo getPaperDocumentValue()
This instance must be tagged as AssetLogInfo.Tag.PAPER_DOCUMENT
.
PaperDocumentLogInfo
value associated with this
instance if isPaperDocument()
is true
.java.lang.IllegalStateException
- If isPaperDocument()
is false
.public boolean isPaperFolder()
true
if this instance is tagged as AssetLogInfo.Tag.PAPER_FOLDER
, false
otherwise.public static AssetLogInfo paperFolder(PaperFolderLogInfo value)
AssetLogInfo
that has its tag set to
AssetLogInfo.Tag.PAPER_FOLDER
.
Paper folder's details.
value
- value to assign to this instance.AssetLogInfo
with its tag set to AssetLogInfo.Tag.PAPER_FOLDER
.java.lang.IllegalArgumentException
- if value
is null
.public PaperFolderLogInfo getPaperFolderValue()
This instance must be tagged as AssetLogInfo.Tag.PAPER_FOLDER
.
PaperFolderLogInfo
value associated with this
instance if isPaperFolder()
is true
.java.lang.IllegalStateException
- If isPaperFolder()
is false
.public boolean isShowcaseDocument()
true
if this instance is tagged as AssetLogInfo.Tag.SHOWCASE_DOCUMENT
, false
otherwise.public static AssetLogInfo showcaseDocument(ShowcaseDocumentLogInfo value)
AssetLogInfo
that has its tag set to
AssetLogInfo.Tag.SHOWCASE_DOCUMENT
.
Showcase document's details.
value
- value to assign to this instance.AssetLogInfo
with its tag set to AssetLogInfo.Tag.SHOWCASE_DOCUMENT
.java.lang.IllegalArgumentException
- if value
is null
.public ShowcaseDocumentLogInfo getShowcaseDocumentValue()
This instance must be tagged as AssetLogInfo.Tag.SHOWCASE_DOCUMENT
.
ShowcaseDocumentLogInfo
value associated with this
instance if isShowcaseDocument()
is true
.java.lang.IllegalStateException
- If isShowcaseDocument()
is false
.public boolean isOther()
true
if this instance is tagged as AssetLogInfo.Tag.OTHER
,
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.