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

/**
 * Settings for advertisers that use both Campaign Manager 360 (CM360) and third-party ad servers.
 *
 * <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 CmHybridConfig extends com.google.api.client.json.GenericJson {

  /**
   * Required. Immutable. Account ID of the CM360 Floodlight configuration linked with the DV360
   * advertiser.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long cmAccountId;

  /**
   * Required. Immutable. ID of the CM360 Floodlight configuration linked with the DV360 advertiser.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long cmFloodlightConfigId;

  /**
   * Required. Immutable. By setting this field to `true`, you, on behalf of your company, authorize
   * the sharing of information from the given Floodlight configuration to this Display & Video 360
   * advertiser.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean cmFloodlightLinkingAuthorized;

  /**
   * A list of CM360 sites whose placements will be synced to DV360 as creatives. If absent or empty
   * in CreateAdvertiser method, the system will automatically create a CM360 site. Removing sites
   * from this list may cause DV360 creatives synced from CM360 to be deleted. At least one site
   * must be specified.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.util.List<java.lang.Long> cmSyncableSiteIds;

  /**
   * Whether or not to report DV360 cost to CM360.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean dv360ToCmCostReportingEnabled;

  /**
   * Whether or not to include DV360 data in CM360 data transfer reports.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean dv360ToCmDataSharingEnabled;

  /**
   * Required. Immutable. Account ID of the CM360 Floodlight configuration linked with the DV360
   * advertiser.
   * @return value or {@code null} for none
   */
  public java.lang.Long getCmAccountId() {
    return cmAccountId;
  }

  /**
   * Required. Immutable. Account ID of the CM360 Floodlight configuration linked with the DV360
   * advertiser.
   * @param cmAccountId cmAccountId or {@code null} for none
   */
  public CmHybridConfig setCmAccountId(java.lang.Long cmAccountId) {
    this.cmAccountId = cmAccountId;
    return this;
  }

  /**
   * Required. Immutable. ID of the CM360 Floodlight configuration linked with the DV360 advertiser.
   * @return value or {@code null} for none
   */
  public java.lang.Long getCmFloodlightConfigId() {
    return cmFloodlightConfigId;
  }

  /**
   * Required. Immutable. ID of the CM360 Floodlight configuration linked with the DV360 advertiser.
   * @param cmFloodlightConfigId cmFloodlightConfigId or {@code null} for none
   */
  public CmHybridConfig setCmFloodlightConfigId(java.lang.Long cmFloodlightConfigId) {
    this.cmFloodlightConfigId = cmFloodlightConfigId;
    return this;
  }

  /**
   * Required. Immutable. By setting this field to `true`, you, on behalf of your company, authorize
   * the sharing of information from the given Floodlight configuration to this Display & Video 360
   * advertiser.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getCmFloodlightLinkingAuthorized() {
    return cmFloodlightLinkingAuthorized;
  }

  /**
   * Required. Immutable. By setting this field to `true`, you, on behalf of your company, authorize
   * the sharing of information from the given Floodlight configuration to this Display & Video 360
   * advertiser.
   * @param cmFloodlightLinkingAuthorized cmFloodlightLinkingAuthorized or {@code null} for none
   */
  public CmHybridConfig setCmFloodlightLinkingAuthorized(java.lang.Boolean cmFloodlightLinkingAuthorized) {
    this.cmFloodlightLinkingAuthorized = cmFloodlightLinkingAuthorized;
    return this;
  }

  /**
   * A list of CM360 sites whose placements will be synced to DV360 as creatives. If absent or empty
   * in CreateAdvertiser method, the system will automatically create a CM360 site. Removing sites
   * from this list may cause DV360 creatives synced from CM360 to be deleted. At least one site
   * must be specified.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.Long> getCmSyncableSiteIds() {
    return cmSyncableSiteIds;
  }

  /**
   * A list of CM360 sites whose placements will be synced to DV360 as creatives. If absent or empty
   * in CreateAdvertiser method, the system will automatically create a CM360 site. Removing sites
   * from this list may cause DV360 creatives synced from CM360 to be deleted. At least one site
   * must be specified.
   * @param cmSyncableSiteIds cmSyncableSiteIds or {@code null} for none
   */
  public CmHybridConfig setCmSyncableSiteIds(java.util.List<java.lang.Long> cmSyncableSiteIds) {
    this.cmSyncableSiteIds = cmSyncableSiteIds;
    return this;
  }

  /**
   * Whether or not to report DV360 cost to CM360.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getDv360ToCmCostReportingEnabled() {
    return dv360ToCmCostReportingEnabled;
  }

  /**
   * Whether or not to report DV360 cost to CM360.
   * @param dv360ToCmCostReportingEnabled dv360ToCmCostReportingEnabled or {@code null} for none
   */
  public CmHybridConfig setDv360ToCmCostReportingEnabled(java.lang.Boolean dv360ToCmCostReportingEnabled) {
    this.dv360ToCmCostReportingEnabled = dv360ToCmCostReportingEnabled;
    return this;
  }

  /**
   * Whether or not to include DV360 data in CM360 data transfer reports.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getDv360ToCmDataSharingEnabled() {
    return dv360ToCmDataSharingEnabled;
  }

  /**
   * Whether or not to include DV360 data in CM360 data transfer reports.
   * @param dv360ToCmDataSharingEnabled dv360ToCmDataSharingEnabled or {@code null} for none
   */
  public CmHybridConfig setDv360ToCmDataSharingEnabled(java.lang.Boolean dv360ToCmDataSharingEnabled) {
    this.dv360ToCmDataSharingEnabled = dv360ToCmDataSharingEnabled;
    return this;
  }

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

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

}
