Class AggregatedDataPoint.Builder<V,A extends AggregationType>

java.lang.Object
com.inductiveautomation.historian.common.model.data.AggregatedDataPoint.Builder<V,A>
Type Parameters:
V - The type of the value.
A - The type of the aggregation, extending AggregationType.
Enclosing class:
AggregatedDataPoint<V,A extends AggregationType>

public static final class AggregatedDataPoint.Builder<V,A extends AggregationType> extends Object
Builder class for constructing AggregatedDataPoint instances.
  • Method Details

    • value

      public AggregatedDataPoint.Builder<V,A> value(V value)
      Sets the value of the data point.
      Parameters:
      value - The value to set.
      Returns:
      The current Builder instance.
    • quality

      public AggregatedDataPoint.Builder<V,A> quality(QualityCode quality)
      Sets the quality of the data point.
      Parameters:
      quality - The quality to set.
      Returns:
      The current Builder instance.
    • timestamp

      public AggregatedDataPoint.Builder<V,A> timestamp(Instant timestamp)
      Sets the timestamp of the data point.
      Parameters:
      timestamp - The timestamp to set.
      Returns:
      The current Builder instance.
    • snapshotTimestamp

      public AggregatedDataPoint.Builder<V,A> snapshotTimestamp(Instant snapshotTimestamp)
      Sets the snapshot timestamp of the data point.
      Parameters:
      snapshotTimestamp - The snapshot timestamp to set.
      Returns:
      The current Builder instance.
    • build

      public AggregatedDataPoint<V,A> build()
      Builds a new AggregatedDataPoint instance.
      Returns:
      A new AggregatedDataPoint instance.
      Throws:
      IllegalStateException - If any required fields are missing.