Interface RecommendationRelatedAnomalySourceDetail.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendationRelatedAnomalySourceDetail.Builder,,RecommendationRelatedAnomalySourceDetail> SdkBuilder<RecommendationRelatedAnomalySourceDetail.Builder,,RecommendationRelatedAnomalySourceDetail> SdkPojo
- Enclosing class:
RecommendationRelatedAnomalySourceDetail
@Mutable
@NotThreadSafe
public static interface RecommendationRelatedAnomalySourceDetail.Builder
extends SdkPojo, CopyableBuilder<RecommendationRelatedAnomalySourceDetail.Builder,RecommendationRelatedAnomalySourceDetail>
-
Method Summary
Modifier and TypeMethodDescriptioncloudWatchMetrics(Collection<RecommendationRelatedCloudWatchMetricsSourceDetail> cloudWatchMetrics) An array ofCloudWatchMetricsDetailobjects that contains information about the analyzed metrics that displayed anomalous behavior.cloudWatchMetrics(Consumer<RecommendationRelatedCloudWatchMetricsSourceDetail.Builder>... cloudWatchMetrics) An array ofCloudWatchMetricsDetailobjects that contains information about the analyzed metrics that displayed anomalous behavior.cloudWatchMetrics(RecommendationRelatedCloudWatchMetricsSourceDetail... cloudWatchMetrics) An array ofCloudWatchMetricsDetailobjects that contains information about the analyzed metrics that displayed anomalous behavior.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, sdkFieldNameToField, sdkFields
-
Method Details
-
cloudWatchMetrics
RecommendationRelatedAnomalySourceDetail.Builder cloudWatchMetrics(Collection<RecommendationRelatedCloudWatchMetricsSourceDetail> cloudWatchMetrics) An array of
CloudWatchMetricsDetailobjects that contains information about the analyzed metrics that displayed anomalous behavior.- Parameters:
cloudWatchMetrics- An array ofCloudWatchMetricsDetailobjects that contains information about the analyzed metrics that displayed anomalous behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatchMetrics
RecommendationRelatedAnomalySourceDetail.Builder cloudWatchMetrics(RecommendationRelatedCloudWatchMetricsSourceDetail... cloudWatchMetrics) An array of
CloudWatchMetricsDetailobjects that contains information about the analyzed metrics that displayed anomalous behavior.- Parameters:
cloudWatchMetrics- An array ofCloudWatchMetricsDetailobjects that contains information about the analyzed metrics that displayed anomalous behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatchMetrics
RecommendationRelatedAnomalySourceDetail.Builder cloudWatchMetrics(Consumer<RecommendationRelatedCloudWatchMetricsSourceDetail.Builder>... cloudWatchMetrics) An array of
This is a convenience method that creates an instance of theCloudWatchMetricsDetailobjects that contains information about the analyzed metrics that displayed anomalous behavior.RecommendationRelatedCloudWatchMetricsSourceDetail.Builderavoiding the need to create one manually viaRecommendationRelatedCloudWatchMetricsSourceDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocloudWatchMetrics(List<RecommendationRelatedCloudWatchMetricsSourceDetail>).- Parameters:
cloudWatchMetrics- a consumer that will call methods onRecommendationRelatedCloudWatchMetricsSourceDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-