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

com.tencent.ads.model.BehaviorStruct 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 BehaviorStruct {
  @SerializedName("targeting_tags")
  private List targetingTags = null;

  @SerializedName("category_id_list")
  private List categoryIdList = null;

  @SerializedName("keyword_list")
  private List keywordList = null;

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

  @SerializedName("time_window")
  private BehaviorInterestTimeWindow timeWindow = null;

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

  public BehaviorStruct targetingTags(List targetingTags) {
    this.targetingTags = targetingTags;
    return this;
  }

  public BehaviorStruct addTargetingTagsItem(String targetingTagsItem) {
    if (this.targetingTags == null) {
      this.targetingTags = new ArrayList();
    }
    this.targetingTags.add(targetingTagsItem);
    return this;
  }

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

  public void setTargetingTags(List targetingTags) {
    this.targetingTags = targetingTags;
  }

  public BehaviorStruct categoryIdList(List categoryIdList) {
    this.categoryIdList = categoryIdList;
    return this;
  }

  public BehaviorStruct addCategoryIdListItem(Long categoryIdListItem) {
    if (this.categoryIdList == null) {
      this.categoryIdList = new ArrayList();
    }
    this.categoryIdList.add(categoryIdListItem);
    return this;
  }

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

  public void setCategoryIdList(List categoryIdList) {
    this.categoryIdList = categoryIdList;
  }

  public BehaviorStruct keywordList(List keywordList) {
    this.keywordList = keywordList;
    return this;
  }

  public BehaviorStruct addKeywordListItem(String keywordListItem) {
    if (this.keywordList == null) {
      this.keywordList = new ArrayList();
    }
    this.keywordList.add(keywordListItem);
    return this;
  }

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

  public void setKeywordList(List keywordList) {
    this.keywordList = keywordList;
  }

  public BehaviorStruct scene(List scene) {
    this.scene = scene;
    return this;
  }

  public BehaviorStruct addSceneItem(String sceneItem) {
    if (this.scene == null) {
      this.scene = new ArrayList();
    }
    this.scene.add(sceneItem);
    return this;
  }

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

  public void setScene(List scene) {
    this.scene = scene;
  }

  public BehaviorStruct timeWindow(BehaviorInterestTimeWindow timeWindow) {
    this.timeWindow = timeWindow;
    return this;
  }

  /**
   * Get timeWindow
   *
   * @return timeWindow
   */
  @ApiModelProperty(value = "")
  public BehaviorInterestTimeWindow getTimeWindow() {
    return timeWindow;
  }

  public void setTimeWindow(BehaviorInterestTimeWindow timeWindow) {
    this.timeWindow = timeWindow;
  }

  public BehaviorStruct intensity(List intensity) {
    this.intensity = intensity;
    return this;
  }

  public BehaviorStruct addIntensityItem(String intensityItem) {
    if (this.intensity == null) {
      this.intensity = new ArrayList();
    }
    this.intensity.add(intensityItem);
    return this;
  }

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

  public void setIntensity(List intensity) {
    this.intensity = intensity;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BehaviorStruct behaviorStruct = (BehaviorStruct) o;
    return Objects.equals(this.targetingTags, behaviorStruct.targetingTags)
        && Objects.equals(this.categoryIdList, behaviorStruct.categoryIdList)
        && Objects.equals(this.keywordList, behaviorStruct.keywordList)
        && Objects.equals(this.scene, behaviorStruct.scene)
        && Objects.equals(this.timeWindow, behaviorStruct.timeWindow)
        && Objects.equals(this.intensity, behaviorStruct.intensity);
  }

  @Override
  public int hashCode() {
    return Objects.hash(targetingTags, categoryIdList, keywordList, scene, timeWindow, intensity);
  }

  @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