Interface InsightResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InsightResult.Builder,,InsightResult> SdkBuilder<InsightResult.Builder,,InsightResult> SdkPojo
- Enclosing class:
InsightResult
-
Method Summary
Modifier and TypeMethodDescriptionaffectedSessionCount(Integer affectedSessionCount) The number of distinct sessions affected by the insight.The timestamp when the insight was generated.description(String description) A description of the failure pattern that the insight represents.A generated label for the insight.rootCauses(Collection<InsightRootCause> rootCauses) The root causes identified for the insight.rootCauses(Consumer<InsightRootCause.Builder>... rootCauses) The root causes identified for the insight.rootCauses(InsightRootCause... rootCauses) The root causes identified for the insight.sampleSessions(Collection<SampleSession> sampleSessions) A sample of up to 10 sessions affected by the insight.sampleSessions(Consumer<SampleSession.Builder>... sampleSessions) A sample of up to 10 sessions affected by the insight.sampleSessions(SampleSession... sampleSessions) A sample of up to 10 sessions affected by the insight.The type of insight.type(InsightType type) The type of insight.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
-
type
The type of insight.
FAILUREindicates a group of related failures.- Parameters:
type- The type of insight.FAILUREindicates a group of related failures.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of insight.
FAILUREindicates a group of related failures.- Parameters:
type- The type of insight.FAILUREindicates a group of related failures.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
A generated label for the insight. The name is not an identifier and can differ between batch evaluations.
- Parameters:
name- A generated label for the insight. The name is not an identifier and can differ between batch evaluations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the failure pattern that the insight represents.
- Parameters:
description- A description of the failure pattern that the insight represents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the insight was generated.
- Parameters:
createdAt- The timestamp when the insight was generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedSessionCount
The number of distinct sessions affected by the insight.
- Parameters:
affectedSessionCount- The number of distinct sessions affected by the insight.- 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 insight. Returned only when the insight has no root causes. Otherwise, sample sessions are returned for each root cause.
- Parameters:
sampleSessions- A sample of up to 10 sessions affected by the insight. Returned only when the insight has no root causes. Otherwise, sample sessions are returned for each 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 insight. Returned only when the insight has no root causes. Otherwise, sample sessions are returned for each root cause.
- Parameters:
sampleSessions- A sample of up to 10 sessions affected by the insight. Returned only when the insight has no root causes. Otherwise, sample sessions are returned for each 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 insight. Returned only when the insight has no root causes. Otherwise, sample sessions are returned for each 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:
-
rootCauses
The root causes identified for the insight.
- Parameters:
rootCauses- The root causes identified for the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootCauses
The root causes identified for the insight.
- Parameters:
rootCauses- The root causes identified for the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootCauses
The root causes identified for the insight.
This is a convenience method that creates an instance of theInsightRootCause.Builderavoiding the need to create one manually viaInsightRootCause.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torootCauses(List<InsightRootCause>).- Parameters:
rootCauses- a consumer that will call methods onInsightRootCause.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-