public final class SendAs
extends com.google.api.client.json.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 Gmail API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
SendAs() |
Modifier and Type | Method and Description |
---|---|
SendAs |
clone() |
java.lang.String |
getDisplayName()
A name that appears in the "From:" header for mail sent using this alias.
|
java.lang.Boolean |
getIsDefault()
Whether this address is selected as the default "From:" address in situations such as composing
a new message or sending a vacation auto-reply.
|
java.lang.Boolean |
getIsPrimary()
Whether this address is the primary address used to login to the account.
|
java.lang.String |
getReplyToAddress()
An optional email address that is included in a "Reply-To:" header for mail sent using this
alias.
|
java.lang.String |
getSendAsEmail()
The email address that appears in the "From:" header for mail sent using this alias.
|
java.lang.String |
getSignature()
An optional HTML signature that is included in messages composed with this alias in the Gmail
web UI.
|
SmtpMsa |
getSmtpMsa()
An optional SMTP service that will be used as an outbound relay for mail sent using this alias.
|
java.lang.Boolean |
getTreatAsAlias()
Whether Gmail should treat this address as an alias for the user's primary email address.
|
java.lang.String |
getVerificationStatus()
Indicates whether this address has been verified for use as a send-as alias.
|
SendAs |
set(java.lang.String fieldName,
java.lang.Object value) |
SendAs |
setDisplayName(java.lang.String displayName)
A name that appears in the "From:" header for mail sent using this alias.
|
SendAs |
setIsDefault(java.lang.Boolean isDefault)
Whether this address is selected as the default "From:" address in situations such as composing
a new message or sending a vacation auto-reply.
|
SendAs |
setIsPrimary(java.lang.Boolean isPrimary)
Whether this address is the primary address used to login to the account.
|
SendAs |
setReplyToAddress(java.lang.String replyToAddress)
An optional email address that is included in a "Reply-To:" header for mail sent using this
alias.
|
SendAs |
setSendAsEmail(java.lang.String sendAsEmail)
The email address that appears in the "From:" header for mail sent using this alias.
|
SendAs |
setSignature(java.lang.String signature)
An optional HTML signature that is included in messages composed with this alias in the Gmail
web UI.
|
SendAs |
setSmtpMsa(SmtpMsa smtpMsa)
An optional SMTP service that will be used as an outbound relay for mail sent using this alias.
|
SendAs |
setTreatAsAlias(java.lang.Boolean treatAsAlias)
Whether Gmail should treat this address as an alias for the user's primary email address.
|
SendAs |
setVerificationStatus(java.lang.String verificationStatus)
Indicates whether this address has been verified for use as a send-as alias.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getDisplayName()
null
for nonepublic SendAs setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic java.lang.Boolean getIsDefault()
null
for nonepublic SendAs setIsDefault(java.lang.Boolean isDefault)
isDefault
- isDefault or null
for nonepublic java.lang.Boolean getIsPrimary()
null
for nonepublic SendAs setIsPrimary(java.lang.Boolean isPrimary)
isPrimary
- isPrimary or null
for nonepublic java.lang.String getReplyToAddress()
null
for nonepublic SendAs setReplyToAddress(java.lang.String replyToAddress)
replyToAddress
- replyToAddress or null
for nonepublic java.lang.String getSendAsEmail()
null
for nonepublic SendAs setSendAsEmail(java.lang.String sendAsEmail)
sendAsEmail
- sendAsEmail or null
for nonepublic java.lang.String getSignature()
null
for nonepublic SendAs setSignature(java.lang.String signature)
signature
- signature or null
for nonepublic SmtpMsa getSmtpMsa()
null
for nonepublic SendAs setSmtpMsa(SmtpMsa smtpMsa)
smtpMsa
- smtpMsa or null
for nonepublic java.lang.Boolean getTreatAsAlias()
null
for nonepublic SendAs setTreatAsAlias(java.lang.Boolean treatAsAlias)
treatAsAlias
- treatAsAlias or null
for nonepublic java.lang.String getVerificationStatus()
null
for nonepublic SendAs setVerificationStatus(java.lang.String verificationStatus)
verificationStatus
- verificationStatus or null
for nonepublic SendAs set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SendAs clone()
clone
in class com.google.api.client.json.GenericJson