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

com.tencent.ads.model.DynamicAdcreativeSpec 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 DynamicAdcreativeSpec {
  @SerializedName("product_catalog_id")
  private Long productCatalogId = null;

  @SerializedName("product_mode")
  private AdNum productMode = null;

  @SerializedName("product_source")
  private String productSource = null;

  @SerializedName("product_exposure_quantity_mode")
  private ProductItemsQuantity productExposureQuantityMode = null;

  @SerializedName("landing_page_url_type")
  private LandingPageUrlType landingPageUrlType = null;

  public DynamicAdcreativeSpec productCatalogId(Long productCatalogId) {
    this.productCatalogId = productCatalogId;
    return this;
  }

  /**
   * Get productCatalogId
   *
   * @return productCatalogId
   */
  @ApiModelProperty(value = "")
  public Long getProductCatalogId() {
    return productCatalogId;
  }

  public void setProductCatalogId(Long productCatalogId) {
    this.productCatalogId = productCatalogId;
  }

  public DynamicAdcreativeSpec productMode(AdNum productMode) {
    this.productMode = productMode;
    return this;
  }

  /**
   * Get productMode
   *
   * @return productMode
   */
  @ApiModelProperty(value = "")
  public AdNum getProductMode() {
    return productMode;
  }

  public void setProductMode(AdNum productMode) {
    this.productMode = productMode;
  }

  public DynamicAdcreativeSpec productSource(String productSource) {
    this.productSource = productSource;
    return this;
  }

  /**
   * Get productSource
   *
   * @return productSource
   */
  @ApiModelProperty(value = "")
  public String getProductSource() {
    return productSource;
  }

  public void setProductSource(String productSource) {
    this.productSource = productSource;
  }

  public DynamicAdcreativeSpec productExposureQuantityMode(
      ProductItemsQuantity productExposureQuantityMode) {
    this.productExposureQuantityMode = productExposureQuantityMode;
    return this;
  }

  /**
   * Get productExposureQuantityMode
   *
   * @return productExposureQuantityMode
   */
  @ApiModelProperty(value = "")
  public ProductItemsQuantity getProductExposureQuantityMode() {
    return productExposureQuantityMode;
  }

  public void setProductExposureQuantityMode(ProductItemsQuantity productExposureQuantityMode) {
    this.productExposureQuantityMode = productExposureQuantityMode;
  }

  public DynamicAdcreativeSpec landingPageUrlType(LandingPageUrlType landingPageUrlType) {
    this.landingPageUrlType = landingPageUrlType;
    return this;
  }

  /**
   * Get landingPageUrlType
   *
   * @return landingPageUrlType
   */
  @ApiModelProperty(value = "")
  public LandingPageUrlType getLandingPageUrlType() {
    return landingPageUrlType;
  }

  public void setLandingPageUrlType(LandingPageUrlType landingPageUrlType) {
    this.landingPageUrlType = landingPageUrlType;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DynamicAdcreativeSpec dynamicAdcreativeSpec = (DynamicAdcreativeSpec) o;
    return Objects.equals(this.productCatalogId, dynamicAdcreativeSpec.productCatalogId)
        && Objects.equals(this.productMode, dynamicAdcreativeSpec.productMode)
        && Objects.equals(this.productSource, dynamicAdcreativeSpec.productSource)
        && Objects.equals(
            this.productExposureQuantityMode, dynamicAdcreativeSpec.productExposureQuantityMode)
        && Objects.equals(this.landingPageUrlType, dynamicAdcreativeSpec.landingPageUrlType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(
        productCatalogId,
        productMode,
        productSource,
        productExposureQuantityMode,
        landingPageUrlType);
  }

  @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