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

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

/** WechatPagesCustomAddRequest */
public class WechatPagesCustomAddRequest {
  @SerializedName("account_id")
  private Long accountId = null;

  @SerializedName("page_name")
  private String pageName = null;

  @SerializedName("page_specs_list")
  private List pageSpecsList = null;

  @SerializedName("global_spec")
  private GlobalSpec globalSpec = null;

  @SerializedName("share_content_spec")
  private ShareContentSpec shareContentSpec = null;

  public WechatPagesCustomAddRequest 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 WechatPagesCustomAddRequest pageName(String pageName) {
    this.pageName = pageName;
    return this;
  }

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

  public void setPageName(String pageName) {
    this.pageName = pageName;
  }

  public WechatPagesCustomAddRequest pageSpecsList(List pageSpecsList) {
    this.pageSpecsList = pageSpecsList;
    return this;
  }

  public WechatPagesCustomAddRequest addPageSpecsListItem(PageSpecsListStruct pageSpecsListItem) {
    if (this.pageSpecsList == null) {
      this.pageSpecsList = new ArrayList();
    }
    this.pageSpecsList.add(pageSpecsListItem);
    return this;
  }

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

  public void setPageSpecsList(List pageSpecsList) {
    this.pageSpecsList = pageSpecsList;
  }

  public WechatPagesCustomAddRequest globalSpec(GlobalSpec globalSpec) {
    this.globalSpec = globalSpec;
    return this;
  }

  /**
   * Get globalSpec
   *
   * @return globalSpec
   */
  @ApiModelProperty(value = "")
  public GlobalSpec getGlobalSpec() {
    return globalSpec;
  }

  public void setGlobalSpec(GlobalSpec globalSpec) {
    this.globalSpec = globalSpec;
  }

  public WechatPagesCustomAddRequest shareContentSpec(ShareContentSpec shareContentSpec) {
    this.shareContentSpec = shareContentSpec;
    return this;
  }

  /**
   * Get shareContentSpec
   *
   * @return shareContentSpec
   */
  @ApiModelProperty(value = "")
  public ShareContentSpec getShareContentSpec() {
    return shareContentSpec;
  }

  public void setShareContentSpec(ShareContentSpec shareContentSpec) {
    this.shareContentSpec = shareContentSpec;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    WechatPagesCustomAddRequest wechatPagesCustomAddRequest = (WechatPagesCustomAddRequest) o;
    return Objects.equals(this.accountId, wechatPagesCustomAddRequest.accountId)
        && Objects.equals(this.pageName, wechatPagesCustomAddRequest.pageName)
        && Objects.equals(this.pageSpecsList, wechatPagesCustomAddRequest.pageSpecsList)
        && Objects.equals(this.globalSpec, wechatPagesCustomAddRequest.globalSpec)
        && Objects.equals(this.shareContentSpec, wechatPagesCustomAddRequest.shareContentSpec);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountId, pageName, pageSpecsList, globalSpec, shareContentSpec);
  }

  @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