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

/**
 * The supported widgets that you can include in a column.
 *
 * <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 Google Chat 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 GoogleAppsCardV1Widgets extends com.google.api.client.json.GenericJson {

  /**
   * ButtonList widget.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleAppsCardV1ButtonList buttonList;

  /**
   * DateTimePicker widget.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleAppsCardV1DateTimePicker dateTimePicker;

  /**
   * DecoratedText widget.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleAppsCardV1DecoratedText decoratedText;

  /**
   * Image widget.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleAppsCardV1Image image;

  /**
   * SelectionInput widget.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleAppsCardV1SelectionInput selectionInput;

  /**
   * TextInput widget.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleAppsCardV1TextInput textInput;

  /**
   * TextParagraph widget.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleAppsCardV1TextParagraph textParagraph;

  /**
   * ButtonList widget.
   * @return value or {@code null} for none
   */
  public GoogleAppsCardV1ButtonList getButtonList() {
    return buttonList;
  }

  /**
   * ButtonList widget.
   * @param buttonList buttonList or {@code null} for none
   */
  public GoogleAppsCardV1Widgets setButtonList(GoogleAppsCardV1ButtonList buttonList) {
    this.buttonList = buttonList;
    return this;
  }

  /**
   * DateTimePicker widget.
   * @return value or {@code null} for none
   */
  public GoogleAppsCardV1DateTimePicker getDateTimePicker() {
    return dateTimePicker;
  }

  /**
   * DateTimePicker widget.
   * @param dateTimePicker dateTimePicker or {@code null} for none
   */
  public GoogleAppsCardV1Widgets setDateTimePicker(GoogleAppsCardV1DateTimePicker dateTimePicker) {
    this.dateTimePicker = dateTimePicker;
    return this;
  }

  /**
   * DecoratedText widget.
   * @return value or {@code null} for none
   */
  public GoogleAppsCardV1DecoratedText getDecoratedText() {
    return decoratedText;
  }

  /**
   * DecoratedText widget.
   * @param decoratedText decoratedText or {@code null} for none
   */
  public GoogleAppsCardV1Widgets setDecoratedText(GoogleAppsCardV1DecoratedText decoratedText) {
    this.decoratedText = decoratedText;
    return this;
  }

  /**
   * Image widget.
   * @return value or {@code null} for none
   */
  public GoogleAppsCardV1Image getImage() {
    return image;
  }

  /**
   * Image widget.
   * @param image image or {@code null} for none
   */
  public GoogleAppsCardV1Widgets setImage(GoogleAppsCardV1Image image) {
    this.image = image;
    return this;
  }

  /**
   * SelectionInput widget.
   * @return value or {@code null} for none
   */
  public GoogleAppsCardV1SelectionInput getSelectionInput() {
    return selectionInput;
  }

  /**
   * SelectionInput widget.
   * @param selectionInput selectionInput or {@code null} for none
   */
  public GoogleAppsCardV1Widgets setSelectionInput(GoogleAppsCardV1SelectionInput selectionInput) {
    this.selectionInput = selectionInput;
    return this;
  }

  /**
   * TextInput widget.
   * @return value or {@code null} for none
   */
  public GoogleAppsCardV1TextInput getTextInput() {
    return textInput;
  }

  /**
   * TextInput widget.
   * @param textInput textInput or {@code null} for none
   */
  public GoogleAppsCardV1Widgets setTextInput(GoogleAppsCardV1TextInput textInput) {
    this.textInput = textInput;
    return this;
  }

  /**
   * TextParagraph widget.
   * @return value or {@code null} for none
   */
  public GoogleAppsCardV1TextParagraph getTextParagraph() {
    return textParagraph;
  }

  /**
   * TextParagraph widget.
   * @param textParagraph textParagraph or {@code null} for none
   */
  public GoogleAppsCardV1Widgets setTextParagraph(GoogleAppsCardV1TextParagraph textParagraph) {
    this.textParagraph = textParagraph;
    return this;
  }

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

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

}
