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

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

/** 定向标签(转化)贡献度 */
@ApiModel(description = "定向标签(转化)贡献度")
public class ConversionTargetingLabelContributionStruct {
  @SerializedName("locard")
  private List locard = null;

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

  public ConversionTargetingLabelContributionStruct locard(List locard) {
    this.locard = locard;
    return this;
  }

  public ConversionTargetingLabelContributionStruct addLocardItem(
      LabelContributionListItem locardItem) {
    if (this.locard == null) {
      this.locard = new ArrayList();
    }
    this.locard.add(locardItem);
    return this;
  }

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

  public void setLocard(List locard) {
    this.locard = locard;
  }

  public ConversionTargetingLabelContributionStruct audience(
      List audience) {
    this.audience = audience;
    return this;
  }

  public ConversionTargetingLabelContributionStruct addAudienceItem(
      LabelContributionListItem audienceItem) {
    if (this.audience == null) {
      this.audience = new ArrayList();
    }
    this.audience.add(audienceItem);
    return this;
  }

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

  public void setAudience(List audience) {
    this.audience = audience;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConversionTargetingLabelContributionStruct conversionTargetingLabelContributionStruct =
        (ConversionTargetingLabelContributionStruct) o;
    return Objects.equals(this.locard, conversionTargetingLabelContributionStruct.locard)
        && Objects.equals(this.audience, conversionTargetingLabelContributionStruct.audience);
  }

  @Override
  public int hashCode() {
    return Objects.hash(locard, audience);
  }

  @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