Interface ProactiveAnomaly.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ProactiveAnomaly.Builder,ProactiveAnomaly>,SdkBuilder<ProactiveAnomaly.Builder,ProactiveAnomaly>,SdkPojo
- Enclosing class:
- ProactiveAnomaly
public static interface ProactiveAnomaly.Builder extends SdkPojo, CopyableBuilder<ProactiveAnomaly.Builder,ProactiveAnomaly>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ProactiveAnomaly.BuilderanomalyReportedTimeRange(Consumer<AnomalyReportedTimeRange.Builder> anomalyReportedTimeRange)AnAnomalyReportedTimeRangeobject that specifies the time range between when the anomaly is opened and the time when it is closed.ProactiveAnomaly.BuilderanomalyReportedTimeRange(AnomalyReportedTimeRange anomalyReportedTimeRange)AnAnomalyReportedTimeRangeobject that specifies the time range between when the anomaly is opened and the time when it is closed.ProactiveAnomaly.BuilderanomalyResources(Collection<AnomalyResource> anomalyResources)Information about a resource in which DevOps Guru detected anomalous behavior.ProactiveAnomaly.BuilderanomalyResources(Consumer<AnomalyResource.Builder>... anomalyResources)Information about a resource in which DevOps Guru detected anomalous behavior.ProactiveAnomaly.BuilderanomalyResources(AnomalyResource... anomalyResources)Information about a resource in which DevOps Guru detected anomalous behavior.default ProactiveAnomaly.BuilderanomalyTimeRange(Consumer<AnomalyTimeRange.Builder> anomalyTimeRange)Sets the value of the AnomalyTimeRange property for this object.ProactiveAnomaly.BuilderanomalyTimeRange(AnomalyTimeRange anomalyTimeRange)Sets the value of the AnomalyTimeRange property for this object.ProactiveAnomaly.BuilderassociatedInsightId(String associatedInsightId)The ID of the insight that contains this anomaly.ProactiveAnomaly.Builderdescription(String description)A description of the proactive anomaly.ProactiveAnomaly.Builderid(String id)The ID of a proactive anomaly.ProactiveAnomaly.Builderlimit(Double limit)A threshold that was exceeded by behavior in analyzed resources.default ProactiveAnomaly.BuilderpredictionTimeRange(Consumer<PredictionTimeRange.Builder> predictionTimeRange)Sets the value of the PredictionTimeRange property for this object.ProactiveAnomaly.BuilderpredictionTimeRange(PredictionTimeRange predictionTimeRange)Sets the value of the PredictionTimeRange property for this object.default ProactiveAnomaly.BuilderresourceCollection(Consumer<ResourceCollection.Builder> resourceCollection)Sets the value of the ResourceCollection property for this object.ProactiveAnomaly.BuilderresourceCollection(ResourceCollection resourceCollection)Sets the value of the ResourceCollection property for this object.ProactiveAnomaly.Builderseverity(String severity)The severity of the anomaly.ProactiveAnomaly.Builderseverity(AnomalySeverity severity)The severity of the anomaly.default ProactiveAnomaly.BuildersourceDetails(Consumer<AnomalySourceDetails.Builder> sourceDetails)Details about the source of the analyzed operational data that triggered the anomaly.ProactiveAnomaly.BuildersourceDetails(AnomalySourceDetails sourceDetails)Details about the source of the analyzed operational data that triggered the anomaly.default ProactiveAnomaly.BuildersourceMetadata(Consumer<AnomalySourceMetadata.Builder> sourceMetadata)The metadata for the anomaly.ProactiveAnomaly.BuildersourceMetadata(AnomalySourceMetadata sourceMetadata)The metadata for the anomaly.ProactiveAnomaly.Builderstatus(String status)The status of a proactive anomaly.ProactiveAnomaly.Builderstatus(AnomalyStatus status)The status of a proactive anomaly.ProactiveAnomaly.BuilderupdateTime(Instant updateTime)The time of the anomaly's most recent update.-
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
-
id
ProactiveAnomaly.Builder id(String id)
The ID of a proactive anomaly.
- Parameters:
id- The ID of a proactive anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
ProactiveAnomaly.Builder severity(String severity)
The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide.
- Parameters:
severity- The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnomalySeverity,AnomalySeverity
-
severity
ProactiveAnomaly.Builder severity(AnomalySeverity severity)
The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide.
- Parameters:
severity- The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnomalySeverity,AnomalySeverity
-
status
ProactiveAnomaly.Builder status(String status)
The status of a proactive anomaly.
- Parameters:
status- The status of a proactive anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnomalyStatus,AnomalyStatus
-
status
ProactiveAnomaly.Builder status(AnomalyStatus status)
The status of a proactive anomaly.
- Parameters:
status- The status of a proactive anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnomalyStatus,AnomalyStatus
-
updateTime
ProactiveAnomaly.Builder updateTime(Instant updateTime)
The time of the anomaly's most recent update.
- Parameters:
updateTime- The time of the anomaly's most recent update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyTimeRange
ProactiveAnomaly.Builder anomalyTimeRange(AnomalyTimeRange anomalyTimeRange)
Sets the value of the AnomalyTimeRange property for this object.- Parameters:
anomalyTimeRange- The new value for the AnomalyTimeRange property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyTimeRange
default ProactiveAnomaly.Builder anomalyTimeRange(Consumer<AnomalyTimeRange.Builder> anomalyTimeRange)
Sets the value of the AnomalyTimeRange property for this object. This is a convenience method that creates an instance of theAnomalyTimeRange.Builderavoiding the need to create one manually viaAnomalyTimeRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toanomalyTimeRange(AnomalyTimeRange).- Parameters:
anomalyTimeRange- a consumer that will call methods onAnomalyTimeRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
anomalyTimeRange(AnomalyTimeRange)
-
anomalyReportedTimeRange
ProactiveAnomaly.Builder anomalyReportedTimeRange(AnomalyReportedTimeRange anomalyReportedTimeRange)
An
AnomalyReportedTimeRangeobject that specifies the time range between when the anomaly is opened and the time when it is closed.- Parameters:
anomalyReportedTimeRange- AnAnomalyReportedTimeRangeobject that specifies the time range between when the anomaly is opened and the time when it is closed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyReportedTimeRange
default ProactiveAnomaly.Builder anomalyReportedTimeRange(Consumer<AnomalyReportedTimeRange.Builder> anomalyReportedTimeRange)
An
This is a convenience method that creates an instance of theAnomalyReportedTimeRangeobject that specifies the time range between when the anomaly is opened and the time when it is closed.AnomalyReportedTimeRange.Builderavoiding the need to create one manually viaAnomalyReportedTimeRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toanomalyReportedTimeRange(AnomalyReportedTimeRange).- Parameters:
anomalyReportedTimeRange- a consumer that will call methods onAnomalyReportedTimeRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
anomalyReportedTimeRange(AnomalyReportedTimeRange)
-
predictionTimeRange
ProactiveAnomaly.Builder predictionTimeRange(PredictionTimeRange predictionTimeRange)
Sets the value of the PredictionTimeRange property for this object.- Parameters:
predictionTimeRange- The new value for the PredictionTimeRange property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predictionTimeRange
default ProactiveAnomaly.Builder predictionTimeRange(Consumer<PredictionTimeRange.Builder> predictionTimeRange)
Sets the value of the PredictionTimeRange property for this object. This is a convenience method that creates an instance of thePredictionTimeRange.Builderavoiding the need to create one manually viaPredictionTimeRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topredictionTimeRange(PredictionTimeRange).- Parameters:
predictionTimeRange- a consumer that will call methods onPredictionTimeRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
predictionTimeRange(PredictionTimeRange)
-
sourceDetails
ProactiveAnomaly.Builder sourceDetails(AnomalySourceDetails sourceDetails)
Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is Amazon CloudWatch metrics.
- Parameters:
sourceDetails- Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is Amazon CloudWatch metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDetails
default ProactiveAnomaly.Builder sourceDetails(Consumer<AnomalySourceDetails.Builder> sourceDetails)
Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is Amazon CloudWatch metrics.
This is a convenience method that creates an instance of theAnomalySourceDetails.Builderavoiding the need to create one manually viaAnomalySourceDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceDetails(AnomalySourceDetails).- Parameters:
sourceDetails- a consumer that will call methods onAnomalySourceDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sourceDetails(AnomalySourceDetails)
-
associatedInsightId
ProactiveAnomaly.Builder associatedInsightId(String associatedInsightId)
The ID of the insight that contains this anomaly. An insight is composed of related anomalies.
- Parameters:
associatedInsightId- The ID of the insight that contains this anomaly. An insight is composed of related anomalies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCollection
ProactiveAnomaly.Builder resourceCollection(ResourceCollection resourceCollection)
Sets the value of the ResourceCollection property for this object.- Parameters:
resourceCollection- The new value for the ResourceCollection property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCollection
default ProactiveAnomaly.Builder resourceCollection(Consumer<ResourceCollection.Builder> resourceCollection)
Sets the value of the ResourceCollection property for this object. This is a convenience method that creates an instance of theResourceCollection.Builderavoiding the need to create one manually viaResourceCollection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceCollection(ResourceCollection).- Parameters:
resourceCollection- a consumer that will call methods onResourceCollection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resourceCollection(ResourceCollection)
-
limit
ProactiveAnomaly.Builder limit(Double limit)
A threshold that was exceeded by behavior in analyzed resources. Exceeding this threshold is related to the anomalous behavior that generated this anomaly.
- Parameters:
limit- A threshold that was exceeded by behavior in analyzed resources. Exceeding this threshold is related to the anomalous behavior that generated this anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceMetadata
ProactiveAnomaly.Builder sourceMetadata(AnomalySourceMetadata sourceMetadata)
The metadata for the anomaly.
- Parameters:
sourceMetadata- The metadata for the anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceMetadata
default ProactiveAnomaly.Builder sourceMetadata(Consumer<AnomalySourceMetadata.Builder> sourceMetadata)
The metadata for the anomaly.
This is a convenience method that creates an instance of theAnomalySourceMetadata.Builderavoiding the need to create one manually viaAnomalySourceMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceMetadata(AnomalySourceMetadata).- Parameters:
sourceMetadata- a consumer that will call methods onAnomalySourceMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sourceMetadata(AnomalySourceMetadata)
-
anomalyResources
ProactiveAnomaly.Builder anomalyResources(Collection<AnomalyResource> anomalyResources)
Information about a resource in which DevOps Guru detected anomalous behavior.
- Parameters:
anomalyResources- Information about a resource in which DevOps Guru detected anomalous behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyResources
ProactiveAnomaly.Builder anomalyResources(AnomalyResource... anomalyResources)
Information about a resource in which DevOps Guru detected anomalous behavior.
- Parameters:
anomalyResources- Information about a resource in which DevOps Guru detected anomalous behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyResources
ProactiveAnomaly.Builder anomalyResources(Consumer<AnomalyResource.Builder>... anomalyResources)
Information about a resource in which DevOps Guru detected anomalous behavior.
This is a convenience method that creates an instance of theAnomalyResource.Builderavoiding the need to create one manually viaAnomalyResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#anomalyResources(List.) - Parameters:
anomalyResources- a consumer that will call methods onAnomalyResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#anomalyResources(java.util.Collection)
-
description
ProactiveAnomaly.Builder description(String description)
A description of the proactive anomaly.
- Parameters:
description- A description of the proactive anomaly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-