@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class AdvertItem extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AdvertItem.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_NAME |
| 构造器和说明 |
|---|
AdvertItem() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static AdvertItem |
fromJson(String jsonString)
Create an instance of AdvertItem 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, 尺寸为996*240,最大不超过5M,支持格式:.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 |
getName()
广告帧名称,可选
|
int |
hashCode() |
AdvertItem |
imgUrl(String imgUrl) |
AdvertItem |
linkType(String linkType) |
AdvertItem |
linkUrl(String linkUrl) |
AdvertItem |
name(String name) |
AdvertItem |
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 |
setName(String name) |
String |
toJson()
Convert an instance of AdvertItem 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 AdvertItem imgUrl(String imgUrl)
@Nullable public String getImgUrl()
public void setImgUrl(String imgUrl)
public AdvertItem linkType(String linkType)
public void setLinkType(String linkType)
public AdvertItem linkUrl(String linkUrl)
public void setLinkUrl(String linkUrl)
public AdvertItem name(String name)
public void setName(String name)
public AdvertItem 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 AdvertItempublic static AdvertItem fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to AdvertItempublic String toJson()
Copyright © 2024. All rights reserved.