/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.contentwarehouse.v1.model;

/**
 * The status indicating the user is out of office.
 *
 * <p> 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 Document AI Warehouse API. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleInternalAppsWaldoV1alphaOutOfOffice extends com.google.api.client.json.GenericJson {

  /**
   * The closest time when the user will be available after this OOO block. This might be different
   * from the end of the OOO block in Calendar, since the OOO block might end on Friday evening, and
   * then the user is outside working hours.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String comeBackTime;

  /**
   * The time when the user will either stop being committed or change commitment type (i.e.
   * InMeeting, DoNotDisturb, Busy or OutOfOffice < Xh). Note that the goal of this field is to
   * provide information to help users decide how to communicate with a user (see also
   * http://shortn/_wXYXtZScgh). Note that if this OOO block is large (>=Xh), committed_until is not
   * set.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String committedUntil;

  /**
   * The summary of the corresponding OOO block in Calendar. This is entered by the user, so we
   * return it "as is" - no i18n.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String eventSummary;

  /**
   * The closest time when the user will be available after this OOO block. This might be different
   * from the end of the OOO block in Calendar, since the OOO block might end on Friday evening, and
   * then the user is outside working hours.
   * @return value or {@code null} for none
   */
  public String getComeBackTime() {
    return comeBackTime;
  }

  /**
   * The closest time when the user will be available after this OOO block. This might be different
   * from the end of the OOO block in Calendar, since the OOO block might end on Friday evening, and
   * then the user is outside working hours.
   * @param comeBackTime comeBackTime or {@code null} for none
   */
  public GoogleInternalAppsWaldoV1alphaOutOfOffice setComeBackTime(String comeBackTime) {
    this.comeBackTime = comeBackTime;
    return this;
  }

  /**
   * The time when the user will either stop being committed or change commitment type (i.e.
   * InMeeting, DoNotDisturb, Busy or OutOfOffice < Xh). Note that the goal of this field is to
   * provide information to help users decide how to communicate with a user (see also
   * http://shortn/_wXYXtZScgh). Note that if this OOO block is large (>=Xh), committed_until is not
   * set.
   * @return value or {@code null} for none
   */
  public String getCommittedUntil() {
    return committedUntil;
  }

  /**
   * The time when the user will either stop being committed or change commitment type (i.e.
   * InMeeting, DoNotDisturb, Busy or OutOfOffice < Xh). Note that the goal of this field is to
   * provide information to help users decide how to communicate with a user (see also
   * http://shortn/_wXYXtZScgh). Note that if this OOO block is large (>=Xh), committed_until is not
   * set.
   * @param committedUntil committedUntil or {@code null} for none
   */
  public GoogleInternalAppsWaldoV1alphaOutOfOffice setCommittedUntil(String committedUntil) {
    this.committedUntil = committedUntil;
    return this;
  }

  /**
   * The summary of the corresponding OOO block in Calendar. This is entered by the user, so we
   * return it "as is" - no i18n.
   * @return value or {@code null} for none
   */
  public java.lang.String getEventSummary() {
    return eventSummary;
  }

  /**
   * The summary of the corresponding OOO block in Calendar. This is entered by the user, so we
   * return it "as is" - no i18n.
   * @param eventSummary eventSummary or {@code null} for none
   */
  public GoogleInternalAppsWaldoV1alphaOutOfOffice setEventSummary(java.lang.String eventSummary) {
    this.eventSummary = eventSummary;
    return this;
  }

  @Override
  public GoogleInternalAppsWaldoV1alphaOutOfOffice set(String fieldName, Object value) {
    return (GoogleInternalAppsWaldoV1alphaOutOfOffice) super.set(fieldName, value);
  }

  @Override
  public GoogleInternalAppsWaldoV1alphaOutOfOffice clone() {
    return (GoogleInternalAppsWaldoV1alphaOutOfOffice) super.clone();
  }

}
