Interface RecommendationRelatedAnomaly.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendationRelatedAnomaly.Builder,RecommendationRelatedAnomaly>,SdkBuilder<RecommendationRelatedAnomaly.Builder,RecommendationRelatedAnomaly>,SdkPojo
- Enclosing class:
- RecommendationRelatedAnomaly
public static interface RecommendationRelatedAnomaly.Builder extends SdkPojo, CopyableBuilder<RecommendationRelatedAnomaly.Builder,RecommendationRelatedAnomaly>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecommendationRelatedAnomaly.BuilderanomalyId(String anomalyId)The ID of an anomaly that generated the insight with this recommendation.RecommendationRelatedAnomaly.Builderresources(Collection<RecommendationRelatedAnomalyResource> resources)An array of objects that represent resources in which DevOps Guru detected anomalous behavior.RecommendationRelatedAnomaly.Builderresources(Consumer<RecommendationRelatedAnomalyResource.Builder>... resources)An array of objects that represent resources in which DevOps Guru detected anomalous behavior.RecommendationRelatedAnomaly.Builderresources(RecommendationRelatedAnomalyResource... resources)An array of objects that represent resources in which DevOps Guru detected anomalous behavior.RecommendationRelatedAnomaly.BuildersourceDetails(Collection<RecommendationRelatedAnomalySourceDetail> sourceDetails)Information about where the anomalous behavior related the recommendation was found.RecommendationRelatedAnomaly.BuildersourceDetails(Consumer<RecommendationRelatedAnomalySourceDetail.Builder>... sourceDetails)Information about where the anomalous behavior related the recommendation was found.RecommendationRelatedAnomaly.BuildersourceDetails(RecommendationRelatedAnomalySourceDetail... sourceDetails)Information about where the anomalous behavior related the recommendation was found.-
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
-
resources
RecommendationRelatedAnomaly.Builder resources(Collection<RecommendationRelatedAnomalyResource> resources)
An array of objects that represent resources in which DevOps Guru detected anomalous behavior. Each object contains the name and type of the resource.
- Parameters:
resources- An array of objects that represent resources in which DevOps Guru detected anomalous behavior. Each object contains the name and type of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
RecommendationRelatedAnomaly.Builder resources(RecommendationRelatedAnomalyResource... resources)
An array of objects that represent resources in which DevOps Guru detected anomalous behavior. Each object contains the name and type of the resource.
- Parameters:
resources- An array of objects that represent resources in which DevOps Guru detected anomalous behavior. Each object contains the name and type of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
RecommendationRelatedAnomaly.Builder resources(Consumer<RecommendationRelatedAnomalyResource.Builder>... resources)
An array of objects that represent resources in which DevOps Guru detected anomalous behavior. Each object contains the name and type of the resource.
This is a convenience method that creates an instance of theRecommendationRelatedAnomalyResource.Builderavoiding the need to create one manually viaRecommendationRelatedAnomalyResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resources(List.) - Parameters:
resources- a consumer that will call methods onRecommendationRelatedAnomalyResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resources(java.util.Collection)
-
sourceDetails
RecommendationRelatedAnomaly.Builder sourceDetails(Collection<RecommendationRelatedAnomalySourceDetail> sourceDetails)
Information about where the anomalous behavior related the recommendation was found. For example, details in Amazon CloudWatch metrics.
- Parameters:
sourceDetails- Information about where the anomalous behavior related the recommendation was found. For example, details in Amazon CloudWatch metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDetails
RecommendationRelatedAnomaly.Builder sourceDetails(RecommendationRelatedAnomalySourceDetail... sourceDetails)
Information about where the anomalous behavior related the recommendation was found. For example, details in Amazon CloudWatch metrics.
- Parameters:
sourceDetails- Information about where the anomalous behavior related the recommendation was found. For example, details in Amazon CloudWatch metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDetails
RecommendationRelatedAnomaly.Builder sourceDetails(Consumer<RecommendationRelatedAnomalySourceDetail.Builder>... sourceDetails)
Information about where the anomalous behavior related the recommendation was found. For example, details in Amazon CloudWatch metrics.
This is a convenience method that creates an instance of theRecommendationRelatedAnomalySourceDetail.Builderavoiding the need to create one manually viaRecommendationRelatedAnomalySourceDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sourceDetails(List.) - Parameters:
sourceDetails- a consumer that will call methods onRecommendationRelatedAnomalySourceDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sourceDetails(java.util.Collection)
-
anomalyId
RecommendationRelatedAnomaly.Builder anomalyId(String anomalyId)
The ID of an anomaly that generated the insight with this recommendation.
- Parameters:
anomalyId- The ID of an anomaly that generated the insight with this recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-