DigitalTwinsModelData Class
- java.
lang. Object - com.
azure. digitaltwins. core. models. DigitalTwinsModelData
- com.
public final class DigitalTwinsModelData
The DigitalTwinsModelData representing the model and its corresponding metadata.
Constructor Summary
Constructor | Description |
---|---|
DigitalTwinsModelData(String modelId, String dtdlModel, Map<String,String> displayName, Map<String,String> description, OffsetDateTime uploadedOn, boolean decommissioned) |
Construct a new Digital |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getDescriptionLanguageMap()
Get the description property: A language map that contains the localized descriptions as specified in the model definition. |
Map<String,String> |
getDisplayNameLanguageMap()
Get the display |
String |
getDtdlModel()
Get the model property: The model definition. |
String |
getModelId()
Get the id property: The id of the model as specified in the model definition. |
Offset |
getUploadedOn()
Get the time the model was uploaded to the service. |
boolean |
isDecommissioned()
Get the decommissioned property: Indicates if the model is decommissioned. |
Methods inherited from java.lang.Object
Constructor Details
DigitalTwinsModelData
public DigitalTwinsModelData(String modelId, String dtdlModel, Map
Construct a new DigitalTwinsModelData instance. This class should only be constructed internally since the service never takes this as an input.
Parameters:
Method Details
getDescriptionLanguageMap
public Map
Get the description property: A language map that contains the localized descriptions as specified in the model definition.
Returns:
getDisplayNameLanguageMap
public Map
Get the displayName property: A language map that contains the localized display names as specified in the model definition.
Returns:
getDtdlModel
public String getDtdlModel()
Get the model property: The model definition.
Returns:
getModelId
public String getModelId()
Get the id property: The id of the model as specified in the model definition.
Returns:
getUploadedOn
public OffsetDateTime getUploadedOn()
Get the time the model was uploaded to the service.
Returns:
isDecommissioned
public boolean isDecommissioned()
Get the decommissioned property: Indicates if the model is decommissioned. Decommissioned models cannot be referenced by newly created digital twins.
Returns:
Applies to
Azure SDK for Java