@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class AlipayOpenPublicPersonalizedMenuCreateModel extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AlipayOpenPublicPersonalizedMenuCreateModel.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BUTTON |
static String |
SERIALIZED_NAME_GROUP_ID |
static String |
SERIALIZED_NAME_LABEL_RULE |
static String |
SERIALIZED_NAME_MOBILE_CLIENT_TYPE |
static String |
SERIALIZED_NAME_TYPE |
| 构造器和说明 |
|---|
AlipayOpenPublicPersonalizedMenuCreateModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
AlipayOpenPublicPersonalizedMenuCreateModel |
addButtonItem(ButtonObject buttonItem) |
AlipayOpenPublicPersonalizedMenuCreateModel |
addLabelRuleItem(LabelRule labelRuleItem) |
AlipayOpenPublicPersonalizedMenuCreateModel |
button(List<ButtonObject> button) |
boolean |
equals(Object o) |
static AlipayOpenPublicPersonalizedMenuCreateModel |
fromJson(String jsonString)
Create an instance of AlipayOpenPublicPersonalizedMenuCreateModel 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.
|
List<ButtonObject> |
getButton()
一级菜单列表。
|
String |
getGroupId()
人群分组id。
|
List<LabelRule> |
getLabelRule()
标签规则,目前限定只能传入1条,在个性化菜单创建成功后,满足该标签规则的用户进入生活号首页,将看到该套菜单。
|
String |
getMobileClientType()
手机客户端类型,枚举支持: *iphone; *android; *wp; 说明:不填为不区分机型。
|
String |
getType()
菜单类型,不填时默认为 text(文本型菜单)。
|
AlipayOpenPublicPersonalizedMenuCreateModel |
groupId(String groupId) |
int |
hashCode() |
AlipayOpenPublicPersonalizedMenuCreateModel |
labelRule(List<LabelRule> labelRule) |
AlipayOpenPublicPersonalizedMenuCreateModel |
mobileClientType(String mobileClientType) |
AlipayOpenPublicPersonalizedMenuCreateModel |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setButton(List<ButtonObject> button) |
void |
setGroupId(String groupId) |
void |
setLabelRule(List<LabelRule> labelRule) |
void |
setMobileClientType(String mobileClientType) |
void |
setType(String type) |
String |
toJson()
Convert an instance of AlipayOpenPublicPersonalizedMenuCreateModel to an JSON string
|
String |
toString() |
AlipayOpenPublicPersonalizedMenuCreateModel |
type(String type) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_MOBILE_CLIENT_TYPE
public AlipayOpenPublicPersonalizedMenuCreateModel()
public AlipayOpenPublicPersonalizedMenuCreateModel button(List<ButtonObject> button)
public AlipayOpenPublicPersonalizedMenuCreateModel addButtonItem(ButtonObject buttonItem)
@Nullable public List<ButtonObject> getButton()
public void setButton(List<ButtonObject> button)
public AlipayOpenPublicPersonalizedMenuCreateModel groupId(String groupId)
@Nullable public String getGroupId()
public void setGroupId(String groupId)
public AlipayOpenPublicPersonalizedMenuCreateModel labelRule(List<LabelRule> labelRule)
public AlipayOpenPublicPersonalizedMenuCreateModel addLabelRuleItem(LabelRule labelRuleItem)
@Nullable public List<LabelRule> getLabelRule()
public AlipayOpenPublicPersonalizedMenuCreateModel mobileClientType(String mobileClientType)
@Nullable public String getMobileClientType()
public void setMobileClientType(String mobileClientType)
public AlipayOpenPublicPersonalizedMenuCreateModel type(String type)
@Nullable public String getType()
public void setType(String type)
public AlipayOpenPublicPersonalizedMenuCreateModel 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 AlipayOpenPublicPersonalizedMenuCreateModelpublic static AlipayOpenPublicPersonalizedMenuCreateModel fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to AlipayOpenPublicPersonalizedMenuCreateModelpublic String toJson()
Copyright © 2024. All rights reserved.