@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class SubButton extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SubButton.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ACTION_PARAM |
static String |
SERIALIZED_NAME_ACTION_TYPE |
static String |
SERIALIZED_NAME_ICON |
static String |
SERIALIZED_NAME_NAME |
| 构造器和说明 |
|---|
SubButton() |
| 限定符和类型 | 方法和说明 |
|---|---|
SubButton |
actionParam(String actionParam) |
SubButton |
actionType(String actionType) |
boolean |
equals(Object o) |
static SubButton |
fromJson(String jsonString)
Create an instance of SubButton given an JSON string
|
String |
getActionParam()
当actionType为link时,该参数为url链接; 当actionType为out时,该参数为用户自定义参数; 当actionType为tel时,该参数为电话号码。
|
String |
getActionType()
菜单类型: out——事件型菜单; link——链接型菜单; tel——点击拨打电话; map——点击查看地图; consumption——点击查看用户与生活号管理员账号之间的消费记录
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getIcon()
icon图片url,必须是http协议的url,尺寸为60X60,最大不超过5M,请先调用<a href=\"https://docs.open.alipay.com/api_3/alipay.offline.material.image.upload\"> 图片上传接口</a>获得图片url
|
String |
getName()
菜单名称,icon菜单名称不超过5个汉字,文本菜单名称不超过9个汉字,编码格式为GBK
|
int |
hashCode() |
SubButton |
icon(String icon) |
SubButton |
name(String name) |
SubButton |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setActionParam(String actionParam) |
void |
setActionType(String actionType) |
void |
setIcon(String icon) |
void |
setName(String name) |
String |
toJson()
Convert an instance of SubButton 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 getActionParam()
public void setActionParam(String actionParam)
@Nullable public String getActionType()
public void setActionType(String actionType)
@Nullable public String getIcon()
public void setIcon(String icon)
public void setName(String name)
public SubButton 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 SubButtonpublic static SubButton fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to SubButtonpublic String toJson()
Copyright © 2024. All rights reserved.