Class Event
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.eb.v20210416.models.Event
-
public class Event extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetData()Get 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串StringgetSource()Get 事件源的信息,新产品上报必须符合EB的规范StringgetSubject()Get 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxxLonggetTime()Get 事件发生的毫秒时间戳, time.Now().UnixNano()/1e6StringgetType()Get 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段voidsetData(String Data)Set 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串voidsetSource(String Source)Set 事件源的信息,新产品上报必须符合EB的规范voidsetSubject(String Subject)Set 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxxvoidsetTime(Long Time)Set 事件发生的毫秒时间戳, time.Now().UnixNano()/1e6voidsetType(String Type)Set 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
Event
public Event()
-
Event
public Event(Event source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getSource
public String getSource()
Get 事件源的信息,新产品上报必须符合EB的规范- Returns:
- Source 事件源的信息,新产品上报必须符合EB的规范
-
setSource
public void setSource(String Source)
Set 事件源的信息,新产品上报必须符合EB的规范- Parameters:
Source- 事件源的信息,新产品上报必须符合EB的规范
-
getData
public String getData()
Get 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串- Returns:
- Data 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串
-
setData
public void setData(String Data)
Set 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串- Parameters:
Data- 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串
-
getType
public String getType()
Get 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段- Returns:
- Type 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段
-
setType
public void setType(String Type)
Set 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段- Parameters:
Type- 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段
-
getSubject
public String getSubject()
Get 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx- Returns:
- Subject 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx
-
setSubject
public void setSubject(String Subject)
Set 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx- Parameters:
Subject- 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx
-
getTime
public Long getTime()
Get 事件发生的毫秒时间戳, time.Now().UnixNano()/1e6- Returns:
- Time 事件发生的毫秒时间戳, time.Now().UnixNano()/1e6
-
setTime
public void setTime(Long Time)
Set 事件发生的毫秒时间戳, time.Now().UnixNano()/1e6- Parameters:
Time- 事件发生的毫秒时间戳, time.Now().UnixNano()/1e6
-
-