Interface RecommendationRelatedAnomaly.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendationRelatedAnomaly.Builder,,RecommendationRelatedAnomaly> SdkBuilder<RecommendationRelatedAnomaly.Builder,,RecommendationRelatedAnomaly> SdkPojo
- Enclosing class:
RecommendationRelatedAnomaly
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of an anomaly that generated the insight with this recommendation.resources(Collection<RecommendationRelatedAnomalyResource> resources) An array of objects that represent resources in which DevOps Guru detected anomalous behavior.resources(Consumer<RecommendationRelatedAnomalyResource.Builder>... resources) An array of objects that represent resources in which DevOps Guru detected anomalous behavior.resources(RecommendationRelatedAnomalyResource... resources) An array of objects that represent resources in which DevOps Guru detected anomalous behavior.sourceDetails(Collection<RecommendationRelatedAnomalySourceDetail> sourceDetails) Information about where the anomalous behavior related the recommendation was found.sourceDetails(Consumer<RecommendationRelatedAnomalySourceDetail.Builder>... sourceDetails) Information about where the anomalous behavior related the recommendation was found.sourceDetails(RecommendationRelatedAnomalySourceDetail... sourceDetails) Information about where the anomalous behavior related the recommendation was found.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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 toresources(List<RecommendationRelatedAnomalyResource>).- 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:
-
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 tosourceDetails(List<RecommendationRelatedAnomalySourceDetail>).- 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:
-
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.
-