
com.tencent.ads.model.VerticalItemSpec 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 VerticalItemSpec {
@SerializedName("id")
private Long id = null;
@SerializedName("name")
private String name = null;
@SerializedName("description")
private String description = null;
@SerializedName("support_catalog_types")
private List supportCatalogTypes = null;
@SerializedName("type")
private String type = null;
public VerticalItemSpec id(Long id) {
this.id = id;
return this;
}
/**
* Get id
*
* @return id
*/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public VerticalItemSpec name(String name) {
this.name = name;
return this;
}
/**
* Get name
*
* @return name
*/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public VerticalItemSpec description(String description) {
this.description = description;
return this;
}
/**
* Get description
*
* @return description
*/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public VerticalItemSpec supportCatalogTypes(List supportCatalogTypes) {
this.supportCatalogTypes = supportCatalogTypes;
return this;
}
public VerticalItemSpec addSupportCatalogTypesItem(String supportCatalogTypesItem) {
if (this.supportCatalogTypes == null) {
this.supportCatalogTypes = new ArrayList();
}
this.supportCatalogTypes.add(supportCatalogTypesItem);
return this;
}
/**
* Get supportCatalogTypes
*
* @return supportCatalogTypes
*/
@ApiModelProperty(value = "")
public List getSupportCatalogTypes() {
return supportCatalogTypes;
}
public void setSupportCatalogTypes(List supportCatalogTypes) {
this.supportCatalogTypes = supportCatalogTypes;
}
public VerticalItemSpec type(String type) {
this.type = type;
return this;
}
/**
* Get type
*
* @return type
*/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VerticalItemSpec verticalItemSpec = (VerticalItemSpec) o;
return Objects.equals(this.id, verticalItemSpec.id)
&& Objects.equals(this.name, verticalItemSpec.name)
&& Objects.equals(this.description, verticalItemSpec.description)
&& Objects.equals(this.supportCatalogTypes, verticalItemSpec.supportCatalogTypes)
&& Objects.equals(this.type, verticalItemSpec.type);
}
@Override
public int hashCode() {
return Objects.hash(id, name, description, supportCatalogTypes, type);
}
@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