Interface UpdateProfileWithAgentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<UpdateProfileWithAgentResponse.Builder,,UpdateProfileWithAgentResponse> HealthLakeResponse.Builder,SdkBuilder<UpdateProfileWithAgentResponse.Builder,,UpdateProfileWithAgentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
UpdateProfileWithAgentResponse
@Mutable
@NotThreadSafe
public static interface UpdateProfileWithAgentResponse.Builder
extends HealthLakeResponse.Builder, SdkPojo, CopyableBuilder<UpdateProfileWithAgentResponse.Builder,UpdateProfileWithAgentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionagentResponse(Consumer<AgentOutputMessage.Builder> agentResponse) The response message from the agent.agentResponse(AgentOutputMessage agentResponse) The response message from the agent.conversationId(String conversationId) The conversation identifier to use for follow-up messages in this conversation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.healthlake.model.HealthLakeResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
agentResponse
The response message from the agent.
- Parameters:
agentResponse- The response message from the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentResponse
default UpdateProfileWithAgentResponse.Builder agentResponse(Consumer<AgentOutputMessage.Builder> agentResponse) The response message from the agent.
This is a convenience method that creates an instance of theAgentOutputMessage.Builderavoiding the need to create one manually viaAgentOutputMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagentResponse(AgentOutputMessage).- Parameters:
agentResponse- a consumer that will call methods onAgentOutputMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conversationId
The conversation identifier to use for follow-up messages in this conversation.
- Parameters:
conversationId- The conversation identifier to use for follow-up messages in this conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-