Interface Anomaly.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Anomaly.Builder,
,Anomaly> SdkBuilder<Anomaly.Builder,
,Anomaly> SdkPojo
- Enclosing class:
Anomaly
-
Method Summary
Modifier and TypeMethodDescriptionanomalyEndDate
(String anomalyEndDate) The last day the anomaly is detected.The unique identifier for the anomaly.default Anomaly.Builder
anomalyScore
(Consumer<AnomalyScore.Builder> anomalyScore) The latest and maximum score for the anomaly.anomalyScore
(AnomalyScore anomalyScore) The latest and maximum score for the anomaly.anomalyStartDate
(String anomalyStartDate) The first day the anomaly is detected.dimensionValue
(String dimensionValue) The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).The feedback value.feedback
(AnomalyFeedbackType feedback) The feedback value.default Anomaly.Builder
impact
(Consumer<Impact.Builder> impact) The dollar impact for the anomaly.The dollar impact for the anomaly.monitorArn
(String monitorArn) The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.rootCauses
(Collection<RootCause> rootCauses) The list of identified root causes for the anomaly.rootCauses
(Consumer<RootCause.Builder>... rootCauses) The list of identified root causes for the anomaly.rootCauses
(RootCause... rootCauses) The list of identified root causes for the anomaly.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, sdkFields
-
Method Details
-
anomalyId
The unique identifier for the anomaly.
- Parameters:
anomalyId
- The unique identifier for the anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyStartDate
The first day the anomaly is detected.
- Parameters:
anomalyStartDate
- The first day the anomaly is detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyEndDate
The last day the anomaly is detected.
- Parameters:
anomalyEndDate
- The last day the anomaly is detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionValue
The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).
- Parameters:
dimensionValue
- The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootCauses
The list of identified root causes for the anomaly.
- Parameters:
rootCauses
- The list of identified root causes for the anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootCauses
The list of identified root causes for the anomaly.
- Parameters:
rootCauses
- The list of identified root causes for the anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootCauses
The list of identified root causes for the anomaly.
This is a convenience method that creates an instance of theRootCause.Builder
avoiding the need to create one manually viaRootCause.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torootCauses(List<RootCause>)
.- Parameters:
rootCauses
- a consumer that will call methods onRootCause.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
anomalyScore
The latest and maximum score for the anomaly.
- Parameters:
anomalyScore
- The latest and maximum score for the anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyScore
The latest and maximum score for the anomaly.
This is a convenience method that creates an instance of theAnomalyScore.Builder
avoiding the need to create one manually viaAnomalyScore.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toanomalyScore(AnomalyScore)
.- Parameters:
anomalyScore
- a consumer that will call methods onAnomalyScore.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
impact
The dollar impact for the anomaly.
- Parameters:
impact
- The dollar impact for the anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impact
The dollar impact for the anomaly.
This is a convenience method that creates an instance of theImpact.Builder
avoiding the need to create one manually viaImpact.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimpact(Impact)
.- Parameters:
impact
- a consumer that will call methods onImpact.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitorArn
The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.
- Parameters:
monitorArn
- The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
feedback
The feedback value.
- Parameters:
feedback
- The feedback value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
feedback
The feedback value.
- Parameters:
feedback
- The feedback value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-