Interface AffectedSession.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AffectedSession.Builder,,AffectedSession> SdkBuilder<AffectedSession.Builder,,AffectedSession> SdkPojo
- Enclosing class:
AffectedSession
@Mutable
@NotThreadSafe
public static interface AffectedSession.Builder
extends SdkPojo, CopyableBuilder<AffectedSession.Builder,AffectedSession>
-
Method Summary
Modifier and TypeMethodDescriptionexplanation(String explanation) An explanation of how the failure manifested in this session.failureSpans(Collection<FailureSpanDetail> failureSpans) The list of spans where failures were detected in this session.failureSpans(Consumer<FailureSpanDetail.Builder>... failureSpans) The list of spans where failures were detected in this session.failureSpans(FailureSpanDetail... failureSpans) The list of spans where failures were detected in this session.The type of fix recommended for this failure.recommendation(String recommendation) The specific fix recommendation for this session.The unique identifier of the affected session.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
-
sessionId
The unique identifier of the affected session.
- Parameters:
sessionId- The unique identifier of the affected session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
explanation
An explanation of how the failure manifested in this session.
- Parameters:
explanation- An explanation of how the failure manifested in this session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixType
The type of fix recommended for this failure.
- Parameters:
fixType- The type of fix recommended for this failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendation
The specific fix recommendation for this session.
- Parameters:
recommendation- The specific fix recommendation for this session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureSpans
The list of spans where failures were detected in this session.
- Parameters:
failureSpans- The list of spans where failures were detected in this session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureSpans
The list of spans where failures were detected in this session.
- Parameters:
failureSpans- The list of spans where failures were detected in this session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureSpans
The list of spans where failures were detected in this session.
This is a convenience method that creates an instance of theFailureSpanDetail.Builderavoiding the need to create one manually viaFailureSpanDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailureSpans(List<FailureSpanDetail>).- Parameters:
failureSpans- a consumer that will call methods onFailureSpanDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-