DigitalTwinMetadata Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.service.digitaltwin.serialization.DigitalTwinMetadata

public class DigitalTwinMetadata

Constructor Summary

Constructor Description
DigitalTwinMetadata()

Creates an instance of digital twin metadata.

Method Summary

Modifier and Type Method and Description
String getModelId()

Gets the Id of the model that the digital twin or component is modeled by.

Map<String, WritableProperty> getWriteableProperties()

Gets the model-defined writable properties' request state. For your convenience, the value of each map can be turned into an instance of WritableProperty.

DigitalTwinMetadata setModelId(String modelId)

Sets the Id of the model that the digital twin or component is modeled by.

Constructor Details

DigitalTwinMetadata

public DigitalTwinMetadata()

Creates an instance of digital twin metadata.

Method Details

getModelId

public String getModelId()

Gets the Id of the model that the digital twin or component is modeled by.

Returns:

The Id of the model that the digital twin or component is modeled by.

getWriteableProperties

public Map getWriteableProperties()

Gets the model-defined writable properties' request state. For your convenience, the value of each map can be turned into an instance of WritableProperty.

Returns:

The model-defined writable properties' request state.

setModelId

public DigitalTwinMetadata setModelId(String modelId)

Sets the Id of the model that the digital twin or component is modeled by.

Parameters:

modelId - The Id of the model that the digital twin or component is modeled by.

Returns:

The DigitalTwinMetadata object itself.

Applies to