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

/**
 * Representation of an ad client. An ad client represents a user's subscription with a specific
 * AdSense product.
 *
 * <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 AdSense Management 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 AdClient extends com.google.api.client.json.GenericJson {

  /**
   * Output only. Resource name of the ad client. Format: accounts/{account}/adclients/{adclient}
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Output only. Reporting product code of the ad client. For example, "AFC" for AdSense for
   * Content. Corresponds to the `PRODUCT_CODE` dimension, and present only if the ad client
   * supports reporting.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String productCode;

  /**
   * Output only. Unique ID of the ad client as used in the `AD_CLIENT_ID` reporting dimension.
   * Present only if the ad client supports reporting.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String reportingDimensionId;

  /**
   * Output only. State of the ad client.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String state;

  /**
   * Output only. Resource name of the ad client. Format: accounts/{account}/adclients/{adclient}
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Output only. Resource name of the ad client. Format: accounts/{account}/adclients/{adclient}
   * @param name name or {@code null} for none
   */
  public AdClient setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Output only. Reporting product code of the ad client. For example, "AFC" for AdSense for
   * Content. Corresponds to the `PRODUCT_CODE` dimension, and present only if the ad client
   * supports reporting.
   * @return value or {@code null} for none
   */
  public java.lang.String getProductCode() {
    return productCode;
  }

  /**
   * Output only. Reporting product code of the ad client. For example, "AFC" for AdSense for
   * Content. Corresponds to the `PRODUCT_CODE` dimension, and present only if the ad client
   * supports reporting.
   * @param productCode productCode or {@code null} for none
   */
  public AdClient setProductCode(java.lang.String productCode) {
    this.productCode = productCode;
    return this;
  }

  /**
   * Output only. Unique ID of the ad client as used in the `AD_CLIENT_ID` reporting dimension.
   * Present only if the ad client supports reporting.
   * @return value or {@code null} for none
   */
  public java.lang.String getReportingDimensionId() {
    return reportingDimensionId;
  }

  /**
   * Output only. Unique ID of the ad client as used in the `AD_CLIENT_ID` reporting dimension.
   * Present only if the ad client supports reporting.
   * @param reportingDimensionId reportingDimensionId or {@code null} for none
   */
  public AdClient setReportingDimensionId(java.lang.String reportingDimensionId) {
    this.reportingDimensionId = reportingDimensionId;
    return this;
  }

  /**
   * Output only. State of the ad client.
   * @return value or {@code null} for none
   */
  public java.lang.String getState() {
    return state;
  }

  /**
   * Output only. State of the ad client.
   * @param state state or {@code null} for none
   */
  public AdClient setState(java.lang.String state) {
    this.state = state;
    return this;
  }

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

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

}
