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

/**
 * A set of products.
 *
 * <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 Play EMM 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 ProductSet extends com.google.api.client.json.GenericJson {

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String kind;

  /**
   * The list of product IDs making up the set of products.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> productId;

  /**
   * The interpretation of this product set. "unknown" should never be sent and is ignored if
   * received. "whitelist" means that the user is entitled to access the product set. "includeAll"
   * means that all products are accessible, including products that are approved, products with
   * revoked approval, and products that have never been approved. "allApproved" means that the user
   * is entitled to access all products that are approved for the enterprise. If the value is
   * "allApproved" or "includeAll", the productId field is ignored. If no value is provided, it is
   * interpreted as "whitelist" for backwards compatibility. Further "allApproved" or "includeAll"
   * does not enable automatic visibility of "alpha" or "beta" tracks for Android app. Use
   * ProductVisibility to enable "alpha" or "beta" tracks per user.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String productSetBehavior;

  /**
   * Additional list of product IDs making up the product set. Unlike the productID array, in this
   * list It's possible to specify which tracks (alpha, beta, production) of a product are visible
   * to the user. See ProductVisibility and its fields for more information. Specifying the same
   * product ID both here and in the productId array is not allowed and it will result in an error.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<ProductVisibility> productVisibility;

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getKind() {
    return kind;
  }

  /**
   * @param kind kind or {@code null} for none
   */
  public ProductSet setKind(java.lang.String kind) {
    this.kind = kind;
    return this;
  }

  /**
   * The list of product IDs making up the set of products.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getProductId() {
    return productId;
  }

  /**
   * The list of product IDs making up the set of products.
   * @param productId productId or {@code null} for none
   */
  public ProductSet setProductId(java.util.List<java.lang.String> productId) {
    this.productId = productId;
    return this;
  }

  /**
   * The interpretation of this product set. "unknown" should never be sent and is ignored if
   * received. "whitelist" means that the user is entitled to access the product set. "includeAll"
   * means that all products are accessible, including products that are approved, products with
   * revoked approval, and products that have never been approved. "allApproved" means that the user
   * is entitled to access all products that are approved for the enterprise. If the value is
   * "allApproved" or "includeAll", the productId field is ignored. If no value is provided, it is
   * interpreted as "whitelist" for backwards compatibility. Further "allApproved" or "includeAll"
   * does not enable automatic visibility of "alpha" or "beta" tracks for Android app. Use
   * ProductVisibility to enable "alpha" or "beta" tracks per user.
   * @return value or {@code null} for none
   */
  public java.lang.String getProductSetBehavior() {
    return productSetBehavior;
  }

  /**
   * The interpretation of this product set. "unknown" should never be sent and is ignored if
   * received. "whitelist" means that the user is entitled to access the product set. "includeAll"
   * means that all products are accessible, including products that are approved, products with
   * revoked approval, and products that have never been approved. "allApproved" means that the user
   * is entitled to access all products that are approved for the enterprise. If the value is
   * "allApproved" or "includeAll", the productId field is ignored. If no value is provided, it is
   * interpreted as "whitelist" for backwards compatibility. Further "allApproved" or "includeAll"
   * does not enable automatic visibility of "alpha" or "beta" tracks for Android app. Use
   * ProductVisibility to enable "alpha" or "beta" tracks per user.
   * @param productSetBehavior productSetBehavior or {@code null} for none
   */
  public ProductSet setProductSetBehavior(java.lang.String productSetBehavior) {
    this.productSetBehavior = productSetBehavior;
    return this;
  }

  /**
   * Additional list of product IDs making up the product set. Unlike the productID array, in this
   * list It's possible to specify which tracks (alpha, beta, production) of a product are visible
   * to the user. See ProductVisibility and its fields for more information. Specifying the same
   * product ID both here and in the productId array is not allowed and it will result in an error.
   * @return value or {@code null} for none
   */
  public java.util.List<ProductVisibility> getProductVisibility() {
    return productVisibility;
  }

  /**
   * Additional list of product IDs making up the product set. Unlike the productID array, in this
   * list It's possible to specify which tracks (alpha, beta, production) of a product are visible
   * to the user. See ProductVisibility and its fields for more information. Specifying the same
   * product ID both here and in the productId array is not allowed and it will result in an error.
   * @param productVisibility productVisibility or {@code null} for none
   */
  public ProductSet setProductVisibility(java.util.List<ProductVisibility> productVisibility) {
    this.productVisibility = productVisibility;
    return this;
  }

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

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

}
