public final class Attachment extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Mirror API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
clone() |
String |
getContentType()
The MIME type of the attachment.
|
String |
getContentUrl()
The URL for the content.
|
String |
getId()
The ID of the attachment.
|
Boolean |
getIsProcessingContent()
Indicates that the contentUrl is not available because the attachment content is still being
processed.
|
Attachment |
set(String fieldName,
Object value) |
Attachment |
setContentType(String contentType)
The MIME type of the attachment.
|
Attachment |
setContentUrl(String contentUrl)
The URL for the content.
|
Attachment |
setId(String id)
The ID of the attachment.
|
Attachment |
setIsProcessingContent(Boolean isProcessingContent)
Indicates that the contentUrl is not available because the attachment content is still being
processed.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getContentType()
null for nonepublic Attachment setContentType(String contentType)
contentType - contentType or null for nonepublic String getContentUrl()
null for nonepublic Attachment setContentUrl(String contentUrl)
contentUrl - contentUrl or null for nonepublic String getId()
null for nonepublic Attachment setId(String id)
id - id or null for nonepublic Boolean getIsProcessingContent()
null for nonepublic Attachment setIsProcessingContent(Boolean isProcessingContent)
isProcessingContent - isProcessingContent or null for nonepublic Attachment set(String fieldName, Object value)
set in class GenericJsonpublic Attachment clone()
clone in class GenericJson