你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ConfigurationContentParser Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. deps. serializer. ConfigurationContentParser
- com.
public class ConfigurationContentParser
Constructor Summary
Constructor | Description |
---|---|
ConfigurationContentParser() |
Empty constructor: Used only to keep GSON happy. |
ConfigurationContentParser(String json) |
Constructor for an Configuration |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getDeviceContent()
Getter for device |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
getModulesContent()
Getter for modules |
void |
setDeviceContent(Map<String,Object> deviceContent)
Setter for device |
void |
setModulesContent(Map<String,Map<String,Object>> modulesContent)
Setter for modules |
java.lang.String | toJson() |
com.google.gson.JsonElement | toJsonElement() |
Methods inherited from java.lang.Object
Constructor Details
ConfigurationContentParser
public ConfigurationContentParser()
Empty constructor: Used only to keep GSON happy.
ConfigurationContentParser
public ConfigurationContentParser(String json)
Constructor for an ConfigurationContentParser that is built using the provided json
Parameters:
Method Details
getDeviceContent
public Map
Getter for deviceContent
Returns:
getModulesContent
public Map
Getter for modulesContent
Returns:
setDeviceContent
public void setDeviceContent(Map
Setter for deviceContent
Parameters:
setModulesContent
public void setModulesContent(Map
Setter for modulesContent
Parameters:
toJson
public String toJson()
toJsonElement
public JsonElement toJsonElement()
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈