/*
 * 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 temporarily busy and there is not a more specific status
 * derived from calendar that applies (e.g., InMeeting or DoNotDisturb).
 *
 * <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 GoogleInternalAppsWaldoV1alphaCalendarBusy extends com.google.api.client.json.GenericJson {

  /**
   * 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).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String committedUntil;

  /**
   * The summary of the corresponding event in Calendar.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String eventSummary;

  /**
   * The next time when the user will be available, i.e., when their status will be neither
   * InMeeting, CalendarBusy, DoNotDisturb, OutsideWorkingHours, nor OutOfOffice.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String nextAvailable;

  /**
   * The time when the user will stop being occupied, i.e., when their status will be neither
   * inMeeting, Busy nor DoNotDisturb.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String occupiedUntil;

  /**
   * 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).
   * @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).
   * @param committedUntil committedUntil or {@code null} for none
   */
  public GoogleInternalAppsWaldoV1alphaCalendarBusy setCommittedUntil(String committedUntil) {
    this.committedUntil = committedUntil;
    return this;
  }

  /**
   * The summary of the corresponding event in Calendar.
   * @return value or {@code null} for none
   */
  public java.lang.String getEventSummary() {
    return eventSummary;
  }

  /**
   * The summary of the corresponding event in Calendar.
   * @param eventSummary eventSummary or {@code null} for none
   */
  public GoogleInternalAppsWaldoV1alphaCalendarBusy setEventSummary(java.lang.String eventSummary) {
    this.eventSummary = eventSummary;
    return this;
  }

  /**
   * The next time when the user will be available, i.e., when their status will be neither
   * InMeeting, CalendarBusy, DoNotDisturb, OutsideWorkingHours, nor OutOfOffice.
   * @return value or {@code null} for none
   */
  public String getNextAvailable() {
    return nextAvailable;
  }

  /**
   * The next time when the user will be available, i.e., when their status will be neither
   * InMeeting, CalendarBusy, DoNotDisturb, OutsideWorkingHours, nor OutOfOffice.
   * @param nextAvailable nextAvailable or {@code null} for none
   */
  public GoogleInternalAppsWaldoV1alphaCalendarBusy setNextAvailable(String nextAvailable) {
    this.nextAvailable = nextAvailable;
    return this;
  }

  /**
   * The time when the user will stop being occupied, i.e., when their status will be neither
   * inMeeting, Busy nor DoNotDisturb.
   * @return value or {@code null} for none
   */
  public String getOccupiedUntil() {
    return occupiedUntil;
  }

  /**
   * The time when the user will stop being occupied, i.e., when their status will be neither
   * inMeeting, Busy nor DoNotDisturb.
   * @param occupiedUntil occupiedUntil or {@code null} for none
   */
  public GoogleInternalAppsWaldoV1alphaCalendarBusy setOccupiedUntil(String occupiedUntil) {
    this.occupiedUntil = occupiedUntil;
    return this;
  }

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

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

}
