Interface Anomaly.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Anomaly.Builder,Anomaly>,SdkBuilder<Anomaly.Builder,Anomaly>,SdkPojo
- Enclosing class:
- Anomaly
public static interface Anomaly.Builder extends SdkPojo, CopyableBuilder<Anomaly.Builder,Anomaly>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Anomaly.BuilderanomalyEndDate(String anomalyEndDate)The last day the anomaly is detected.Anomaly.BuilderanomalyId(String anomalyId)The unique identifier for the anomaly.default Anomaly.BuilderanomalyScore(Consumer<AnomalyScore.Builder> anomalyScore)The latest and maximum score for the anomaly.Anomaly.BuilderanomalyScore(AnomalyScore anomalyScore)The latest and maximum score for the anomaly.Anomaly.BuilderanomalyStartDate(String anomalyStartDate)The first day the anomaly is detected.Anomaly.BuilderdimensionValue(String dimensionValue)The dimension for the anomaly (for example, an Amazon Web Service in a service monitor).Anomaly.Builderfeedback(String feedback)The feedback value.Anomaly.Builderfeedback(AnomalyFeedbackType feedback)The feedback value.default Anomaly.Builderimpact(Consumer<Impact.Builder> impact)The dollar impact for the anomaly.Anomaly.Builderimpact(Impact impact)The dollar impact for the anomaly.Anomaly.BuildermonitorArn(String monitorArn)The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.Anomaly.BuilderrootCauses(Collection<RootCause> rootCauses)The list of identified root causes for the anomaly.Anomaly.BuilderrootCauses(Consumer<RootCause.Builder>... rootCauses)The list of identified root causes for the anomaly.Anomaly.BuilderrootCauses(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 Detail
-
anomalyId
Anomaly.Builder anomalyId(String 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
Anomaly.Builder anomalyStartDate(String 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
Anomaly.Builder anomalyEndDate(String 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
Anomaly.Builder dimensionValue(String 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
Anomaly.Builder rootCauses(Collection<RootCause> 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
Anomaly.Builder rootCauses(RootCause... 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
Anomaly.Builder rootCauses(Consumer<RootCause.Builder>... rootCauses)
The list of identified root causes for the anomaly.
This is a convenience method that creates an instance of theRootCause.Builderavoiding the need to create one manually viaRootCause.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rootCauses(List.) - 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:
#rootCauses(java.util.Collection)
-
anomalyScore
Anomaly.Builder anomalyScore(AnomalyScore 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
default Anomaly.Builder anomalyScore(Consumer<AnomalyScore.Builder> anomalyScore)
The latest and maximum score for the anomaly.
This is a convenience method that creates an instance of theAnomalyScore.Builderavoiding the need to create one manually viaAnomalyScore.builder().When the
Consumercompletes,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:
anomalyScore(AnomalyScore)
-
impact
Anomaly.Builder impact(Impact 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
default Anomaly.Builder impact(Consumer<Impact.Builder> impact)
The dollar impact for the anomaly.
This is a convenience method that creates an instance of theImpact.Builderavoiding the need to create one manually viaImpact.builder().When the
Consumercompletes,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:
impact(Impact)
-
monitorArn
Anomaly.Builder monitorArn(String 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
Anomaly.Builder feedback(String 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:
AnomalyFeedbackType,AnomalyFeedbackType
-
feedback
Anomaly.Builder feedback(AnomalyFeedbackType 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:
AnomalyFeedbackType,AnomalyFeedbackType
-
-