Class DigitalTwinsModelData
java.lang.Object
com.azure.digitaltwins.core.models.DigitalTwinsModelData
The DigitalTwinsModelData representing the model and its corresponding metadata.
-
Constructor Summary
ConstructorDescriptionDigitalTwinsModelData
(String modelId, String dtdlModel, Map<String, String> displayName, Map<String, String> description, OffsetDateTime uploadedOn, boolean decommissioned) Construct a new DigitalTwinsModelData instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A language map that contains the localized descriptions as specified in the model definition.Get the displayName property: A language map that contains the localized display names as specified in the model definition.Get the model property: The model definition.Get the id property: The id of the model as specified in the model definition.Get the time the model was uploaded to the service.boolean
Get the decommissioned property: Indicates if the model is decommissioned.
-
Constructor Details
-
DigitalTwinsModelData
public DigitalTwinsModelData(String modelId, String dtdlModel, Map<String, String> displayName, Map<String, String> description, OffsetDateTime uploadedOn, boolean decommissioned) Construct a new DigitalTwinsModelData instance. This class should only be constructed internally since the service never takes this as an input.- Parameters:
modelId
- The Id of the model.dtdlModel
- The contents of the model.displayName
- The language map of the localized display names.description
- The language map of the localized descriptions.uploadedOn
- The time when this model was uploaded.decommissioned
- If this model has been decommissioned.
-
-
Method Details
-
getDisplayNameLanguageMap
Get the displayName property: A language map that contains the localized display names as specified in the model definition.- Returns:
- the displayName value.
-
getDescriptionLanguageMap
Get the description property: A language map that contains the localized descriptions as specified in the model definition.- Returns:
- the description value.
-
getModelId
Get the id property: The id of the model as specified in the model definition.- Returns:
- the id value.
-
getUploadedOn
Get the time the model was uploaded to the service.- Returns:
- the uploadTime value.
-
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:
- the decommissioned value.
-
getDtdlModel
Get the model property: The model definition.- Returns:
- the model value.
-