Interface Trend.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Trend.Builder,Trend>, SdkBuilder<Trend.Builder,Trend>, SdkPojo
Enclosing class:
Trend

@Mutable @NotThreadSafe public static interface Trend.Builder extends SdkPojo, CopyableBuilder<Trend.Builder,Trend>
  • Method Details

    • granularity

      Trend.Builder granularity(String granularity)

      The length of each time window in the trend. Possible values are DAY, WEEK, and MONTH.

      Parameters:
      granularity - The length of each time window in the trend. Possible values are DAY, WEEK, and MONTH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • granularity

      Trend.Builder granularity(TimeGranularity granularity)

      The length of each time window in the trend. Possible values are DAY, WEEK, and MONTH.

      Parameters:
      granularity - The length of each time window in the trend. Possible values are DAY, WEEK, and MONTH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startedAt

      Trend.Builder startedAt(Instant startedAt)

      The timestamp at which the period of the trend starts.

      Parameters:
      startedAt - The timestamp at which the period of the trend starts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endedAt

      Trend.Builder endedAt(Instant endedAt)

      The timestamp at which the period of the trend ends.

      Parameters:
      endedAt - The timestamp at which the period of the trend ends.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalFindings

      Trend.Builder totalFindings(Long totalFindings)

      The total number of findings in the period.

      Parameters:
      totalFindings - The total number of findings in the period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • byTimeWindow

      Trend.Builder byTimeWindow(Collection<TimeWindowGroup> byTimeWindow)

      The number of findings in each time window.

      Parameters:
      byTimeWindow - The number of findings in each time window.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • byTimeWindow

      Trend.Builder byTimeWindow(TimeWindowGroup... byTimeWindow)

      The number of findings in each time window.

      Parameters:
      byTimeWindow - The number of findings in each time window.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • byTimeWindow

      Trend.Builder byTimeWindow(Consumer<TimeWindowGroup.Builder>... byTimeWindow)

      The number of findings in each time window.

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

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

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