@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class TopicItem extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TopicItem.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 |
| 构造器和说明 |
|---|
TopicItem() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static TopicItem |
fromJson(String jsonString)
Create an instance of TopicItem 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, 尺寸为300*300,最大不超过3M,支持格式:.jpg、.png ,请先调用<a href=\"https://docs.open.alipay.com/api_3/alipay.offline.material.image.upload\"> 图片上传接口</a>获得图片url
|
String |
getLinkType()
跳转类型,网页:HTTP、小程序:APP,不传默认HTTP
|
String |
getLinkUrl()
跳转链接,点击营销位内容图片跳到的链接url
|
String |
getSubTitle()
内容说明
|
String |
getTitle()
内容标题
|
int |
hashCode() |
TopicItem |
imgUrl(String imgUrl) |
TopicItem |
linkType(String linkType) |
TopicItem |
linkUrl(String linkUrl) |
TopicItem |
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) |
TopicItem |
subTitle(String subTitle) |
TopicItem |
title(String title) |
String |
toJson()
Convert an instance of TopicItem 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
|
@Nullable public String getImgUrl()
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 TopicItem 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 TopicItempublic static TopicItem fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to TopicItempublic String toJson()
Copyright © 2024. All rights reserved.