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

com.tencent.ads.model.EstimationGetRequest 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.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** EstimationGetRequest */
public class EstimationGetRequest {
  @SerializedName("campaign_spec")
  private CampaignTargeting campaignSpec = null;

  @SerializedName("scene_spec")
  private EstimationSceneTargeting sceneSpec = null;

  @SerializedName("account_id")
  private Long accountId = null;

  @SerializedName("adcreative")
  private List adcreative = null;

  @SerializedName("targeting")
  private EstimationReadTargetingSetting targeting = null;

  @SerializedName("adgroup")
  private AdgroupSetting adgroup = null;

  public EstimationGetRequest campaignSpec(CampaignTargeting campaignSpec) {
    this.campaignSpec = campaignSpec;
    return this;
  }

  /**
   * Get campaignSpec
   *
   * @return campaignSpec
   */
  @ApiModelProperty(value = "")
  public CampaignTargeting getCampaignSpec() {
    return campaignSpec;
  }

  public void setCampaignSpec(CampaignTargeting campaignSpec) {
    this.campaignSpec = campaignSpec;
  }

  public EstimationGetRequest sceneSpec(EstimationSceneTargeting sceneSpec) {
    this.sceneSpec = sceneSpec;
    return this;
  }

  /**
   * Get sceneSpec
   *
   * @return sceneSpec
   */
  @ApiModelProperty(value = "")
  public EstimationSceneTargeting getSceneSpec() {
    return sceneSpec;
  }

  public void setSceneSpec(EstimationSceneTargeting sceneSpec) {
    this.sceneSpec = sceneSpec;
  }

  public EstimationGetRequest accountId(Long accountId) {
    this.accountId = accountId;
    return this;
  }

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

  public void setAccountId(Long accountId) {
    this.accountId = accountId;
  }

  public EstimationGetRequest adcreative(List adcreative) {
    this.adcreative = adcreative;
    return this;
  }

  public EstimationGetRequest addAdcreativeItem(CreativeStruct adcreativeItem) {
    if (this.adcreative == null) {
      this.adcreative = new ArrayList();
    }
    this.adcreative.add(adcreativeItem);
    return this;
  }

  /**
   * Get adcreative
   *
   * @return adcreative
   */
  @ApiModelProperty(value = "")
  public List getAdcreative() {
    return adcreative;
  }

  public void setAdcreative(List adcreative) {
    this.adcreative = adcreative;
  }

  public EstimationGetRequest targeting(EstimationReadTargetingSetting targeting) {
    this.targeting = targeting;
    return this;
  }

  /**
   * Get targeting
   *
   * @return targeting
   */
  @ApiModelProperty(value = "")
  public EstimationReadTargetingSetting getTargeting() {
    return targeting;
  }

  public void setTargeting(EstimationReadTargetingSetting targeting) {
    this.targeting = targeting;
  }

  public EstimationGetRequest adgroup(AdgroupSetting adgroup) {
    this.adgroup = adgroup;
    return this;
  }

  /**
   * Get adgroup
   *
   * @return adgroup
   */
  @ApiModelProperty(value = "")
  public AdgroupSetting getAdgroup() {
    return adgroup;
  }

  public void setAdgroup(AdgroupSetting adgroup) {
    this.adgroup = adgroup;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EstimationGetRequest estimationGetRequest = (EstimationGetRequest) o;
    return Objects.equals(this.campaignSpec, estimationGetRequest.campaignSpec)
        && Objects.equals(this.sceneSpec, estimationGetRequest.sceneSpec)
        && Objects.equals(this.accountId, estimationGetRequest.accountId)
        && Objects.equals(this.adcreative, estimationGetRequest.adcreative)
        && Objects.equals(this.targeting, estimationGetRequest.targeting)
        && Objects.equals(this.adgroup, estimationGetRequest.adgroup);
  }

  @Override
  public int hashCode() {
    return Objects.hash(campaignSpec, sceneSpec, accountId, adcreative, targeting, adgroup);
  }

  @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