public final class BasicDigitalTwin extends Object
| Constructor and Description |
|---|
BasicDigitalTwin() |
| Modifier and Type | Method and Description |
|---|---|
BasicDigitalTwin |
addCustomProperty(String key,
Object value)
Adds an additional property to the digital twin.
|
Map<String,Object> |
getCustomProperties()
Gets the additional properties of the digital twin.
|
String |
getId()
Gets the unique Id of the digital twin in a digital twins instance.
|
DigitalTwinMetadata |
getMetadata()
Gets the information about the model a digital twin conforms to.
|
BasicDigitalTwin |
setId(String id)
Sets the unique Id of the digital twin in a digital twins instance.
|
BasicDigitalTwin |
setMetadata(DigitalTwinMetadata metadata)
Sets the information about the model a digital twin conforms to.
|
public String getId()
public BasicDigitalTwin setId(String id)
id - The unique Id of the digital twin in a digital twins instance. This field is present on every digital twin.public DigitalTwinMetadata getMetadata()
public BasicDigitalTwin setMetadata(DigitalTwinMetadata metadata)
metadata - The information about the model a digital twin conforms to. This field is present on every digital twin.public Map<String,Object> getCustomProperties()
public BasicDigitalTwin addCustomProperty(String key, Object value)
key - The key of the additional property to be added to the digital twin.value - The value of the additional property to be added to the digital twin.Copyright © 2022. All rights reserved.