Class DigitalTwinPropertyMetadata

java.lang.Object
com.azure.digitaltwins.core.DigitalTwinPropertyMetadata

public final class DigitalTwinPropertyMetadata extends Object
Contains metadata about changes on properties on a digital twin or component.
  • Constructor Details

    • DigitalTwinPropertyMetadata

      public DigitalTwinPropertyMetadata()
  • Method Details

    • getLastUpdatedOn

      public OffsetDateTime getLastUpdatedOn()
      Gets the date and time the property was last updated.
      Returns:
      The date and time the property was last updated.
    • setLastUpdatedOn

      public DigitalTwinPropertyMetadata setLastUpdatedOn(OffsetDateTime lastUpdatedOn)
      Sets the the date and time the property was last updated.
      Parameters:
      lastUpdatedOn - The date and time the property was last updated.
      Returns:
      The DigitalTwinPropertyMetadata object itself.
    • getSourceTime

      public OffsetDateTime getSourceTime()
      Gets the date and time the value of the property was sourced.
      Returns:
      The date and time the value of the property was last sourced.
    • setSourceTime

      public DigitalTwinPropertyMetadata setSourceTime(OffsetDateTime sourceTime)
      Sets the date and time the value of the property was sourced.
      Parameters:
      sourceTime - The date and time the value of the property was last sourced.
      Returns:
      The DigitalTwinPropertyMetadata object itself.