Interface InsightRootCause.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InsightRootCause.Builder,,InsightRootCause> SdkBuilder<InsightRootCause.Builder,,InsightRootCause> SdkPojo
- Enclosing class:
InsightRootCause
@Mutable
@NotThreadSafe
public static interface InsightRootCause.Builder
extends SdkPojo, CopyableBuilder<InsightRootCause.Builder,InsightRootCause>
-
Method Summary
Modifier and TypeMethodDescriptionaffectedSessionCount(Integer affectedSessionCount) The number of distinct sessions affected by the root cause.explanation(String explanation) An explanation of how the root cause leads to the failures in the insight.A generated label for the root cause.sampleSessions(Collection<SampleSession> sampleSessions) A sample of up to 10 sessions affected by the root cause.sampleSessions(Consumer<SampleSession.Builder>... sampleSessions) A sample of up to 10 sessions affected by the root cause.sampleSessions(SampleSession... sampleSessions) A sample of up to 10 sessions affected by the root cause.suggestedFix(String suggestedFix) A suggested change to the agent that addresses the root cause.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
-
name
A generated label for the root cause.
- Parameters:
name- A generated label for the root cause.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
explanation
An explanation of how the root cause leads to the failures in the insight.
- Parameters:
explanation- An explanation of how the root cause leads to the failures in the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedSessionCount
The number of distinct sessions affected by the root cause. A session can be affected by more than one root cause of the same insight.
- Parameters:
affectedSessionCount- The number of distinct sessions affected by the root cause. A session can be affected by more than one root cause of the same insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestedFix
A suggested change to the agent that addresses the root cause.
- Parameters:
suggestedFix- A suggested change to the agent that addresses the root cause.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleSessions
A sample of up to 10 sessions affected by the root cause.
- Parameters:
sampleSessions- A sample of up to 10 sessions affected by the root cause.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleSessions
A sample of up to 10 sessions affected by the root cause.
- Parameters:
sampleSessions- A sample of up to 10 sessions affected by the root cause.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleSessions
A sample of up to 10 sessions affected by the root cause.
This is a convenience method that creates an instance of theSampleSession.Builderavoiding the need to create one manually viaSampleSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosampleSessions(List<SampleSession>).- Parameters:
sampleSessions- a consumer that will call methods onSampleSession.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-