Interface MetricDatum.Builder

  • Method Details

    • metricName

      MetricDatum.Builder metricName(String metricName)
      Sets the value of the MetricName property for this object.
      Parameters:
      metricName - The new value for the MetricName property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      MetricDatum.Builder dimensions(Collection<Dimension> dimensions)
      Sets the value of the Dimensions property for this object.
      Parameters:
      dimensions - The new value for the Dimensions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      MetricDatum.Builder dimensions(Dimension... dimensions)
      Sets the value of the Dimensions property for this object.
      Parameters:
      dimensions - The new value for the Dimensions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      MetricDatum.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
      Sets the value of the Dimensions property for this object. This is a convenience method that creates an instance of the Dimension.Builder avoiding the need to create one manually via Dimension.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dimensions(List<Dimension>).

      Parameters:
      dimensions - a consumer that will call methods on Dimension.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timestamp

      MetricDatum.Builder timestamp(Instant timestamp)
      Sets the value of the Timestamp property for this object.
      Parameters:
      timestamp - The new value for the Timestamp property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      Sets the value of the Value property for this object.
      Parameters:
      value - The new value for the Value property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statisticValues

      MetricDatum.Builder statisticValues(StatisticSet statisticValues)
      Sets the value of the StatisticValues property for this object.
      Parameters:
      statisticValues - The new value for the StatisticValues property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statisticValues

      default MetricDatum.Builder statisticValues(Consumer<StatisticSet.Builder> statisticValues)
      Sets the value of the StatisticValues property for this object. This is a convenience method that creates an instance of the StatisticSet.Builder avoiding the need to create one manually via StatisticSet.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to statisticValues(StatisticSet).

      Parameters:
      statisticValues - a consumer that will call methods on StatisticSet.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • values

      Sets the value of the Values property for this object.
      Parameters:
      values - The new value for the Values property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      MetricDatum.Builder values(Double... values)
      Sets the value of the Values property for this object.
      Parameters:
      values - The new value for the Values property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • counts

      Sets the value of the Counts property for this object.
      Parameters:
      counts - The new value for the Counts property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • counts

      MetricDatum.Builder counts(Double... counts)
      Sets the value of the Counts property for this object.
      Parameters:
      counts - The new value for the Counts property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unit

      Sets the value of the Unit property for this object.
      Parameters:
      unit - The new value for the Unit property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unit

      Sets the value of the Unit property for this object.
      Parameters:
      unit - The new value for the Unit property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • storageResolution

      MetricDatum.Builder storageResolution(Integer storageResolution)
      Sets the value of the StorageResolution property for this object.
      Parameters:
      storageResolution - The new value for the StorageResolution property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.