Show / Hide Table of Contents

Class VacationSettings

Vacation auto-reply settings for an account. These settings correspond to the "Vacation responder" feature in the web interface.

Inheritance
object
VacationSettings
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Gmail.v1.Data
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class VacationSettings : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

EnableAutoReply

Flag that controls whether Gmail automatically replies to messages.

Declaration
[JsonProperty("enableAutoReply")]
public virtual bool? EnableAutoReply { get; set; }
Property Value
Type Description
bool?

EndTime

An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both startTime and endTime are specified, startTime must precede endTime.

Declaration
[JsonProperty("endTime")]
public virtual long? EndTime { get; set; }
Property Value
Type Description
long?

ResponseBodyHtml

Response body in HTML format. Gmail will sanitize the HTML before storing it. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.

Declaration
[JsonProperty("responseBodyHtml")]
public virtual string ResponseBodyHtml { get; set; }
Property Value
Type Description
string

ResponseBodyPlainText

Response body in plain text format. If both response_body_plain_text and response_body_html are specified, response_body_html will be used.

Declaration
[JsonProperty("responseBodyPlainText")]
public virtual string ResponseBodyPlainText { get; set; }
Property Value
Type Description
string

ResponseSubject

Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty.

Declaration
[JsonProperty("responseSubject")]
public virtual string ResponseSubject { get; set; }
Property Value
Type Description
string

RestrictToContacts

Flag that determines whether responses are sent to recipients who are not in the user's list of contacts.

Declaration
[JsonProperty("restrictToContacts")]
public virtual bool? RestrictToContacts { get; set; }
Property Value
Type Description
bool?

RestrictToDomain

Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Workspace users.

Declaration
[JsonProperty("restrictToDomain")]
public virtual bool? RestrictToDomain { get; set; }
Property Value
Type Description
bool?

StartTime

An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both startTime and endTime are specified, startTime must precede endTime.

Declaration
[JsonProperty("startTime")]
public virtual long? StartTime { get; set; }
Property Value
Type Description
long?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX