Interface UpdateAnomalyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchLogsRequest.Builder
,CopyableBuilder<UpdateAnomalyRequest.Builder,
,UpdateAnomalyRequest> SdkBuilder<UpdateAnomalyRequest.Builder,
,UpdateAnomalyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateAnomalyRequest
-
Method Summary
Modifier and TypeMethodDescriptionanomalyDetectorArn
(String anomalyDetectorArn) The ARN of the anomaly detector that this operation is to act on.If you are suppressing or unsuppressing an anomaly, specify its unique ID here.Set this totrue
to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.If you are suppressing or unsuppressing an pattern, specify its unique ID here.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.suppressionPeriod
(SuppressionPeriod suppressionPeriod) If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.suppressionType
(String suppressionType) Use this to specify whether the suppression to be temporary or infinite.suppressionType
(SuppressionType suppressionType) Use this to specify whether the suppression to be temporary or infinite.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
Use this to specify whether the suppression to be temporary or infinite. If you specify
LIMITED
, you must also specify asuppressionPeriod
. If you specifyINFINITE
, any value forsuppressionPeriod
is ignored.- Parameters:
suppressionType
- Use this to specify whether the suppression to be temporary or infinite. If you specifyLIMITED
, you must also specify asuppressionPeriod
. If you specifyINFINITE
, any value forsuppressionPeriod
is ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
suppressionType
Use this to specify whether the suppression to be temporary or infinite. If you specify
LIMITED
, you must also specify asuppressionPeriod
. If you specifyINFINITE
, any value forsuppressionPeriod
is ignored.- Parameters:
suppressionType
- Use this to specify whether the suppression to be temporary or infinite. If you specifyLIMITED
, you must also specify asuppressionPeriod
. If you specifyINFINITE
, any value forsuppressionPeriod
is ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 theSuppressionPeriod.Builder
avoiding the need to create one manually viaSuppressionPeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuppressionPeriod(SuppressionPeriod)
.- Parameters:
suppressionPeriod
- a consumer that will call methods onSuppressionPeriod.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 totrue
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 interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateAnomalyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-