@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class SpuInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SpuInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BRAND |
static String |
SERIALIZED_NAME_CATEGORY |
static String |
SERIALIZED_NAME_COUNT |
static String |
SERIALIZED_NAME_ICON |
static String |
SERIALIZED_NAME_PRICE |
static String |
SERIALIZED_NAME_PROVIDER |
static String |
SERIALIZED_NAME_SPU_ID |
| 构造器和说明 |
|---|
SpuInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
SpuInfo |
brand(String brand) |
SpuInfo |
category(String category) |
SpuInfo |
count(Integer count) |
boolean |
equals(Object o) |
static SpuInfo |
fromJson(String jsonString)
Create an instance of SpuInfo given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getBrand()
品牌名称
|
String |
getCategory()
类目
|
Integer |
getCount()
商品数量
|
String |
getIcon()
图片链接
|
String |
getPrice()
商品单价(单位:元)
|
String |
getProvider()
商品提供方,店铺或品牌方
|
String |
getSpuId()
商品ID
|
int |
hashCode() |
SpuInfo |
icon(String icon) |
SpuInfo |
price(String price) |
SpuInfo |
provider(String provider) |
SpuInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setBrand(String brand) |
void |
setCategory(String category) |
void |
setCount(Integer count) |
void |
setIcon(String icon) |
void |
setPrice(String price) |
void |
setProvider(String provider) |
void |
setSpuId(String spuId) |
SpuInfo |
spuId(String spuId) |
String |
toJson()
Convert an instance of SpuInfo to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public void setBrand(String brand)
public void setCategory(String category)
public void setCount(Integer count)
public void setIcon(String icon)
public void setPrice(String price)
public void setProvider(String provider)
public void setSpuId(String spuId)
public SpuInfo putAdditionalProperty(String key, Object value)
key - name of the propertyvalue - value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - name of the propertypublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to SpuInfopublic static SpuInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to SpuInfopublic String toJson()
Copyright © 2024. All rights reserved.