@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class ButtonObject extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ButtonObject.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 |
static String |
SERIALIZED_NAME_SUB_BUTTON |
| 构造器和说明 |
|---|
ButtonObject() |
| 限定符和类型 | 方法和说明 |
|---|---|
ButtonObject |
actionParam(String actionParam) |
ButtonObject |
actionType(String actionType) |
ButtonObject |
addSubButtonItem(SubButton subButtonItem) |
boolean |
equals(Object o) |
static ButtonObject |
fromJson(String jsonString)
Create an instance of ButtonObject 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
|
List<SubButton> |
getSubButton()
二级菜单数组,若sub_button为空,则一级菜单必须指定action_type和action_param的值,二级菜单个数可以为1~5个。
|
int |
hashCode() |
ButtonObject |
icon(String icon) |
ButtonObject |
name(String name) |
ButtonObject |
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) |
void |
setSubButton(List<SubButton> subButton) |
ButtonObject |
subButton(List<SubButton> subButton) |
String |
toJson()
Convert an instance of ButtonObject 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 ButtonObject actionParam(String actionParam)
@Nullable public String getActionParam()
public void setActionParam(String actionParam)
public ButtonObject actionType(String actionType)
@Nullable public String getActionType()
public void setActionType(String actionType)
public ButtonObject icon(String icon)
@Nullable public String getIcon()
public void setIcon(String icon)
public ButtonObject name(String name)
public void setName(String name)
public ButtonObject subButton(List<SubButton> subButton)
public ButtonObject addSubButtonItem(SubButton subButtonItem)
@Nullable public List<SubButton> getSubButton()
public ButtonObject 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 ButtonObjectpublic static ButtonObject fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to ButtonObjectpublic String toJson()
Copyright © 2024. All rights reserved.