Interface SampleSession.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SampleSession.Builder,,SampleSession> SdkBuilder<SampleSession.Builder,,SampleSession> SdkPojo
- Enclosing class:
SampleSession
@Mutable
@NotThreadSafe
public static interface SampleSession.Builder
extends SdkPojo, CopyableBuilder<SampleSession.Builder,SampleSession>
-
Method Summary
Modifier and TypeMethodDescriptionfindings(Collection<SessionFinding> findings) The failures found in the session that belong to the insight or root cause, up to 10.findings(Consumer<SessionFinding.Builder>... findings) The failures found in the session that belong to the insight or root cause, up to 10.findings(SessionFinding... findings) The failures found in the session that belong to the insight or root cause, up to 10.lastSeenAt(Instant lastSeenAt) The latest timestamp observed for the session in the batch evaluation input.The unique identifier of the 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 session.
- Parameters:
sessionId- The unique identifier of the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastSeenAt
The latest timestamp observed for the session in the batch evaluation input.
- Parameters:
lastSeenAt- The latest timestamp observed for the session in the batch evaluation input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
The failures found in the session that belong to the insight or root cause, up to 10.
- Parameters:
findings- The failures found in the session that belong to the insight or root cause, up to 10.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
The failures found in the session that belong to the insight or root cause, up to 10.
- Parameters:
findings- The failures found in the session that belong to the insight or root cause, up to 10.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
The failures found in the session that belong to the insight or root cause, up to 10.
This is a convenience method that creates an instance of theSessionFinding.Builderavoiding the need to create one manually viaSessionFinding.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofindings(List<SessionFinding>).- Parameters:
findings- a consumer that will call methods onSessionFinding.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-