Interface Anomaly.Builder

    • Method Detail

      • 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).

        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:
        #rootCauses(java.util.Collection)
      • 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.
      • 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.
      • 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.