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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SendAs() |
Modifier and Type | Method and Description |
---|---|
SendAs |
clone() |
String |
getDisplayName()
A name that appears in the "From:" header for mail sent using this alias.
|
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.
|
Boolean |
getIsPrimary()
Whether this address is the primary address used to login to the account.
|
String |
getReplyToAddress()
An optional email address that is included in a "Reply-To:" header for mail sent using this
alias.
|
String |
getSendAsEmail()
The email address that appears in the "From:" header for mail sent using this alias.
|
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.
|
Boolean |
getTreatAsAlias()
Whether Gmail should treat this address as an alias for the user's primary email address.
|
String |
getVerificationStatus()
Indicates whether this address has been verified for use as a send-as alias.
|
SendAs |
set(String fieldName,
Object value) |
SendAs |
setDisplayName(String displayName)
A name that appears in the "From:" header for mail sent using this alias.
|
SendAs |
setIsDefault(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(Boolean isPrimary)
Whether this address is the primary address used to login to the account.
|
SendAs |
setReplyToAddress(String replyToAddress)
An optional email address that is included in a "Reply-To:" header for mail sent using this
alias.
|
SendAs |
setSendAsEmail(String sendAsEmail)
The email address that appears in the "From:" header for mail sent using this alias.
|
SendAs |
setSignature(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(Boolean treatAsAlias)
Whether Gmail should treat this address as an alias for the user's primary email address.
|
SendAs |
setVerificationStatus(String verificationStatus)
Indicates whether this address has been verified for use as a send-as alias.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getDisplayName()
null
for nonepublic SendAs setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic Boolean getIsDefault()
null
for nonepublic SendAs setIsDefault(Boolean isDefault)
isDefault
- isDefault or null
for nonepublic Boolean getIsPrimary()
null
for nonepublic SendAs setIsPrimary(Boolean isPrimary)
isPrimary
- isPrimary or null
for nonepublic String getReplyToAddress()
null
for nonepublic SendAs setReplyToAddress(String replyToAddress)
replyToAddress
- replyToAddress or null
for nonepublic String getSendAsEmail()
null
for nonepublic SendAs setSendAsEmail(String sendAsEmail)
sendAsEmail
- sendAsEmail or null
for nonepublic String getSignature()
null
for nonepublic SendAs setSignature(String signature)
signature
- signature or null
for nonepublic SmtpMsa getSmtpMsa()
null
for nonepublic SendAs setSmtpMsa(SmtpMsa smtpMsa)
smtpMsa
- smtpMsa or null
for nonepublic Boolean getTreatAsAlias()
null
for nonepublic SendAs setTreatAsAlias(Boolean treatAsAlias)
treatAsAlias
- treatAsAlias or null
for nonepublic String getVerificationStatus()
null
for nonepublic SendAs setVerificationStatus(String verificationStatus)
verificationStatus
- verificationStatus or null
for nonepublic SendAs set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public SendAs clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.