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

com.tencent.ads.model.AdcreativePreviewsAddRequest 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;

/** AdcreativePreviewsAddRequest */
public class AdcreativePreviewsAddRequest {
  @SerializedName("adgroup_id")
  private Long adgroupId = null;

  @SerializedName("campaign_id")
  private Long campaignId = null;

  @SerializedName("user_id_type")
  private ViewerIdType userIdType = null;

  @SerializedName("user_id_list")
  private List userIdList = null;

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

  public AdcreativePreviewsAddRequest adgroupId(Long adgroupId) {
    this.adgroupId = adgroupId;
    return this;
  }

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

  public void setAdgroupId(Long adgroupId) {
    this.adgroupId = adgroupId;
  }

  public AdcreativePreviewsAddRequest campaignId(Long campaignId) {
    this.campaignId = campaignId;
    return this;
  }

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

  public void setCampaignId(Long campaignId) {
    this.campaignId = campaignId;
  }

  public AdcreativePreviewsAddRequest userIdType(ViewerIdType userIdType) {
    this.userIdType = userIdType;
    return this;
  }

  /**
   * Get userIdType
   *
   * @return userIdType
   */
  @ApiModelProperty(value = "")
  public ViewerIdType getUserIdType() {
    return userIdType;
  }

  public void setUserIdType(ViewerIdType userIdType) {
    this.userIdType = userIdType;
  }

  public AdcreativePreviewsAddRequest userIdList(List userIdList) {
    this.userIdList = userIdList;
    return this;
  }

  public AdcreativePreviewsAddRequest addUserIdListItem(String userIdListItem) {
    if (this.userIdList == null) {
      this.userIdList = new ArrayList();
    }
    this.userIdList.add(userIdListItem);
    return this;
  }

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

  public void setUserIdList(List userIdList) {
    this.userIdList = userIdList;
  }

  public AdcreativePreviewsAddRequest 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;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AdcreativePreviewsAddRequest adcreativePreviewsAddRequest = (AdcreativePreviewsAddRequest) o;
    return Objects.equals(this.adgroupId, adcreativePreviewsAddRequest.adgroupId)
        && Objects.equals(this.campaignId, adcreativePreviewsAddRequest.campaignId)
        && Objects.equals(this.userIdType, adcreativePreviewsAddRequest.userIdType)
        && Objects.equals(this.userIdList, adcreativePreviewsAddRequest.userIdList)
        && Objects.equals(this.accountId, adcreativePreviewsAddRequest.accountId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(adgroupId, campaignId, userIdType, userIdList, accountId);
  }

  @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