@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class Article extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Article.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ACTION_NAME |
static String |
SERIALIZED_NAME_DESC |
static String |
SERIALIZED_NAME_IMAGE_URL |
static String |
SERIALIZED_NAME_TITLE |
static String |
SERIALIZED_NAME_URL |
| 构造器和说明 |
|---|
Article() |
| 限定符和类型 | 方法和说明 |
|---|---|
Article |
actionName(String actionName) |
Article |
desc(String desc) |
boolean |
equals(Object o) |
static Article |
fromJson(String jsonString)
Create an instance of Article given an JSON string
|
String |
getActionName()
链接文字
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getDesc()
图文消息内容
|
String |
getImageUrl()
图片链接,对于多条图文消息的第一条消息,该字段不能为空; 请先调用<a href=\"https://docs.open.alipay.com/api_3/alipay.offline.material.image.upload\"> 图片上传接口</a>获得图片url
|
String |
getTitle()
图文消息标题
|
String |
getUrl()
点击图文消息跳转的链接
|
int |
hashCode() |
Article |
imageUrl(String imageUrl) |
Article |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setActionName(String actionName) |
void |
setDesc(String desc) |
void |
setImageUrl(String imageUrl) |
void |
setTitle(String title) |
void |
setUrl(String url) |
Article |
title(String title) |
String |
toJson()
Convert an instance of Article to an JSON string
|
String |
toString() |
Article |
url(String url) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public void setActionName(String actionName)
public void setDesc(String desc)
@Nullable public String getImageUrl()
public void setImageUrl(String imageUrl)
public void setTitle(String title)
public void setUrl(String url)
public Article 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 Articlepublic static Article fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to Articlepublic String toJson()
Copyright © 2024. All rights reserved.