Interface UserIntentCluster.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UserIntentCluster.Builder,,UserIntentCluster> SdkBuilder<UserIntentCluster.Builder,,UserIntentCluster> SdkPojo
- Enclosing class:
UserIntentCluster
@Mutable
@NotThreadSafe
public static interface UserIntentCluster.Builder
extends SdkPojo, CopyableBuilder<UserIntentCluster.Builder,UserIntentCluster>
-
Method Summary
Modifier and TypeMethodDescriptionaffectedSessionCount(Integer affectedSessionCount) The number of sessions with this user intent.affectedSessions(Collection<UserIntentAffectedSession> affectedSessions) The list of sessions with this user intent.affectedSessions(Consumer<UserIntentAffectedSession.Builder>... affectedSessions) The list of sessions with this user intent.affectedSessions(UserIntentAffectedSession... affectedSessions) The list of sessions with this user intent.The unique identifier of the user intent cluster.description(String description) A description of the user intent pattern.The name of the user intent cluster.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
-
clusterId
The unique identifier of the user intent cluster.
- Parameters:
clusterId- The unique identifier of the user intent cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the user intent cluster.
- Parameters:
name- The name of the user intent cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the user intent pattern.
- Parameters:
description- A description of the user intent pattern.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedSessionCount
The number of sessions with this user intent.
- Parameters:
affectedSessionCount- The number of sessions with this user intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedSessions
The list of sessions with this user intent.
- Parameters:
affectedSessions- The list of sessions with this user intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedSessions
The list of sessions with this user intent.
- Parameters:
affectedSessions- The list of sessions with this user intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedSessions
UserIntentCluster.Builder affectedSessions(Consumer<UserIntentAffectedSession.Builder>... affectedSessions) The list of sessions with this user intent.
This is a convenience method that creates an instance of theUserIntentAffectedSession.Builderavoiding the need to create one manually viaUserIntentAffectedSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaffectedSessions(List<UserIntentAffectedSession>).- Parameters:
affectedSessions- a consumer that will call methods onUserIntentAffectedSession.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-