/*
 * 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.cloudsearch.v1.model;

/**
 * Model definition for UpdateDraftActionMarkup.
 *
 * <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 Cloud Search 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 UpdateDraftActionMarkup extends com.google.api.client.json.GenericJson {

  /**
   * If set, replaces the existing Bcc recipients of the draft the user is currently editing.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private UpdateBccRecipients updateBccRecipients;

  /**
   * A field that contains a series of update actions to perform on the draft body that the user is
   * currently editing.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private UpdateBody updateBody;

  /**
   * If set, replaces the existing Cc recipients of the draft the user is currently editing.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private UpdateCcRecipients updateCcRecipients;

  /**
   * If set, replaces the existing subject of the draft the user is currently editing.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private UpdateSubject updateSubject;

  /**
   * If set, replaces the existing To recipients of the draft the user is currently editing.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private UpdateToRecipients updateToRecipients;

  /**
   * If set, replaces the existing Bcc recipients of the draft the user is currently editing.
   * @return value or {@code null} for none
   */
  public UpdateBccRecipients getUpdateBccRecipients() {
    return updateBccRecipients;
  }

  /**
   * If set, replaces the existing Bcc recipients of the draft the user is currently editing.
   * @param updateBccRecipients updateBccRecipients or {@code null} for none
   */
  public UpdateDraftActionMarkup setUpdateBccRecipients(UpdateBccRecipients updateBccRecipients) {
    this.updateBccRecipients = updateBccRecipients;
    return this;
  }

  /**
   * A field that contains a series of update actions to perform on the draft body that the user is
   * currently editing.
   * @return value or {@code null} for none
   */
  public UpdateBody getUpdateBody() {
    return updateBody;
  }

  /**
   * A field that contains a series of update actions to perform on the draft body that the user is
   * currently editing.
   * @param updateBody updateBody or {@code null} for none
   */
  public UpdateDraftActionMarkup setUpdateBody(UpdateBody updateBody) {
    this.updateBody = updateBody;
    return this;
  }

  /**
   * If set, replaces the existing Cc recipients of the draft the user is currently editing.
   * @return value or {@code null} for none
   */
  public UpdateCcRecipients getUpdateCcRecipients() {
    return updateCcRecipients;
  }

  /**
   * If set, replaces the existing Cc recipients of the draft the user is currently editing.
   * @param updateCcRecipients updateCcRecipients or {@code null} for none
   */
  public UpdateDraftActionMarkup setUpdateCcRecipients(UpdateCcRecipients updateCcRecipients) {
    this.updateCcRecipients = updateCcRecipients;
    return this;
  }

  /**
   * If set, replaces the existing subject of the draft the user is currently editing.
   * @return value or {@code null} for none
   */
  public UpdateSubject getUpdateSubject() {
    return updateSubject;
  }

  /**
   * If set, replaces the existing subject of the draft the user is currently editing.
   * @param updateSubject updateSubject or {@code null} for none
   */
  public UpdateDraftActionMarkup setUpdateSubject(UpdateSubject updateSubject) {
    this.updateSubject = updateSubject;
    return this;
  }

  /**
   * If set, replaces the existing To recipients of the draft the user is currently editing.
   * @return value or {@code null} for none
   */
  public UpdateToRecipients getUpdateToRecipients() {
    return updateToRecipients;
  }

  /**
   * If set, replaces the existing To recipients of the draft the user is currently editing.
   * @param updateToRecipients updateToRecipients or {@code null} for none
   */
  public UpdateDraftActionMarkup setUpdateToRecipients(UpdateToRecipients updateToRecipients) {
    this.updateToRecipients = updateToRecipients;
    return this;
  }

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

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

}
