Class DigitalTwinsModelData

java.lang.Object
com.azure.digitaltwins.core.models.DigitalTwinsModelData

public final class DigitalTwinsModelData extends Object
The DigitalTwinsModelData representing the model and its corresponding metadata.
  • 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

      public Map<String,String> 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

      public Map<String,String> getDescriptionLanguageMap()
      Get the description property: A language map that contains the localized descriptions as specified in the model definition.
      Returns:
      the description value.
    • getModelId

      public String getModelId()
      Get the id property: The id of the model as specified in the model definition.
      Returns:
      the id value.
    • getUploadedOn

      public OffsetDateTime 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

      public String getDtdlModel()
      Get the model property: The model definition.
      Returns:
      the model value.