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

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

/** IOS应用信息 */
@ApiModel(description = "IOS应用信息")
public class PromotedObjectAppIosSpec {
  @SerializedName("packname")
  private String packname = null;

  @SerializedName("version")
  private String version = null;

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

  @SerializedName("icon_512")
  private String icon512 = null;

  @SerializedName("average_rating")
  private String averageRating = null;

  @SerializedName("package_size")
  private String packageSize = null;

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

  @SerializedName("package_download_url")
  private String packageDownloadUrl = null;

  public PromotedObjectAppIosSpec packname(String packname) {
    this.packname = packname;
    return this;
  }

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

  public void setPackname(String packname) {
    this.packname = packname;
  }

  public PromotedObjectAppIosSpec version(String version) {
    this.version = version;
    return this;
  }

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

  public void setVersion(String version) {
    this.version = version;
  }

  public PromotedObjectAppIosSpec icon(String icon) {
    this.icon = icon;
    return this;
  }

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

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

  public PromotedObjectAppIosSpec icon512(String icon512) {
    this.icon512 = icon512;
    return this;
  }

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

  public void setIcon512(String icon512) {
    this.icon512 = icon512;
  }

  public PromotedObjectAppIosSpec averageRating(String averageRating) {
    this.averageRating = averageRating;
    return this;
  }

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

  public void setAverageRating(String averageRating) {
    this.averageRating = averageRating;
  }

  public PromotedObjectAppIosSpec packageSize(String packageSize) {
    this.packageSize = packageSize;
    return this;
  }

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

  public void setPackageSize(String packageSize) {
    this.packageSize = packageSize;
  }

  public PromotedObjectAppIosSpec genres(List genres) {
    this.genres = genres;
    return this;
  }

  public PromotedObjectAppIosSpec addGenresItem(String genresItem) {
    if (this.genres == null) {
      this.genres = new ArrayList();
    }
    this.genres.add(genresItem);
    return this;
  }

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

  public void setGenres(List genres) {
    this.genres = genres;
  }

  public PromotedObjectAppIosSpec packageDownloadUrl(String packageDownloadUrl) {
    this.packageDownloadUrl = packageDownloadUrl;
    return this;
  }

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

  public void setPackageDownloadUrl(String packageDownloadUrl) {
    this.packageDownloadUrl = packageDownloadUrl;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PromotedObjectAppIosSpec promotedObjectAppIosSpec = (PromotedObjectAppIosSpec) o;
    return Objects.equals(this.packname, promotedObjectAppIosSpec.packname)
        && Objects.equals(this.version, promotedObjectAppIosSpec.version)
        && Objects.equals(this.icon, promotedObjectAppIosSpec.icon)
        && Objects.equals(this.icon512, promotedObjectAppIosSpec.icon512)
        && Objects.equals(this.averageRating, promotedObjectAppIosSpec.averageRating)
        && Objects.equals(this.packageSize, promotedObjectAppIosSpec.packageSize)
        && Objects.equals(this.genres, promotedObjectAppIosSpec.genres)
        && Objects.equals(this.packageDownloadUrl, promotedObjectAppIosSpec.packageDownloadUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(
        packname, version, icon, icon512, averageRating, packageSize, genres, packageDownloadUrl);
  }

  @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