Interface TrendsMetricsResult.Builder

  • Method Details

    • timestamp

      TrendsMetricsResult.Builder timestamp(Instant timestamp)

      The timestamp for this data point in the findings trend metrics.

      Parameters:
      timestamp - The timestamp for this data point in the findings trend metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trendsValues

      TrendsMetricsResult.Builder trendsValues(TrendsValues trendsValues)

      The finding trend metric values associated with this timestamp, including severity counts.

      Parameters:
      trendsValues - The finding trend metric values associated with this timestamp, including severity counts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trendsValues

      default TrendsMetricsResult.Builder trendsValues(Consumer<TrendsValues.Builder> trendsValues)

      The finding trend metric values associated with this timestamp, including severity counts.

      This is a convenience method that creates an instance of the TrendsValues.Builder avoiding the need to create one manually via TrendsValues.builder().

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

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