Interface UpdateAnomalyRequest.Builder

  • Method Details

    • anomalyId

      UpdateAnomalyRequest.Builder anomalyId(String anomalyId)

      If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.

      Parameters:
      anomalyId - If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • patternId

      UpdateAnomalyRequest.Builder patternId(String patternId)

      If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.

      Parameters:
      patternId - If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • anomalyDetectorArn

      UpdateAnomalyRequest.Builder anomalyDetectorArn(String anomalyDetectorArn)

      The ARN of the anomaly detector that this operation is to act on.

      Parameters:
      anomalyDetectorArn - The ARN of the anomaly detector that this operation is to act on.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suppressionType

      UpdateAnomalyRequest.Builder suppressionType(String suppressionType)

      Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.

      Parameters:
      suppressionType - Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • suppressionType

      UpdateAnomalyRequest.Builder suppressionType(SuppressionType suppressionType)

      Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.

      Parameters:
      suppressionType - Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • suppressionPeriod

      UpdateAnomalyRequest.Builder suppressionPeriod(SuppressionPeriod suppressionPeriod)

      If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.

      Parameters:
      suppressionPeriod - If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suppressionPeriod

      default UpdateAnomalyRequest.Builder suppressionPeriod(Consumer<SuppressionPeriod.Builder> suppressionPeriod)

      If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.

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

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

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

      Set this to true to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as baseline behavior. However, if similar but more severe occurrences of this behavior occur in the future, those will still be reported as anomalies.

      The default is false

      Parameters:
      baseline - Set this to true to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as baseline behavior. However, if similar but more severe occurrences of this behavior occur in the future, those will still be reported as anomalies.

      The default is false

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      UpdateAnomalyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.