All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.gmail.model.VacationSettings.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240520-2.0.0
Show newest version






VacationSettings (Gmail API v1-rev20230925-2.0.0)












com.google.api.services.gmail.model

Class VacationSettings

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class VacationSettings
    extends com.google.api.client.json.GenericJson
    Vacation auto-reply settings for an account. These settings correspond to the "Vacation responder" feature in the web interface.

    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

    Author:
    Google, Inc.
    • Constructor Detail

      • VacationSettings

        public VacationSettings()
    • Method Detail

      • getEnableAutoReply

        public Boolean getEnableAutoReply()
        Flag that controls whether Gmail automatically replies to messages.
        Returns:
        value or null for none
      • setEnableAutoReply

        public VacationSettings setEnableAutoReply(Boolean enableAutoReply)
        Flag that controls whether Gmail automatically replies to messages.
        Parameters:
        enableAutoReply - enableAutoReply or null for none
      • getEndTime

        public Long getEndTime()
        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`.
        Returns:
        value or null for none
      • setEndTime

        public VacationSettings setEndTime(Long 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`.
        Parameters:
        endTime - endTime or null for none
      • getResponseBodyHtml

        public String getResponseBodyHtml()
        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.
        Returns:
        value or null for none
      • setResponseBodyHtml

        public VacationSettings setResponseBodyHtml(String 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.
        Parameters:
        responseBodyHtml - responseBodyHtml or null for none
      • getResponseBodyPlainText

        public String getResponseBodyPlainText()
        Response body in plain text format. If both `response_body_plain_text` and `response_body_html` are specified, `response_body_html` will be used.
        Returns:
        value or null for none
      • setResponseBodyPlainText

        public VacationSettings setResponseBodyPlainText(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.
        Parameters:
        responseBodyPlainText - responseBodyPlainText or null for none
      • getResponseSubject

        public String getResponseSubject()
        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.
        Returns:
        value or null for none
      • setResponseSubject

        public VacationSettings setResponseSubject(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.
        Parameters:
        responseSubject - responseSubject or null for none
      • getRestrictToContacts

        public Boolean getRestrictToContacts()
        Flag that determines whether responses are sent to recipients who are not in the user's list of contacts.
        Returns:
        value or null for none
      • setRestrictToContacts

        public VacationSettings setRestrictToContacts(Boolean restrictToContacts)
        Flag that determines whether responses are sent to recipients who are not in the user's list of contacts.
        Parameters:
        restrictToContacts - restrictToContacts or null for none
      • getRestrictToDomain

        public Boolean getRestrictToDomain()
        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.
        Returns:
        value or null for none
      • setRestrictToDomain

        public VacationSettings setRestrictToDomain(Boolean 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.
        Parameters:
        restrictToDomain - restrictToDomain or null for none
      • getStartTime

        public Long getStartTime()
        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`.
        Returns:
        value or null for none
      • setStartTime

        public VacationSettings setStartTime(Long 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`.
        Parameters:
        startTime - startTime or null for none
      • clone

        public VacationSettings clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2023 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy