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

com.tencent.ads.model.AdLabelGetListStruct 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 AdLabelGetListStruct {
  @SerializedName("label_category")
  private String labelCategory = null;

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

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

  @SerializedName("label_type")
  private LabelType labelType = null;

  @SerializedName("label_type_name")
  private String labelTypeName = null;

  @SerializedName("label_remark")
  private List labelRemark = null;

  public AdLabelGetListStruct labelCategory(String labelCategory) {
    this.labelCategory = labelCategory;
    return this;
  }

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

  public void setLabelCategory(String labelCategory) {
    this.labelCategory = labelCategory;
  }

  public AdLabelGetListStruct label(List label) {
    this.label = label;
    return this;
  }

  public AdLabelGetListStruct addLabelItem(String labelItem) {
    if (this.label == null) {
      this.label = new ArrayList();
    }
    this.label.add(labelItem);
    return this;
  }

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

  public void setLabel(List label) {
    this.label = label;
  }

  public AdLabelGetListStruct icon(List icon) {
    this.icon = icon;
    return this;
  }

  public AdLabelGetListStruct addIconItem(LabelIconItem iconItem) {
    if (this.icon == null) {
      this.icon = new ArrayList();
    }
    this.icon.add(iconItem);
    return this;
  }

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

  public void setIcon(List icon) {
    this.icon = icon;
  }

  public AdLabelGetListStruct labelType(LabelType labelType) {
    this.labelType = labelType;
    return this;
  }

  /**
   * Get labelType
   *
   * @return labelType
   */
  @ApiModelProperty(value = "")
  public LabelType getLabelType() {
    return labelType;
  }

  public void setLabelType(LabelType labelType) {
    this.labelType = labelType;
  }

  public AdLabelGetListStruct labelTypeName(String labelTypeName) {
    this.labelTypeName = labelTypeName;
    return this;
  }

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

  public void setLabelTypeName(String labelTypeName) {
    this.labelTypeName = labelTypeName;
  }

  public AdLabelGetListStruct labelRemark(List labelRemark) {
    this.labelRemark = labelRemark;
    return this;
  }

  public AdLabelGetListStruct addLabelRemarkItem(LabelRemarkItem labelRemarkItem) {
    if (this.labelRemark == null) {
      this.labelRemark = new ArrayList();
    }
    this.labelRemark.add(labelRemarkItem);
    return this;
  }

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

  public void setLabelRemark(List labelRemark) {
    this.labelRemark = labelRemark;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AdLabelGetListStruct adLabelGetListStruct = (AdLabelGetListStruct) o;
    return Objects.equals(this.labelCategory, adLabelGetListStruct.labelCategory)
        && Objects.equals(this.label, adLabelGetListStruct.label)
        && Objects.equals(this.icon, adLabelGetListStruct.icon)
        && Objects.equals(this.labelType, adLabelGetListStruct.labelType)
        && Objects.equals(this.labelTypeName, adLabelGetListStruct.labelTypeName)
        && Objects.equals(this.labelRemark, adLabelGetListStruct.labelRemark);
  }

  @Override
  public int hashCode() {
    return Objects.hash(labelCategory, label, icon, labelType, labelTypeName, labelRemark);
  }

  @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