/*
 * 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;

/**
 * Defines a set of restrictions on particular device features for a certain set of users. Design:
 * go/home-ft-settings-storage PRD: go/home-family-tools-prd
 *
 * <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 AssistantApiSettingsDeviceFeatureFilters extends com.google.api.client.json.GenericJson {

  /**
   * Enables/disables all the filters at the same time. For new devices or non-Cast devices this is
   * always false.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean enabled;

  /**
   * The filters (feature restrictions) to apply when `enabled` is true.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private AssistantApiSettingsFeatureFilters featureFilters;

  /**
   * The set of users of this device that will have these settings applied. Must have at least one
   * element.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> targets;

  /**
   * Enables/disables all the filters at the same time. For new devices or non-Cast devices this is
   * always false.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getEnabled() {
    return enabled;
  }

  /**
   * Enables/disables all the filters at the same time. For new devices or non-Cast devices this is
   * always false.
   * @param enabled enabled or {@code null} for none
   */
  public AssistantApiSettingsDeviceFeatureFilters setEnabled(java.lang.Boolean enabled) {
    this.enabled = enabled;
    return this;
  }

  /**
   * The filters (feature restrictions) to apply when `enabled` is true.
   * @return value or {@code null} for none
   */
  public AssistantApiSettingsFeatureFilters getFeatureFilters() {
    return featureFilters;
  }

  /**
   * The filters (feature restrictions) to apply when `enabled` is true.
   * @param featureFilters featureFilters or {@code null} for none
   */
  public AssistantApiSettingsDeviceFeatureFilters setFeatureFilters(AssistantApiSettingsFeatureFilters featureFilters) {
    this.featureFilters = featureFilters;
    return this;
  }

  /**
   * The set of users of this device that will have these settings applied. Must have at least one
   * element.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getTargets() {
    return targets;
  }

  /**
   * The set of users of this device that will have these settings applied. Must have at least one
   * element.
   * @param targets targets or {@code null} for none
   */
  public AssistantApiSettingsDeviceFeatureFilters setTargets(java.util.List<java.lang.String> targets) {
    this.targets = targets;
    return this;
  }

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

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

}
