Interface Anomaly.Builder

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

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

    • anomalyId

      Anomaly.Builder anomalyId(String anomalyId)

      The unique identifier for the anomaly.

      Parameters:
      anomalyId - The unique identifier for the anomaly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • anomalyStartDate

      Anomaly.Builder anomalyStartDate(String anomalyStartDate)

      The first day the anomaly is detected.

      Parameters:
      anomalyStartDate - The first day the anomaly is detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • anomalyEndDate

      Anomaly.Builder anomalyEndDate(String anomalyEndDate)

      The last day the anomaly is detected.

      Parameters:
      anomalyEndDate - The last day the anomaly is detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensionValue

      Anomaly.Builder dimensionValue(String dimensionValue)

      The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).

      Parameters:
      dimensionValue - The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rootCauses

      Anomaly.Builder rootCauses(Collection<RootCause> rootCauses)

      The list of identified root causes for the anomaly.

      Parameters:
      rootCauses - The list of identified root causes for the anomaly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rootCauses

      Anomaly.Builder rootCauses(RootCause... rootCauses)

      The list of identified root causes for the anomaly.

      Parameters:
      rootCauses - The list of identified root causes for the anomaly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rootCauses

      Anomaly.Builder rootCauses(Consumer<RootCause.Builder>... rootCauses)

      The list of identified root causes for the anomaly.

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

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

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

      Anomaly.Builder anomalyScore(AnomalyScore anomalyScore)

      The latest and maximum score for the anomaly.

      Parameters:
      anomalyScore - The latest and maximum score for the anomaly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • anomalyScore

      default Anomaly.Builder anomalyScore(Consumer<AnomalyScore.Builder> anomalyScore)

      The latest and maximum score for the anomaly.

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

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

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

      Anomaly.Builder impact(Impact impact)

      The dollar impact for the anomaly.

      Parameters:
      impact - The dollar impact for the anomaly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • impact

      default Anomaly.Builder impact(Consumer<Impact.Builder> impact)

      The dollar impact for the anomaly.

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

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

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

      Anomaly.Builder monitorArn(String monitorArn)

      The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.

      Parameters:
      monitorArn - The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • feedback

      Anomaly.Builder feedback(String feedback)

      The feedback value.

      Parameters:
      feedback - The feedback value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • feedback

      The feedback value.

      Parameters:
      feedback - The feedback value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: