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

/**
 * Settings that control the targeting expansion of the line item. Targeting expansion allows the
 * line item to reach a larger audience based on the original audience list and the targeting
 * expansion level.
 *
 * <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 Display & Video 360 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 TargetingExpansionConfig extends com.google.api.client.json.GenericJson {

  /**
   * Required. Whether to exclude first party audiences from targeting. Similar audiences of the
   * excluded first party lists will not be excluded. Only applicable when a first-party audience is
   * positively targeted (directly or included in a combined audience), otherwise this selection
   * will be ignored.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean excludeFirstPartyAudience;

  /**
   * Required. Magnitude of expansion for applicable targeting under this line item.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String targetingExpansionLevel;

  /**
   * Required. Whether to exclude first party audiences from targeting. Similar audiences of the
   * excluded first party lists will not be excluded. Only applicable when a first-party audience is
   * positively targeted (directly or included in a combined audience), otherwise this selection
   * will be ignored.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getExcludeFirstPartyAudience() {
    return excludeFirstPartyAudience;
  }

  /**
   * Required. Whether to exclude first party audiences from targeting. Similar audiences of the
   * excluded first party lists will not be excluded. Only applicable when a first-party audience is
   * positively targeted (directly or included in a combined audience), otherwise this selection
   * will be ignored.
   * @param excludeFirstPartyAudience excludeFirstPartyAudience or {@code null} for none
   */
  public TargetingExpansionConfig setExcludeFirstPartyAudience(java.lang.Boolean excludeFirstPartyAudience) {
    this.excludeFirstPartyAudience = excludeFirstPartyAudience;
    return this;
  }

  /**
   * Required. Magnitude of expansion for applicable targeting under this line item.
   * @return value or {@code null} for none
   */
  public java.lang.String getTargetingExpansionLevel() {
    return targetingExpansionLevel;
  }

  /**
   * Required. Magnitude of expansion for applicable targeting under this line item.
   * @param targetingExpansionLevel targetingExpansionLevel or {@code null} for none
   */
  public TargetingExpansionConfig setTargetingExpansionLevel(java.lang.String targetingExpansionLevel) {
    this.targetingExpansionLevel = targetingExpansionLevel;
    return this;
  }

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

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

}
