/*
 * 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 ThirdPartyGenericCard.
 *
 * <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 ThirdPartyGenericCard extends com.google.api.client.json.GenericJson {

  /**
   * Unique identifier for the card.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String cardId;

  /**
   * Category that the card belongs to.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String category;

  /**
   * [Required] Card content.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Content content;

  /**
   * [Required] Context where the card should be triggered.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Context context;

  /**
   * Whether the card can be dismissed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean isDismissible;

  /**
   * Priority of the card, where 0 is the highest priority.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer priority;

  /**
   * Unique identifier for the card.
   * @return value or {@code null} for none
   */
  public java.lang.String getCardId() {
    return cardId;
  }

  /**
   * Unique identifier for the card.
   * @param cardId cardId or {@code null} for none
   */
  public ThirdPartyGenericCard setCardId(java.lang.String cardId) {
    this.cardId = cardId;
    return this;
  }

  /**
   * Category that the card belongs to.
   * @return value or {@code null} for none
   */
  public java.lang.String getCategory() {
    return category;
  }

  /**
   * Category that the card belongs to.
   * @param category category or {@code null} for none
   */
  public ThirdPartyGenericCard setCategory(java.lang.String category) {
    this.category = category;
    return this;
  }

  /**
   * [Required] Card content.
   * @return value or {@code null} for none
   */
  public Content getContent() {
    return content;
  }

  /**
   * [Required] Card content.
   * @param content content or {@code null} for none
   */
  public ThirdPartyGenericCard setContent(Content content) {
    this.content = content;
    return this;
  }

  /**
   * [Required] Context where the card should be triggered.
   * @return value or {@code null} for none
   */
  public Context getContext() {
    return context;
  }

  /**
   * [Required] Context where the card should be triggered.
   * @param context context or {@code null} for none
   */
  public ThirdPartyGenericCard setContext(Context context) {
    this.context = context;
    return this;
  }

  /**
   * Whether the card can be dismissed.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getIsDismissible() {
    return isDismissible;
  }

  /**
   * Whether the card can be dismissed.
   * @param isDismissible isDismissible or {@code null} for none
   */
  public ThirdPartyGenericCard setIsDismissible(java.lang.Boolean isDismissible) {
    this.isDismissible = isDismissible;
    return this;
  }

  /**
   * Priority of the card, where 0 is the highest priority.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getPriority() {
    return priority;
  }

  /**
   * Priority of the card, where 0 is the highest priority.
   * @param priority priority or {@code null} for none
   */
  public ThirdPartyGenericCard setPriority(java.lang.Integer priority) {
    this.priority = priority;
    return this;
  }

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

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

}
