Interface UpdateAnomalyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchLogsRequest.Builder,CopyableBuilder<UpdateAnomalyRequest.Builder,UpdateAnomalyRequest>,SdkBuilder<UpdateAnomalyRequest.Builder,UpdateAnomalyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateAnomalyRequest
public static interface UpdateAnomalyRequest.Builder extends CloudWatchLogsRequest.Builder, SdkPojo, CopyableBuilder<UpdateAnomalyRequest.Builder,UpdateAnomalyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateAnomalyRequest.BuilderanomalyDetectorArn(String anomalyDetectorArn)The ARN of the anomaly detector that this operation is to act on.UpdateAnomalyRequest.BuilderanomalyId(String anomalyId)If you are suppressing or unsuppressing an anomaly, specify its unique ID here.UpdateAnomalyRequest.Builderbaseline(Boolean baseline)Set this totrueto prevent CloudWatch Logs from displaying this behavior as an anomaly in the future.UpdateAnomalyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateAnomalyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateAnomalyRequest.BuilderpatternId(String patternId)If you are suppressing or unsuppressing an pattern, specify its unique ID here.default UpdateAnomalyRequest.BuildersuppressionPeriod(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.UpdateAnomalyRequest.BuildersuppressionPeriod(SuppressionPeriod suppressionPeriod)If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.UpdateAnomalyRequest.BuildersuppressionType(String suppressionType)Use this to specify whether the suppression to be temporary or infinite.UpdateAnomalyRequest.BuildersuppressionType(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 Detail
-
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 asuppressionPeriod. If you specifyINFINITE, any value forsuppressionPeriodis 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 forsuppressionPeriodis ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SuppressionType,SuppressionType
-
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 asuppressionPeriod. If you specifyINFINITE, any value forsuppressionPeriodis 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 forsuppressionPeriodis ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SuppressionType,SuppressionType
-
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 theSuppressionPeriod.Builderavoiding the need to create one manually viaSuppressionPeriod.builder().When the
Consumercompletes,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:
suppressionPeriod(SuppressionPeriod)
-
baseline
UpdateAnomalyRequest.Builder baseline(Boolean baseline)
Set this to
trueto 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 totrueto 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateAnomalyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-