Class UpdateDeviceShadowRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.iotcloud.v20180614.models.UpdateDeviceShadowRequest
-
public class UpdateDeviceShadowRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description UpdateDeviceShadowRequest()UpdateDeviceShadowRequest(UpdateDeviceShadowRequest 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDeviceName()Get 设备名称StringgetPrefix()Get 下发delta消息的topic前缀,可选类型: "$shadow","$template"。不填写默认"$shadow"。StringgetProductId()Get 产品IDLonggetShadowVersion()Get 当前版本号,需要和后台的version保持一致,才能更新成功StringgetState()Get 虚拟设备的状态,JSON字符串格式,由desired结构组成voidsetDeviceName(String DeviceName)Set 设备名称voidsetPrefix(String Prefix)Set 下发delta消息的topic前缀,可选类型: "$shadow","$template"。不填写默认"$shadow"。voidsetProductId(String ProductId)Set 产品IDvoidsetShadowVersion(Long ShadowVersion)Set 当前版本号,需要和后台的version保持一致,才能更新成功voidsetState(String State)Set 虚拟设备的状态,JSON字符串格式,由desired结构组成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
-
UpdateDeviceShadowRequest
public UpdateDeviceShadowRequest()
-
UpdateDeviceShadowRequest
public UpdateDeviceShadowRequest(UpdateDeviceShadowRequest 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
-
getProductId
public String getProductId()
Get 产品ID- Returns:
- ProductId 产品ID
-
setProductId
public void setProductId(String ProductId)
Set 产品ID- Parameters:
ProductId- 产品ID
-
getDeviceName
public String getDeviceName()
Get 设备名称- Returns:
- DeviceName 设备名称
-
setDeviceName
public void setDeviceName(String DeviceName)
Set 设备名称- Parameters:
DeviceName- 设备名称
-
getState
public String getState()
Get 虚拟设备的状态,JSON字符串格式,由desired结构组成- Returns:
- State 虚拟设备的状态,JSON字符串格式,由desired结构组成
-
setState
public void setState(String State)
Set 虚拟设备的状态,JSON字符串格式,由desired结构组成- Parameters:
State- 虚拟设备的状态,JSON字符串格式,由desired结构组成
-
getShadowVersion
public Long getShadowVersion()
Get 当前版本号,需要和后台的version保持一致,才能更新成功- Returns:
- ShadowVersion 当前版本号,需要和后台的version保持一致,才能更新成功
-
setShadowVersion
public void setShadowVersion(Long ShadowVersion)
Set 当前版本号,需要和后台的version保持一致,才能更新成功- Parameters:
ShadowVersion- 当前版本号,需要和后台的version保持一致,才能更新成功
-
getPrefix
public String getPrefix()
Get 下发delta消息的topic前缀,可选类型: "$shadow","$template"。不填写默认"$shadow"。- Returns:
- Prefix 下发delta消息的topic前缀,可选类型: "$shadow","$template"。不填写默认"$shadow"。
-
setPrefix
public void setPrefix(String Prefix)
Set 下发delta消息的topic前缀,可选类型: "$shadow","$template"。不填写默认"$shadow"。- Parameters:
Prefix- 下发delta消息的topic前缀,可选类型: "$shadow","$template"。不填写默认"$shadow"。
-
-