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.Builderinstances(Collection<AnomalyInstance> instances)A list of the instances of the detected anomalies during the requested period.Anomaly.Builderinstances(Consumer<AnomalyInstance.Builder>... instances)A list of the instances of the detected anomalies during the requested period.Anomaly.Builderinstances(AnomalyInstance... instances)A list of the instances of the detected anomalies during the requested period.default Anomaly.Buildermetric(Consumer<Metric.Builder> metric)Details about the metric that the analysis used when it detected the anomaly.Anomaly.Buildermetric(Metric metric)Details about the metric that the analysis used when it detected the anomaly.Anomaly.Builderreason(String reason)The reason for which metric was flagged as anomalous.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
instances
Anomaly.Builder instances(Collection<AnomalyInstance> instances)
A list of the instances of the detected anomalies during the requested period.
- Parameters:
instances- A list of the instances of the detected anomalies during the requested period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
Anomaly.Builder instances(AnomalyInstance... instances)
A list of the instances of the detected anomalies during the requested period.
- Parameters:
instances- A list of the instances of the detected anomalies during the requested period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
Anomaly.Builder instances(Consumer<AnomalyInstance.Builder>... instances)
A list of the instances of the detected anomalies during the requested period.
This is a convenience method that creates an instance of theAnomalyInstance.Builderavoiding the need to create one manually viaAnomalyInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#instances(List.) - Parameters:
instances- a consumer that will call methods onAnomalyInstance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#instances(java.util.Collection)
-
metric
Anomaly.Builder metric(Metric metric)
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
- Parameters:
metric- Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metric
default Anomaly.Builder metric(Consumer<Metric.Builder> metric)
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
This is a convenience method that creates an instance of theMetric.Builderavoiding the need to create one manually viaMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometric(Metric).- Parameters:
metric- a consumer that will call methods onMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metric(Metric)
-
reason
Anomaly.Builder reason(String reason)
The reason for which metric was flagged as anomalous.
- Parameters:
reason- The reason for which metric was flagged as anomalous.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-