Interface UpdateAnomalySubscriptionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateAnomalySubscriptionRequest.Builder,UpdateAnomalySubscriptionRequest>,CostExplorerRequest.Builder,SdkBuilder<UpdateAnomalySubscriptionRequest.Builder,UpdateAnomalySubscriptionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateAnomalySubscriptionRequest
public static interface UpdateAnomalySubscriptionRequest.Builder extends CostExplorerRequest.Builder, SdkPojo, CopyableBuilder<UpdateAnomalySubscriptionRequest.Builder,UpdateAnomalySubscriptionRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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 UpdateAnomalySubscriptionRequest.Builder threshold(Double 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
UpdateAnomalySubscriptionRequest.Builder frequency(String 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:
AnomalySubscriptionFrequency,AnomalySubscriptionFrequency
-
frequency
UpdateAnomalySubscriptionRequest.Builder frequency(AnomalySubscriptionFrequency 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:
AnomalySubscriptionFrequency,AnomalySubscriptionFrequency
-
monitorArnList
UpdateAnomalySubscriptionRequest.Builder monitorArnList(Collection<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.
-
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
UpdateAnomalySubscriptionRequest.Builder subscribers(Collection<Subscriber> 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
UpdateAnomalySubscriptionRequest.Builder subscribers(Subscriber... 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
UpdateAnomalySubscriptionRequest.Builder subscribers(Consumer<Subscriber.Builder>... subscribers)
The update to the subscriber list.
This is a convenience method that creates an instance of theSubscriber.Builderavoiding the need to create one manually viaSubscriber.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#subscribers(List.) - Parameters:
subscribers- a consumer that will call methods onSubscriber.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#subscribers(java.util.Collection)
-
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_ABSOLUTEandANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types areANDandOR. The match optionGREATER_THAN_OR_EQUALis 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" ] } } -
ANDtwo 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" ] } } ] } -
ORtwo 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 areANOMALY_TOTAL_IMPACT_ABSOLUTEandANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types areANDandOR. The match optionGREATER_THAN_OR_EQUALis 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" ] } } -
ANDtwo 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" ] } } ] } -
ORtwo 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_ABSOLUTEandANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types areANDandOR. The match optionGREATER_THAN_OR_EQUALis 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" ] } } -
ANDtwo 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" ] } } ] } -
ORtwo 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.Builderavoiding the need to create one manually viaExpression.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tothresholdExpression(Expression).- Parameters:
thresholdExpression- a consumer that will call methods onExpression.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
thresholdExpression(Expression)
-
-
overrideConfiguration
UpdateAnomalySubscriptionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateAnomalySubscriptionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-