BasicDigitalTwin Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. digitaltwin. serialization. BasicDigitalTwin
- com.
public class BasicDigitalTwin
An optional, helper class for deserializing a digital twin. Only properties with non-null values are included.
Method Summary
Modifier and Type | Method and Description |
---|---|
Basic |
addCustomProperty(String key, Object value)
Adds an additional property to the digital twin. This field will contain any properties of the digital twin that are not already defined by the other strong types of this class. |
Map<String, Object> |
getCustomProperties()
Gets the additional properties of the digital twin. This field will contain any properties of the digital twin that are not already defined by the other strong types of this class. |
String |
getId()
Gets the unique Id of the digital twin in a digital twins instance. This field is present on every digital twin. |
Digital |
getMetadata()
Gets the information about the model a digital twin conforms to. This field is present on every digital twin. |
Basic |
setId(String id)
Sets the unique Id of the digital twin in a digital twins instance. This field is present on every digital twin. |
Basic |
setMetadata(DigitalTwinMetadata metadata)
Sets the information about the model a digital twin conforms to. This field is present on every digital twin. |
Method Details
addCustomProperty
public BasicDigitalTwin addCustomProperty(String key, Object value)
Adds an additional property to the digital twin. This field will contain any properties of the digital twin that are not already defined by the other strong types of this class.
Parameters:
Returns:
getCustomProperties
public Map
Gets the additional properties of the digital twin. This field will contain any properties of the digital twin that are not already defined by the other strong types of this class.
Returns:
getId
public String getId()
Gets the unique Id of the digital twin in a digital twins instance. This field is present on every digital twin.
Returns:
getMetadata
public DigitalTwinMetadata getMetadata()
Gets the information about the model a digital twin conforms to. This field is present on every digital twin.
Returns:
setId
public BasicDigitalTwin setId(String id)
Sets the unique Id of the digital twin in a digital twins instance. This field is present on every digital twin.
Parameters:
Returns:
setMetadata
public BasicDigitalTwin setMetadata(DigitalTwinMetadata metadata)
Sets the information about the model a digital twin conforms to. This field is present on every digital twin.
Parameters:
Returns:
Applies to
Azure SDK for Java