public class Gmail.Users.Settings.SendAs.Update extends GmailRequest<SendAs>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Gmail.Users.Settings.SendAs.Update(String userId,
String sendAsEmail,
SendAs content)
Updates a send-as alias.
|
Modifier and Type | Method and Description |
---|---|
String |
getSendAsEmail()
The send-as alias to be updated.
|
String |
getUserId()
User's email address.
|
Gmail.Users.Settings.SendAs.Update |
set(String parameterName,
Object value) |
Gmail.Users.Settings.SendAs.Update |
setAlt(String alt)
Data format for the response.
|
Gmail.Users.Settings.SendAs.Update |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Settings.SendAs.Update |
setKey(String key)
API key.
|
Gmail.Users.Settings.SendAs.Update |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Settings.SendAs.Update |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Settings.SendAs.Update |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Settings.SendAs.Update |
setSendAsEmail(String sendAsEmail)
The send-as alias to be updated.
|
Gmail.Users.Settings.SendAs.Update |
setUserId(String userId)
User's email address.
|
Gmail.Users.Settings.SendAs.Update |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Gmail.Users.Settings.SendAs.Update(String userId, String sendAsEmail, SendAs content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Gmail.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
userId
- User's email address. The special value "me" can be used to indicate the authenticated user.
[default: me]sendAsEmail
- The send-as alias to be updated.content
- the SendAs
public Gmail.Users.Settings.SendAs.Update setAlt(String alt)
GmailRequest
setAlt
in class GmailRequest<SendAs>
public Gmail.Users.Settings.SendAs.Update setFields(String fields)
GmailRequest
setFields
in class GmailRequest<SendAs>
public Gmail.Users.Settings.SendAs.Update setKey(String key)
GmailRequest
setKey
in class GmailRequest<SendAs>
public Gmail.Users.Settings.SendAs.Update setOauthToken(String oauthToken)
GmailRequest
setOauthToken
in class GmailRequest<SendAs>
public Gmail.Users.Settings.SendAs.Update setPrettyPrint(Boolean prettyPrint)
GmailRequest
setPrettyPrint
in class GmailRequest<SendAs>
public Gmail.Users.Settings.SendAs.Update setQuotaUser(String quotaUser)
GmailRequest
setQuotaUser
in class GmailRequest<SendAs>
public Gmail.Users.Settings.SendAs.Update setUserIp(String userIp)
GmailRequest
setUserIp
in class GmailRequest<SendAs>
public String getUserId()
public Gmail.Users.Settings.SendAs.Update setUserId(String userId)
public String getSendAsEmail()
public Gmail.Users.Settings.SendAs.Update setSendAsEmail(String sendAsEmail)
public Gmail.Users.Settings.SendAs.Update set(String parameterName, Object value)
set
in class GmailRequest<SendAs>