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

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

/** CapabilitiesGetResponseData */
public class CapabilitiesGetResponseData {
  @SerializedName("wechat_ecommerce_product_spec")
  private WechatEcommerceProductSpec wechatEcommerceProductSpec = null;

  @SerializedName("wechat_link_ad_spec")
  private WechatLinkAdSpec wechatLinkAdSpec = null;

  @SerializedName("wechat_ocpa_spec")
  private List wechatOcpaSpec = null;

  public CapabilitiesGetResponseData wechatEcommerceProductSpec(
      WechatEcommerceProductSpec wechatEcommerceProductSpec) {
    this.wechatEcommerceProductSpec = wechatEcommerceProductSpec;
    return this;
  }

  /**
   * Get wechatEcommerceProductSpec
   *
   * @return wechatEcommerceProductSpec
   */
  @ApiModelProperty(value = "")
  public WechatEcommerceProductSpec getWechatEcommerceProductSpec() {
    return wechatEcommerceProductSpec;
  }

  public void setWechatEcommerceProductSpec(WechatEcommerceProductSpec wechatEcommerceProductSpec) {
    this.wechatEcommerceProductSpec = wechatEcommerceProductSpec;
  }

  public CapabilitiesGetResponseData wechatLinkAdSpec(WechatLinkAdSpec wechatLinkAdSpec) {
    this.wechatLinkAdSpec = wechatLinkAdSpec;
    return this;
  }

  /**
   * Get wechatLinkAdSpec
   *
   * @return wechatLinkAdSpec
   */
  @ApiModelProperty(value = "")
  public WechatLinkAdSpec getWechatLinkAdSpec() {
    return wechatLinkAdSpec;
  }

  public void setWechatLinkAdSpec(WechatLinkAdSpec wechatLinkAdSpec) {
    this.wechatLinkAdSpec = wechatLinkAdSpec;
  }

  public CapabilitiesGetResponseData wechatOcpaSpec(List wechatOcpaSpec) {
    this.wechatOcpaSpec = wechatOcpaSpec;
    return this;
  }

  public CapabilitiesGetResponseData addWechatOcpaSpecItem(
      WechatOcpaSpecStruct wechatOcpaSpecItem) {
    if (this.wechatOcpaSpec == null) {
      this.wechatOcpaSpec = new ArrayList();
    }
    this.wechatOcpaSpec.add(wechatOcpaSpecItem);
    return this;
  }

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

  public void setWechatOcpaSpec(List wechatOcpaSpec) {
    this.wechatOcpaSpec = wechatOcpaSpec;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CapabilitiesGetResponseData capabilitiesGetResponseData = (CapabilitiesGetResponseData) o;
    return Objects.equals(
            this.wechatEcommerceProductSpec, capabilitiesGetResponseData.wechatEcommerceProductSpec)
        && Objects.equals(this.wechatLinkAdSpec, capabilitiesGetResponseData.wechatLinkAdSpec)
        && Objects.equals(this.wechatOcpaSpec, capabilitiesGetResponseData.wechatOcpaSpec);
  }

  @Override
  public int hashCode() {
    return Objects.hash(wechatEcommerceProductSpec, wechatLinkAdSpec, wechatOcpaSpec);
  }

  @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