@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class Topic extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Topic.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_IMG_URL |
static String |
SERIALIZED_NAME_LINK_TYPE |
static String |
SERIALIZED_NAME_LINK_URL |
static String |
SERIALIZED_NAME_SUB_TITLE |
static String |
SERIALIZED_NAME_TITLE |
static String |
SERIALIZED_NAME_TOPIC_ID |
static String |
SERIALIZED_NAME_TOPIC_ITEMS |
| 构造器和说明 |
|---|
Topic() |
| 限定符和类型 | 方法和说明 |
|---|---|
Topic |
addTopicItemsItem(TopicItem topicItemsItem) |
boolean |
equals(Object o) |
static Topic |
fromJson(String jsonString)
Create an instance of Topic 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 |
getImgUrl()
营销位图片url
|
String |
getLinkType()
跳转类型,网页:HTTP、小程序:APP
|
String |
getLinkUrl()
营销位跳转地址,点击营销位头图跳到的链接url。
|
String |
getSubTitle()
营销位描述
|
String |
getTitle()
营销位名称
|
String |
getTopicId()
营销位id
|
List<TopicItem> |
getTopicItems()
营销位内容列表
|
int |
hashCode() |
Topic |
imgUrl(String imgUrl) |
Topic |
linkType(String linkType) |
Topic |
linkUrl(String linkUrl) |
Topic |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setImgUrl(String imgUrl) |
void |
setLinkType(String linkType) |
void |
setLinkUrl(String linkUrl) |
void |
setSubTitle(String subTitle) |
void |
setTitle(String title) |
void |
setTopicId(String topicId) |
void |
setTopicItems(List<TopicItem> topicItems) |
Topic |
subTitle(String subTitle) |
Topic |
title(String title) |
String |
toJson()
Convert an instance of Topic to an JSON string
|
Topic |
topicId(String topicId) |
Topic |
topicItems(List<TopicItem> topicItems) |
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public void setImgUrl(String imgUrl)
public void setLinkType(String linkType)
public void setLinkUrl(String linkUrl)
public void setSubTitle(String subTitle)
public void setTitle(String title)
public void setTopicId(String topicId)
public Topic 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 Topicpublic static Topic fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to Topicpublic String toJson()
Copyright © 2024. All rights reserved.