Interface AnomalyInstance.Builder

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

public static interface AnomalyInstance.Builder extends SdkPojo, CopyableBuilder<AnomalyInstance.Builder,AnomalyInstance>
  • Method Details

    • endTime

      AnomalyInstance.Builder endTime(Instant endTime)

      The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

      Parameters:
      endTime - The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The universally unique identifier (UUID) of an instance of an anomaly in a metric.

      Parameters:
      id - The universally unique identifier (UUID) of an instance of an anomaly in a metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTime

      AnomalyInstance.Builder startTime(Instant startTime)

      The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.

      Parameters:
      startTime - The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userFeedback

      AnomalyInstance.Builder userFeedback(UserFeedback userFeedback)

      Feedback type on a specific instance of anomaly submitted by the user.

      Parameters:
      userFeedback - Feedback type on a specific instance of anomaly submitted by the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userFeedback

      default AnomalyInstance.Builder userFeedback(Consumer<UserFeedback.Builder> userFeedback)

      Feedback type on a specific instance of anomaly submitted by the user.

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

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

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