Interface MetricStat.Builder

  • Method Details

    • metric

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

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

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

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

      MetricStat.Builder period(Integer period)
      Sets the value of the Period property for this object.
      Parameters:
      period - The new value for the Period property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stat

      Sets the value of the Stat property for this object.
      Parameters:
      stat - The new value for the Stat 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: