Interface Observation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Observation.Builder,,Observation> SdkBuilder<Observation.Builder,,Observation> SdkPojo
- Enclosing class:
Observation
-
Method Summary
Modifier and TypeMethodDescriptionThe account the observation belongs to.affectedNodes(Collection<ObservationNode> affectedNodes) The nodes this observation affects.affectedNodes(Consumer<ObservationNode.Builder>... affectedNodes) The nodes this observation affects.affectedNodes(ObservationNode... affectedNodes) The nodes this observation affects.The identifiers of the anomalies this observation correlates.anomalies(Collection<String> anomalies) The identifiers of the anomalies this observation correlates.When the observation was created.observationId(String observationId) The unique identifier of the observation.The explanation of how the correlated anomalies led to this observation.relatedChanges(Collection<RelatedChange> relatedChanges) The changes that the observation cites as related, oldest first.relatedChanges(Consumer<RelatedChange.Builder>... relatedChanges) The changes that the observation cites as related, oldest first.relatedChanges(RelatedChange... relatedChanges) The changes that the observation cites as related, oldest first.The severity assigned to the observation.severity(ObservationSeverity severity) The severity assigned to the observation.The current status of the observation.status(ObservationStatus status) The current status of the observation.A human-readable summary of what was found.A short human-readable headline for the observation.When the observation was last modified.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
-
observationId
The unique identifier of the observation.
- Parameters:
observationId- The unique identifier of the observation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The account the observation belongs to.
- Parameters:
accountId- The account the observation belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
A short human-readable headline for the observation.
- Parameters:
title- A short human-readable headline for the observation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
A human-readable summary of what was found.
- Parameters:
summary- A human-readable summary of what was found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
The severity assigned to the observation.
- Parameters:
severity- The severity assigned to the observation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
severity
The severity assigned to the observation.
- Parameters:
severity- The severity assigned to the observation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the observation.
- Parameters:
status- The current status of the observation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the observation.
- Parameters:
status- The current status of the observation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reasoning
The explanation of how the correlated anomalies led to this observation. It is either plain text, or a JSON array written as a string, where each element is an object with a statement and the anomalyIds that statement is based on, in the order of the explanation. It is the array form only if it parses as a JSON array of objects, each with a statement; any other value is plain text. The value can be empty.
- Parameters:
reasoning- The explanation of how the correlated anomalies led to this observation. It is either plain text, or a JSON array written as a string, where each element is an object with a statement and the anomalyIds that statement is based on, in the order of the explanation. It is the array form only if it parses as a JSON array of objects, each with a statement; any other value is plain text. The value can be empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalies
The identifiers of the anomalies this observation correlates. At most 100 are listed: when it correlates more, the 100 most recent.
- Parameters:
anomalies- The identifiers of the anomalies this observation correlates. At most 100 are listed: when it correlates more, the 100 most recent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalies
The identifiers of the anomalies this observation correlates. At most 100 are listed: when it correlates more, the 100 most recent.
- Parameters:
anomalies- The identifiers of the anomalies this observation correlates. At most 100 are listed: when it correlates more, the 100 most recent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedNodes
The nodes this observation affects.
- Parameters:
affectedNodes- The nodes this observation affects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedNodes
The nodes this observation affects.
- Parameters:
affectedNodes- The nodes this observation affects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedNodes
The nodes this observation affects.
This is a convenience method that creates an instance of theObservationNode.Builderavoiding the need to create one manually viaObservationNode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaffectedNodes(List<ObservationNode>).- Parameters:
affectedNodes- a consumer that will call methods onObservationNode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
When the observation was created.
- Parameters:
createdAt- When the observation was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
When the observation was last modified.
- Parameters:
updatedAt- When the observation was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-