BasicDigitalTwin Class

Definition

An optional, helper class for deserializing a digital twin. Only properties with non-null values are included.

Note that this class uses JsonProperty from the Jackson serialization library. Because of this, this type will only work if the default json serializer is used by the digital twins client or if the custom json serializer uses Jackson as well. In order to use a different json library, a new BasicDigitalTwin class must be constructed and have its json properties tagged by the annotation used by that json library.

public final class BasicDigitalTwin
Inheritance
java.lang.Object
BasicDigitalTwin

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructors

BasicDigitalTwin(String digitalTwinId)

Construct a basic digital twin.

Methods

addToContents(String key, Object value)

Adds an additional custom property to the digital twin contents. This field will contain any contents of the digital twin that are not already defined by the other strong types of this class.

getContents()

Gets the additional custom contents of the digital twin. This field will contain any contents of the digital twin that are not already defined by the other strong types of this class.

getETag()

Gets a string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232.

getId()

Gets the unique Id of the digital twin in a digital twins instance. This field is present on every digital twin.

getMetadata()

Gets the information about the model a digital twin conforms to. This field is present on every digital twin.

setETag(String etag)

Sets a string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232.

setMetadata(BasicDigitalTwinMetadata metadata)

Sets the information about the model a digital twin conforms to. This field is present on every digital twin.

Applies to