public class Mirror.Timeline.Attachments.Insert extends MirrorRequest<Attachment>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Mirror.Timeline.Attachments.Insert(String itemId)
Adds a new attachment to a timeline item.
|
protected |
Mirror.Timeline.Attachments.Insert(String itemId,
AbstractInputStreamContent mediaContent)
Adds a new attachment to a timeline item.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getItemId()
The ID of the timeline item the attachment belongs to.
|
Mirror.Timeline.Attachments.Insert |
set(String parameterName,
Object value) |
Mirror.Timeline.Attachments.Insert |
setAlt(String alt)
Data format for the response.
|
Mirror.Timeline.Attachments.Insert |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Mirror.Timeline.Attachments.Insert |
setItemId(String itemId)
The ID of the timeline item the attachment belongs to.
|
Mirror.Timeline.Attachments.Insert |
setKey(String key)
API key.
|
Mirror.Timeline.Attachments.Insert |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Mirror.Timeline.Attachments.Insert |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Mirror.Timeline.Attachments.Insert |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Mirror.Timeline.Attachments.Insert |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Mirror.Timeline.Attachments.Insert(String itemId)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Mirror.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
itemId - The ID of the timeline item the attachment belongs to.protected Mirror.Timeline.Attachments.Insert(String itemId, AbstractInputStreamContent mediaContent)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Mirror.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
This constructor should be used for uploading media content.
itemId - The ID of the timeline item the attachment belongs to.mediaContent - The media HTTP content or null if none.public Mirror.Timeline.Attachments.Insert setAlt(String alt)
MirrorRequestsetAlt in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Insert setFields(String fields)
MirrorRequestsetFields in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Insert setKey(String key)
MirrorRequestsetKey in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Insert setOauthToken(String oauthToken)
MirrorRequestsetOauthToken in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Insert setPrettyPrint(Boolean prettyPrint)
MirrorRequestsetPrettyPrint in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Insert setQuotaUser(String quotaUser)
MirrorRequestsetQuotaUser in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Insert setUserIp(String userIp)
MirrorRequestsetUserIp in class MirrorRequest<Attachment>public String getItemId()
public Mirror.Timeline.Attachments.Insert setItemId(String itemId)
public Mirror.Timeline.Attachments.Insert set(String parameterName, Object value)
set in class MirrorRequest<Attachment>