All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencent.ads.model.AdcreativeElementRestriction Maven / Gradle / Ivy

/*
 * Marketing API
 * Marketing API
 *
 * OpenAPI spec version: 1.3
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.tencent.ads.model;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;

/** 广告创意元素需满足的限制条件 */
@ApiModel(description = "广告创意元素需满足的限制条件")
public class AdcreativeElementRestriction {
  @SerializedName("text_restriction")
  private TextRestriction textRestriction = null;

  @SerializedName("image_restriction")
  private ImageRestriction imageRestriction = null;

  @SerializedName("url_restriction")
  private UrlRestriction urlRestriction = null;

  @SerializedName("video_restriction")
  private VideoRestriction videoRestriction = null;

  @SerializedName("number_restriction")
  private NumberRestriction numberRestriction = null;

  public AdcreativeElementRestriction textRestriction(TextRestriction textRestriction) {
    this.textRestriction = textRestriction;
    return this;
  }

  /**
   * Get textRestriction
   *
   * @return textRestriction
   */
  @ApiModelProperty(value = "")
  public TextRestriction getTextRestriction() {
    return textRestriction;
  }

  public void setTextRestriction(TextRestriction textRestriction) {
    this.textRestriction = textRestriction;
  }

  public AdcreativeElementRestriction imageRestriction(ImageRestriction imageRestriction) {
    this.imageRestriction = imageRestriction;
    return this;
  }

  /**
   * Get imageRestriction
   *
   * @return imageRestriction
   */
  @ApiModelProperty(value = "")
  public ImageRestriction getImageRestriction() {
    return imageRestriction;
  }

  public void setImageRestriction(ImageRestriction imageRestriction) {
    this.imageRestriction = imageRestriction;
  }

  public AdcreativeElementRestriction urlRestriction(UrlRestriction urlRestriction) {
    this.urlRestriction = urlRestriction;
    return this;
  }

  /**
   * Get urlRestriction
   *
   * @return urlRestriction
   */
  @ApiModelProperty(value = "")
  public UrlRestriction getUrlRestriction() {
    return urlRestriction;
  }

  public void setUrlRestriction(UrlRestriction urlRestriction) {
    this.urlRestriction = urlRestriction;
  }

  public AdcreativeElementRestriction videoRestriction(VideoRestriction videoRestriction) {
    this.videoRestriction = videoRestriction;
    return this;
  }

  /**
   * Get videoRestriction
   *
   * @return videoRestriction
   */
  @ApiModelProperty(value = "")
  public VideoRestriction getVideoRestriction() {
    return videoRestriction;
  }

  public void setVideoRestriction(VideoRestriction videoRestriction) {
    this.videoRestriction = videoRestriction;
  }

  public AdcreativeElementRestriction numberRestriction(NumberRestriction numberRestriction) {
    this.numberRestriction = numberRestriction;
    return this;
  }

  /**
   * Get numberRestriction
   *
   * @return numberRestriction
   */
  @ApiModelProperty(value = "")
  public NumberRestriction getNumberRestriction() {
    return numberRestriction;
  }

  public void setNumberRestriction(NumberRestriction numberRestriction) {
    this.numberRestriction = numberRestriction;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AdcreativeElementRestriction adcreativeElementRestriction = (AdcreativeElementRestriction) o;
    return Objects.equals(this.textRestriction, adcreativeElementRestriction.textRestriction)
        && Objects.equals(this.imageRestriction, adcreativeElementRestriction.imageRestriction)
        && Objects.equals(this.urlRestriction, adcreativeElementRestriction.urlRestriction)
        && Objects.equals(this.videoRestriction, adcreativeElementRestriction.videoRestriction)
        && Objects.equals(this.numberRestriction, adcreativeElementRestriction.numberRestriction);
  }

  @Override
  public int hashCode() {
    return Objects.hash(
        textRestriction, imageRestriction, urlRestriction, videoRestriction, numberRestriction);
  }

  @Override
  public String toString() {
    Gson gson = new Gson();
    return gson.toJson(this);
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy