Interface UpdateAnomalySubscriptionRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<UpdateAnomalySubscriptionRequest.Builder,UpdateAnomalySubscriptionRequest>, CostExplorerRequest.Builder, SdkBuilder<UpdateAnomalySubscriptionRequest.Builder,UpdateAnomalySubscriptionRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
UpdateAnomalySubscriptionRequest

  • Method Details

    • subscriptionArn

      UpdateAnomalySubscriptionRequest.Builder subscriptionArn(String subscriptionArn)

      A cost anomaly subscription Amazon Resource Name (ARN).

      Parameters:
      subscriptionArn - A cost anomaly subscription Amazon Resource Name (ARN).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threshold

      Deprecated.
      Threshold has been deprecated in favor of ThresholdExpression

      (deprecated)

      The update to the threshold value for receiving notifications.

      This field has been deprecated. To update a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

      You can specify either Threshold or ThresholdExpression, but not both.

      Parameters:
      threshold - (deprecated)

      The update to the threshold value for receiving notifications.

      This field has been deprecated. To update a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

      You can specify either Threshold or ThresholdExpression, but not both.

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

      The update to the frequency value that subscribers receive notifications.

      Parameters:
      frequency - The update to the frequency value that subscribers receive notifications.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • frequency

      The update to the frequency value that subscribers receive notifications.

      Parameters:
      frequency - The update to the frequency value that subscribers receive notifications.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • monitorArnList

      A list of cost anomaly monitor ARNs.

      Parameters:
      monitorArnList - A list of cost anomaly monitor ARNs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • monitorArnList

      UpdateAnomalySubscriptionRequest.Builder monitorArnList(String... monitorArnList)

      A list of cost anomaly monitor ARNs.

      Parameters:
      monitorArnList - A list of cost anomaly monitor ARNs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscribers

      The update to the subscriber list.

      Parameters:
      subscribers - The update to the subscriber list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscribers

      The update to the subscriber list.

      Parameters:
      subscribers - The update to the subscriber list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subscribers

      The update to the subscriber list.

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

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

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

      UpdateAnomalySubscriptionRequest.Builder subscriptionName(String subscriptionName)

      The new name of the subscription.

      Parameters:
      subscriptionName - The new name of the subscription.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • thresholdExpression

      UpdateAnomalySubscriptionRequest.Builder thresholdExpression(Expression thresholdExpression)

      The update to the Expression object used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR. The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format.

      You can specify either Threshold or ThresholdExpression, but not both.

      The following are examples of valid ThresholdExpressions:

      • Absolute threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }

      • Percentage threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }

      • AND two thresholds together: { "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }

      • OR two thresholds together: { "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }

      Parameters:
      thresholdExpression - The update to the Expression object used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR. The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format.

      You can specify either Threshold or ThresholdExpression, but not both.

      The following are examples of valid ThresholdExpressions:

      • Absolute threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }

      • Percentage threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }

      • AND two thresholds together: { "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }

      • OR two thresholds together: { "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }

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

      default UpdateAnomalySubscriptionRequest.Builder thresholdExpression(Consumer<Expression.Builder> thresholdExpression)

      The update to the Expression object used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR. The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format.

      You can specify either Threshold or ThresholdExpression, but not both.

      The following are examples of valid ThresholdExpressions:

      • Absolute threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }

      • Percentage threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }

      • AND two thresholds together: { "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }

      • OR two thresholds together: { "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }

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

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

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

      UpdateAnomalySubscriptionRequest.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.