你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Property Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. DeviceTwin. Property
- com.
public class Property
Constructor Summary
Modifier | Constructor | Description | |
---|---|---|---|
Property(String key, Object value) | |||
protected | Property(String key, Object value, Integer version, boolean isReported, Date lastUpdated, Integer lastUpdatedVersion) |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | getIsReported() |
java.lang.String | getKey() |
java.util.Date | getLastUpdated() |
java.lang.Integer | getLastUpdatedVersion() |
java.lang.Object | getValue() |
java.lang.Integer | getVersion() |
void | setValue(Object newValue) |
java.lang.String |
toString()
Creates a pretty print JSON with the content of this class and subclasses. |
Methods inherited from java.lang.Object
Constructor Details
Property
public Property(String key, Object value)
Parameters:
Property
protected Property(String key, Object value, Integer version, boolean isReported, Date lastUpdated, Integer lastUpdatedVersion)
Parameters:
Method Details
getIsReported
public boolean getIsReported()
getKey
public String getKey()
getLastUpdated
public Date getLastUpdated()
getLastUpdatedVersion
public Integer getLastUpdatedVersion()
getValue
public Object getValue()
getVersion
public Integer getVersion()
setValue
public void setValue(Object newValue)
Parameters:
toString
public String toString()
Creates a pretty print JSON with the content of this class and subclasses.
Overrides:
Property.toString()Returns:
String
with the pretty print JSON.