Class AgentCollaborationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.AgentCollaborationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AgentCollaborationConfig>
- Enclosing interface:
AgentCollaborationConfig
@Stability(Experimental)
public static final class AgentCollaborationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AgentCollaborationConfig>
A builder for
AgentCollaborationConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.collaborators(List<? extends AgentCollaborator> collaborators) Sets the value ofAgentCollaborationConfig.getCollaborators()type(AgentCollaboratorType type) Sets the value ofAgentCollaborationConfig.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collaborators
@Stability(Experimental) public AgentCollaborationConfig.Builder collaborators(List<? extends AgentCollaborator> collaborators) Sets the value ofAgentCollaborationConfig.getCollaborators()- Parameters:
collaborators- Collaborators that this agent will work with. This parameter is required.- Returns:
this
-
type
Sets the value ofAgentCollaborationConfig.getType()- Parameters:
type- The collaboration type for the agent. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AgentCollaborationConfig>- Returns:
- a new instance of
AgentCollaborationConfig - Throws:
NullPointerException- if any required attribute was not provided
-