java.lang.Object
com.azure.resourcemanager.deviceregistry.models.DataPoint

public final class DataPoint extends Object
Defines the data point properties.
  • Constructor Details

    • DataPoint

      public DataPoint()
      Creates an instance of DataPoint class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the data point.
      Returns:
      the name value.
    • withName

      public DataPoint withName(String name)
      Set the name property: The name of the data point.
      Parameters:
      name - the name value to set.
      Returns:
      the DataPoint object itself.
    • dataSource

      public String dataSource()
      Get the dataSource property: The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
      Returns:
      the dataSource value.
    • withDataSource

      public DataPoint withDataSource(String dataSource)
      Set the dataSource property: The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
      Parameters:
      dataSource - the dataSource value to set.
      Returns:
      the DataPoint object itself.
    • capabilityId

      public String capabilityId()
      Get the capabilityId property: The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
      Returns:
      the capabilityId value.
    • withCapabilityId

      public DataPoint withCapabilityId(String capabilityId)
      Set the capabilityId property: The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
      Parameters:
      capabilityId - the capabilityId value to set.
      Returns:
      the DataPoint object itself.
    • observabilityMode

      public DataPointsObservabilityMode observabilityMode()
      Get the observabilityMode property: An indication of how the data point should be mapped to OpenTelemetry.
      Returns:
      the observabilityMode value.
    • withObservabilityMode

      public DataPoint withObservabilityMode(DataPointsObservabilityMode observabilityMode)
      Set the observabilityMode property: An indication of how the data point should be mapped to OpenTelemetry.
      Parameters:
      observabilityMode - the observabilityMode value to set.
      Returns:
      the DataPoint object itself.
    • dataPointConfiguration

      public String dataPointConfiguration()
      Get the dataPointConfiguration property: Protocol-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
      Returns:
      the dataPointConfiguration value.
    • withDataPointConfiguration

      public DataPoint withDataPointConfiguration(String dataPointConfiguration)
      Set the dataPointConfiguration property: Protocol-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
      Parameters:
      dataPointConfiguration - the dataPointConfiguration value to set.
      Returns:
      the DataPoint object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.