Class CfnAgentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnAgentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgentMixinProps>
- Enclosing interface:
CfnAgentMixinProps
@Stability(Stable)
public static final class CfnAgentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgentMixinProps>
A builder for
CfnAgentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionGroups(List<? extends Object> actionGroups) Sets the value ofCfnAgentMixinProps.getActionGroups()actionGroups(IResolvable actionGroups) Sets the value ofCfnAgentMixinProps.getActionGroups()agentCollaboration(String agentCollaboration) Sets the value ofCfnAgentMixinProps.getAgentCollaboration()agentCollaborators(List<? extends Object> agentCollaborators) Sets the value ofCfnAgentMixinProps.getAgentCollaborators()agentCollaborators(IResolvable agentCollaborators) Sets the value ofCfnAgentMixinProps.getAgentCollaborators()Sets the value ofCfnAgentMixinProps.getAgentName()agentResourceRoleArn(String agentResourceRoleArn) Sets the value ofCfnAgentMixinProps.getAgentResourceRoleArn()autoPrepare(Boolean autoPrepare) Sets the value ofCfnAgentMixinProps.getAutoPrepare()autoPrepare(IResolvable autoPrepare) Sets the value ofCfnAgentMixinProps.getAutoPrepare()build()Builds the configured instance.customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnAgentMixinProps.getCustomerEncryptionKeyArn()customOrchestration(CfnAgentPropsMixin.CustomOrchestrationProperty customOrchestration) Sets the value ofCfnAgentMixinProps.getCustomOrchestration()customOrchestration(IResolvable customOrchestration) Sets the value ofCfnAgentMixinProps.getCustomOrchestration()description(String description) Sets the value ofCfnAgentMixinProps.getDescription()foundationModel(String foundationModel) Sets the value ofCfnAgentMixinProps.getFoundationModel()guardrailConfiguration(CfnAgentPropsMixin.GuardrailConfigurationProperty guardrailConfiguration) Sets the value ofCfnAgentMixinProps.getGuardrailConfiguration()guardrailConfiguration(IResolvable guardrailConfiguration) Sets the value ofCfnAgentMixinProps.getGuardrailConfiguration()idleSessionTtlInSeconds(Number idleSessionTtlInSeconds) Sets the value ofCfnAgentMixinProps.getIdleSessionTtlInSeconds()instruction(String instruction) Sets the value ofCfnAgentMixinProps.getInstruction()knowledgeBases(List<? extends Object> knowledgeBases) Sets the value ofCfnAgentMixinProps.getKnowledgeBases()knowledgeBases(IResolvable knowledgeBases) Sets the value ofCfnAgentMixinProps.getKnowledgeBases()memoryConfiguration(CfnAgentPropsMixin.MemoryConfigurationProperty memoryConfiguration) Sets the value ofCfnAgentMixinProps.getMemoryConfiguration()memoryConfiguration(IResolvable memoryConfiguration) Sets the value ofCfnAgentMixinProps.getMemoryConfiguration()orchestrationType(String orchestrationType) Sets the value ofCfnAgentMixinProps.getOrchestrationType()promptOverrideConfiguration(CfnAgentPropsMixin.PromptOverrideConfigurationProperty promptOverrideConfiguration) Sets the value ofCfnAgentMixinProps.getPromptOverrideConfiguration()promptOverrideConfiguration(IResolvable promptOverrideConfiguration) Sets the value ofCfnAgentMixinProps.getPromptOverrideConfiguration()skipResourceInUseCheckOnDelete(Boolean skipResourceInUseCheckOnDelete) Sets the value ofCfnAgentMixinProps.getSkipResourceInUseCheckOnDelete()skipResourceInUseCheckOnDelete(IResolvable skipResourceInUseCheckOnDelete) Sets the value ofCfnAgentMixinProps.getSkipResourceInUseCheckOnDelete()Sets the value ofCfnAgentMixinProps.getTags()testAliasTags(Map<String, String> testAliasTags) Sets the value ofCfnAgentMixinProps.getTestAliasTags()testAliasTags(IResolvable testAliasTags) Sets the value ofCfnAgentMixinProps.getTestAliasTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionGroups
Sets the value ofCfnAgentMixinProps.getActionGroups()- Parameters:
actionGroups- The action groups that belong to an agent.- Returns:
this
-
actionGroups
@Stability(Stable) public CfnAgentMixinProps.Builder actionGroups(List<? extends Object> actionGroups) Sets the value ofCfnAgentMixinProps.getActionGroups()- Parameters:
actionGroups- The action groups that belong to an agent.- Returns:
this
-
agentCollaboration
Sets the value ofCfnAgentMixinProps.getAgentCollaboration()- Parameters:
agentCollaboration- The agent's collaboration settings.- Returns:
this
-
agentCollaborators
@Stability(Stable) public CfnAgentMixinProps.Builder agentCollaborators(IResolvable agentCollaborators) Sets the value ofCfnAgentMixinProps.getAgentCollaborators()- Parameters:
agentCollaborators- List of Agent Collaborators.- Returns:
this
-
agentCollaborators
@Stability(Stable) public CfnAgentMixinProps.Builder agentCollaborators(List<? extends Object> agentCollaborators) Sets the value ofCfnAgentMixinProps.getAgentCollaborators()- Parameters:
agentCollaborators- List of Agent Collaborators.- Returns:
this
-
agentName
Sets the value ofCfnAgentMixinProps.getAgentName()- Parameters:
agentName- The name of the agent.- Returns:
this
-
agentResourceRoleArn
@Stability(Stable) public CfnAgentMixinProps.Builder agentResourceRoleArn(String agentResourceRoleArn) Sets the value ofCfnAgentMixinProps.getAgentResourceRoleArn()- Parameters:
agentResourceRoleArn- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.- Returns:
this
-
autoPrepare
Sets the value ofCfnAgentMixinProps.getAutoPrepare()- Parameters:
autoPrepare- Specifies whether to automatically update theDRAFTversion of the agent after making changes to the agent. TheDRAFTversion can be continually iterated upon during internal development. By default, this value isfalse.- Returns:
this
-
autoPrepare
Sets the value ofCfnAgentMixinProps.getAutoPrepare()- Parameters:
autoPrepare- Specifies whether to automatically update theDRAFTversion of the agent after making changes to the agent. TheDRAFTversion can be continually iterated upon during internal development. By default, this value isfalse.- Returns:
this
-
customerEncryptionKeyArn
@Stability(Stable) public CfnAgentMixinProps.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnAgentMixinProps.getCustomerEncryptionKeyArn()- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the AWS key that encrypts the agent.- Returns:
this
-
customOrchestration
@Stability(Stable) public CfnAgentMixinProps.Builder customOrchestration(IResolvable customOrchestration) Sets the value ofCfnAgentMixinProps.getCustomOrchestration()- Parameters:
customOrchestration- Contains custom orchestration configurations for the agent.- Returns:
this
-
customOrchestration
@Stability(Stable) public CfnAgentMixinProps.Builder customOrchestration(CfnAgentPropsMixin.CustomOrchestrationProperty customOrchestration) Sets the value ofCfnAgentMixinProps.getCustomOrchestration()- Parameters:
customOrchestration- Contains custom orchestration configurations for the agent.- Returns:
this
-
description
Sets the value ofCfnAgentMixinProps.getDescription()- Parameters:
description- The description of the agent.- Returns:
this
-
foundationModel
Sets the value ofCfnAgentMixinProps.getFoundationModel()- Parameters:
foundationModel- The foundation model used for orchestration by the agent.- Returns:
this
-
guardrailConfiguration
@Stability(Stable) public CfnAgentMixinProps.Builder guardrailConfiguration(IResolvable guardrailConfiguration) Sets the value ofCfnAgentMixinProps.getGuardrailConfiguration()- Parameters:
guardrailConfiguration- Details about the guardrail associated with the agent.- Returns:
this
-
guardrailConfiguration
@Stability(Stable) public CfnAgentMixinProps.Builder guardrailConfiguration(CfnAgentPropsMixin.GuardrailConfigurationProperty guardrailConfiguration) Sets the value ofCfnAgentMixinProps.getGuardrailConfiguration()- Parameters:
guardrailConfiguration- Details about the guardrail associated with the agent.- Returns:
this
-
idleSessionTtlInSeconds
@Stability(Stable) public CfnAgentMixinProps.Builder idleSessionTtlInSeconds(Number idleSessionTtlInSeconds) Sets the value ofCfnAgentMixinProps.getIdleSessionTtlInSeconds()- Parameters:
idleSessionTtlInSeconds- The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.- Returns:
this
-
instruction
Sets the value ofCfnAgentMixinProps.getInstruction()- Parameters:
instruction- Instructions that tell the agent what it should do and how it should interact with users.- Returns:
this
-
knowledgeBases
Sets the value ofCfnAgentMixinProps.getKnowledgeBases()- Parameters:
knowledgeBases- The knowledge bases associated with the agent.- Returns:
this
-
knowledgeBases
@Stability(Stable) public CfnAgentMixinProps.Builder knowledgeBases(List<? extends Object> knowledgeBases) Sets the value ofCfnAgentMixinProps.getKnowledgeBases()- Parameters:
knowledgeBases- The knowledge bases associated with the agent.- Returns:
this
-
memoryConfiguration
@Stability(Stable) public CfnAgentMixinProps.Builder memoryConfiguration(IResolvable memoryConfiguration) Sets the value ofCfnAgentMixinProps.getMemoryConfiguration()- Parameters:
memoryConfiguration- Contains memory configuration for the agent.- Returns:
this
-
memoryConfiguration
@Stability(Stable) public CfnAgentMixinProps.Builder memoryConfiguration(CfnAgentPropsMixin.MemoryConfigurationProperty memoryConfiguration) Sets the value ofCfnAgentMixinProps.getMemoryConfiguration()- Parameters:
memoryConfiguration- Contains memory configuration for the agent.- Returns:
this
-
orchestrationType
Sets the value ofCfnAgentMixinProps.getOrchestrationType()- Parameters:
orchestrationType- Specifies the orchestration strategy for the agent.- Returns:
this
-
promptOverrideConfiguration
@Stability(Stable) public CfnAgentMixinProps.Builder promptOverrideConfiguration(IResolvable promptOverrideConfiguration) Sets the value ofCfnAgentMixinProps.getPromptOverrideConfiguration()- Parameters:
promptOverrideConfiguration- Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .- Returns:
this
-
promptOverrideConfiguration
@Stability(Stable) public CfnAgentMixinProps.Builder promptOverrideConfiguration(CfnAgentPropsMixin.PromptOverrideConfigurationProperty promptOverrideConfiguration) Sets the value ofCfnAgentMixinProps.getPromptOverrideConfiguration()- Parameters:
promptOverrideConfiguration- Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .- Returns:
this
-
skipResourceInUseCheckOnDelete
@Stability(Stable) public CfnAgentMixinProps.Builder skipResourceInUseCheckOnDelete(Boolean skipResourceInUseCheckOnDelete) Sets the value ofCfnAgentMixinProps.getSkipResourceInUseCheckOnDelete()- Parameters:
skipResourceInUseCheckOnDelete- Specifies whether to delete the resource even if it's in use. By default, this value isfalse.- Returns:
this
-
skipResourceInUseCheckOnDelete
@Stability(Stable) public CfnAgentMixinProps.Builder skipResourceInUseCheckOnDelete(IResolvable skipResourceInUseCheckOnDelete) Sets the value ofCfnAgentMixinProps.getSkipResourceInUseCheckOnDelete()- Parameters:
skipResourceInUseCheckOnDelete- Specifies whether to delete the resource even if it's in use. By default, this value isfalse.- Returns:
this
-
tags
Sets the value ofCfnAgentMixinProps.getTags()- Parameters:
tags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
testAliasTags
@Stability(Stable) public CfnAgentMixinProps.Builder testAliasTags(Map<String, String> testAliasTags) Sets the value ofCfnAgentMixinProps.getTestAliasTags()- Parameters:
testAliasTags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
testAliasTags
Sets the value ofCfnAgentMixinProps.getTestAliasTags()- Parameters:
testAliasTags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgentMixinProps>- Returns:
- a new instance of
CfnAgentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-