Interface Agent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Agent.Builder,,Agent> SdkBuilder<Agent.Builder,,Agent> SdkPojo
- Enclosing class:
Agent
-
Method Summary
Modifier and TypeMethodDescriptionactionConnectors(String... actionConnectors) The Amazon Resource Names (ARNs) of the action connectors attached to the agent.actionConnectors(Collection<String> actionConnectors) The Amazon Resource Names (ARNs) of the action connectors attached to the agent.The unique identifier for the agent.agentLifecycle(String agentLifecycle) The lifecycle state of the agent.agentLifecycle(AgentLifecycle agentLifecycle) The lifecycle state of the agent.agentStatus(String agentStatus) The status of the agent.agentStatus(AgentStatus agentStatus) The status of the agent.The Amazon Resource Name (ARN) of the agent.The date and time that the agent was created.The identity of the user who created the agent.default Agent.BuildercustomPromptInterface(Consumer<CustomPromptInterface.Builder> customPromptInterface) The custom prompt interface configuration for the agent.customPromptInterface(CustomPromptInterface customPromptInterface) The custom prompt interface configuration for the agent.description(String description) A description of the agent.errorMessage(String errorMessage) An error message associated with the agent, if applicable.The icon identifier for the agent.The name of the agent.The Amazon Resource Names (ARNs) of the spaces attached to the agent.spaces(Collection<String> spaces) The Amazon Resource Names (ARNs) of the spaces attached to the agent.starterPrompts(String... starterPrompts) A list of starter prompts that are displayed to users when they begin interacting with the agent.starterPrompts(Collection<String> starterPrompts) A list of starter prompts that are displayed to users when they begin interacting with the agent.The date and time that the agent was last updated.welcomeMessage(String welcomeMessage) The welcome message that is displayed when a user starts a conversation with the agent.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
-
spaces
The Amazon Resource Names (ARNs) of the spaces attached to the agent.
- Parameters:
spaces- The Amazon Resource Names (ARNs) of the spaces attached to the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spaces
The Amazon Resource Names (ARNs) of the spaces attached to the agent.
- Parameters:
spaces- The Amazon Resource Names (ARNs) of the spaces attached to the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionConnectors
The Amazon Resource Names (ARNs) of the action connectors attached to the agent.
- Parameters:
actionConnectors- The Amazon Resource Names (ARNs) of the action connectors attached to the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionConnectors
The Amazon Resource Names (ARNs) of the action connectors attached to the agent.
- Parameters:
actionConnectors- The Amazon Resource Names (ARNs) of the action connectors attached to the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the agent.
- Parameters:
description- A description of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iconId
The icon identifier for the agent.
- Parameters:
iconId- The icon identifier for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the agent.
- Parameters:
name- The name of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
starterPrompts
A list of starter prompts that are displayed to users when they begin interacting with the agent.
- Parameters:
starterPrompts- A list of starter prompts that are displayed to users when they begin interacting with the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
starterPrompts
A list of starter prompts that are displayed to users when they begin interacting with the agent.
- Parameters:
starterPrompts- A list of starter prompts that are displayed to users when they begin interacting with the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
welcomeMessage
The welcome message that is displayed when a user starts a conversation with the agent.
- Parameters:
welcomeMessage- The welcome message that is displayed when a user starts a conversation with the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the agent.
- Parameters:
arn- The Amazon Resource Name (ARN) of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentId
The unique identifier for the agent.
- Parameters:
agentId- The unique identifier for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentLifecycle
The lifecycle state of the agent. Valid values are
PREVIEWandPUBLISHED.- Parameters:
agentLifecycle- The lifecycle state of the agent. Valid values arePREVIEWandPUBLISHED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentLifecycle
The lifecycle state of the agent. Valid values are
PREVIEWandPUBLISHED.- Parameters:
agentLifecycle- The lifecycle state of the agent. Valid values arePREVIEWandPUBLISHED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentStatus
The status of the agent.
- Parameters:
agentStatus- The status of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentStatus
The status of the agent.
- Parameters:
agentStatus- The status of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The date and time that the agent was created.
- Parameters:
createdAt- The date and time that the agent was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creator
The identity of the user who created the agent.
- Parameters:
creator- The identity of the user who created the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customPromptInterface
The custom prompt interface configuration for the agent.
- Parameters:
customPromptInterface- The custom prompt interface configuration for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customPromptInterface
default Agent.Builder customPromptInterface(Consumer<CustomPromptInterface.Builder> customPromptInterface) The custom prompt interface configuration for the agent.
This is a convenience method that creates an instance of theCustomPromptInterface.Builderavoiding the need to create one manually viaCustomPromptInterface.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomPromptInterface(CustomPromptInterface).- Parameters:
customPromptInterface- a consumer that will call methods onCustomPromptInterface.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorMessage
An error message associated with the agent, if applicable.
- Parameters:
errorMessage- An error message associated with the agent, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time that the agent was last updated.
- Parameters:
updatedAt- The date and time that the agent was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-