public static interface UpdateAnomalySubscriptionRequest.Builder extends CostExplorerRequest.Builder, SdkPojo, CopyableBuilder<UpdateAnomalySubscriptionRequest.Builder,UpdateAnomalySubscriptionRequest>
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdateAnomalySubscriptionRequest.Builder subscriptionArn(String subscriptionArn)
A cost anomaly subscription Amazon Resource Name (ARN).
subscriptionArn - A cost anomaly subscription Amazon Resource Name (ARN).@Deprecated UpdateAnomalySubscriptionRequest.Builder threshold(Double 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.
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.
UpdateAnomalySubscriptionRequest.Builder frequency(String frequency)
The update to the frequency value that subscribers receive notifications.
frequency - The update to the frequency value that subscribers receive notifications.AnomalySubscriptionFrequency,
AnomalySubscriptionFrequencyUpdateAnomalySubscriptionRequest.Builder frequency(AnomalySubscriptionFrequency frequency)
The update to the frequency value that subscribers receive notifications.
frequency - The update to the frequency value that subscribers receive notifications.AnomalySubscriptionFrequency,
AnomalySubscriptionFrequencyUpdateAnomalySubscriptionRequest.Builder monitorArnList(Collection<String> monitorArnList)
A list of cost anomaly monitor ARNs.
monitorArnList - A list of cost anomaly monitor ARNs.UpdateAnomalySubscriptionRequest.Builder monitorArnList(String... monitorArnList)
A list of cost anomaly monitor ARNs.
monitorArnList - A list of cost anomaly monitor ARNs.UpdateAnomalySubscriptionRequest.Builder subscribers(Collection<Subscriber> subscribers)
The update to the subscriber list.
subscribers - The update to the subscriber list.UpdateAnomalySubscriptionRequest.Builder subscribers(Subscriber... subscribers)
The update to the subscriber list.
subscribers - The update to the subscriber list.UpdateAnomalySubscriptionRequest.Builder subscribers(Consumer<Subscriber.Builder>... subscribers)
The update to the subscriber list.
This is a convenience method that creates an instance of theSubscriber.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.
subscribers - a consumer that will call methods on
Subscriber.Builder#subscribers(java.util.Collection) UpdateAnomalySubscriptionRequest.Builder subscriptionName(String subscriptionName)
The new name of the subscription.
subscriptionName - The new name of the subscription.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. 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.
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" ] } } ] }
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. 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.
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" ] } } ] }
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. 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.
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" ] } } ] }
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).
thresholdExpression - a consumer that will call methods on Expression.BuilderthresholdExpression(Expression)UpdateAnomalySubscriptionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderUpdateAnomalySubscriptionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.