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

/**
 * Each policy topic entry will represent a violation of a policy topic for a creative, with the
 * policy topic information and optional evidence for the policy violation.
 *
 * <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 Real-time Bidding 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 PolicyTopicEntry extends com.google.api.client.json.GenericJson {

  /**
   * Pieces of evidence associated with this policy topic entry.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<PolicyTopicEvidence> evidences;

  /**
   * URL of the help center article describing this policy topic.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String helpCenterUrl;

  /**
   * Policy topic this entry refers to. For example, "ALCOHOL", "TRADEMARKS_IN_AD_TEXT", or
   * "DESTINATION_NOT_WORKING". The set of possible policy topics is not fixed for a particular API
   * version and may change at any time. Can be used to filter the response of the creatives.list
   * method
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String policyTopic;

  /**
   * Pieces of evidence associated with this policy topic entry.
   * @return value or {@code null} for none
   */
  public java.util.List<PolicyTopicEvidence> getEvidences() {
    return evidences;
  }

  /**
   * Pieces of evidence associated with this policy topic entry.
   * @param evidences evidences or {@code null} for none
   */
  public PolicyTopicEntry setEvidences(java.util.List<PolicyTopicEvidence> evidences) {
    this.evidences = evidences;
    return this;
  }

  /**
   * URL of the help center article describing this policy topic.
   * @return value or {@code null} for none
   */
  public java.lang.String getHelpCenterUrl() {
    return helpCenterUrl;
  }

  /**
   * URL of the help center article describing this policy topic.
   * @param helpCenterUrl helpCenterUrl or {@code null} for none
   */
  public PolicyTopicEntry setHelpCenterUrl(java.lang.String helpCenterUrl) {
    this.helpCenterUrl = helpCenterUrl;
    return this;
  }

  /**
   * Policy topic this entry refers to. For example, "ALCOHOL", "TRADEMARKS_IN_AD_TEXT", or
   * "DESTINATION_NOT_WORKING". The set of possible policy topics is not fixed for a particular API
   * version and may change at any time. Can be used to filter the response of the creatives.list
   * method
   * @return value or {@code null} for none
   */
  public java.lang.String getPolicyTopic() {
    return policyTopic;
  }

  /**
   * Policy topic this entry refers to. For example, "ALCOHOL", "TRADEMARKS_IN_AD_TEXT", or
   * "DESTINATION_NOT_WORKING". The set of possible policy topics is not fixed for a particular API
   * version and may change at any time. Can be used to filter the response of the creatives.list
   * method
   * @param policyTopic policyTopic or {@code null} for none
   */
  public PolicyTopicEntry setPolicyTopic(java.lang.String policyTopic) {
    this.policyTopic = policyTopic;
    return this;
  }

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

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

}
