Interface UpdateAgentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<UpdateAgentRequest.Builder,UpdateAgentRequest>,SdkBuilder<UpdateAgentRequest.Builder,UpdateAgentRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateAgentRequest
public static interface UpdateAgentRequest.Builder extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<UpdateAgentRequest.Builder,UpdateAgentRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateAgentRequest.BuilderagentId(String agentId)The unique identifier of the agent.UpdateAgentRequest.BuilderagentName(String agentName)Specifies a new name for the agent.UpdateAgentRequest.BuilderagentResourceRoleArn(String agentResourceRoleArn)The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.UpdateAgentRequest.BuildercustomerEncryptionKeyArn(String customerEncryptionKeyArn)The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.UpdateAgentRequest.Builderdescription(String description)Specifies a new description of the agent.UpdateAgentRequest.BuilderfoundationModel(String foundationModel)Specifies a new foundation model to be used for orchestration by the agent.default UpdateAgentRequest.BuilderguardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration)The unique Guardrail configuration assigned to the agent when it is updated.UpdateAgentRequest.BuilderguardrailConfiguration(GuardrailConfiguration guardrailConfiguration)The unique Guardrail configuration assigned to the agent when it is updated.UpdateAgentRequest.BuilderidleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.UpdateAgentRequest.Builderinstruction(String instruction)Specifies new instructions that tell the agent what it should do and how it should interact with users.default UpdateAgentRequest.BuildermemoryConfiguration(Consumer<MemoryConfiguration.Builder> memoryConfiguration)Specifies the new memory configuration for the agent.UpdateAgentRequest.BuildermemoryConfiguration(MemoryConfiguration memoryConfiguration)Specifies the new memory configuration for the agent.UpdateAgentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateAgentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default UpdateAgentRequest.BuilderpromptOverrideConfiguration(Consumer<PromptOverrideConfiguration.Builder> promptOverrideConfiguration)Contains configurations to override prompts in different parts of an agent sequence.UpdateAgentRequest.BuilderpromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)Contains configurations to override prompts in different parts of an agent sequence.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
agentId
UpdateAgentRequest.Builder agentId(String agentId)
The unique identifier of the agent.
- Parameters:
agentId- The unique identifier of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentName
UpdateAgentRequest.Builder agentName(String agentName)
Specifies a new name for the agent.
- Parameters:
agentName- Specifies a new name for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentResourceRoleArn
UpdateAgentRequest.Builder agentResourceRoleArn(String agentResourceRoleArn)
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
- Parameters:
agentResourceRoleArn- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerEncryptionKeyArn
UpdateAgentRequest.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn)
The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
UpdateAgentRequest.Builder description(String description)
Specifies a new description of the agent.
- Parameters:
description- Specifies a new description of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
foundationModel
UpdateAgentRequest.Builder foundationModel(String foundationModel)
Specifies a new foundation model to be used for orchestration by the agent.
- Parameters:
foundationModel- Specifies a new foundation model to be used for orchestration by the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
UpdateAgentRequest.Builder guardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The unique Guardrail configuration assigned to the agent when it is updated.
- Parameters:
guardrailConfiguration- The unique Guardrail configuration assigned to the agent when it is updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
default UpdateAgentRequest.Builder guardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration)
The unique Guardrail configuration assigned to the agent when it is updated.
This is a convenience method that creates an instance of theGuardrailConfiguration.Builderavoiding the need to create one manually viaGuardrailConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrailConfiguration(GuardrailConfiguration).- Parameters:
guardrailConfiguration- a consumer that will call methods onGuardrailConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
guardrailConfiguration(GuardrailConfiguration)
-
idleSessionTTLInSeconds
UpdateAgentRequest.Builder idleSessionTTLInSeconds(Integer 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
UpdateAgentRequest.Builder instruction(String instruction)
Specifies new instructions that tell the agent what it should do and how it should interact with users.
- Parameters:
instruction- Specifies new instructions that tell the agent what it should do and how it should interact with users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryConfiguration
UpdateAgentRequest.Builder memoryConfiguration(MemoryConfiguration memoryConfiguration)
Specifies the new memory configuration for the agent.
- Parameters:
memoryConfiguration- Specifies the new memory configuration for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryConfiguration
default UpdateAgentRequest.Builder memoryConfiguration(Consumer<MemoryConfiguration.Builder> memoryConfiguration)
Specifies the new memory configuration for the agent.
This is a convenience method that creates an instance of theMemoryConfiguration.Builderavoiding the need to create one manually viaMemoryConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemoryConfiguration(MemoryConfiguration).- Parameters:
memoryConfiguration- a consumer that will call methods onMemoryConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
memoryConfiguration(MemoryConfiguration)
-
promptOverrideConfiguration
UpdateAgentRequest.Builder promptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.
- Parameters:
promptOverrideConfiguration- Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptOverrideConfiguration
default UpdateAgentRequest.Builder promptOverrideConfiguration(Consumer<PromptOverrideConfiguration.Builder> promptOverrideConfiguration)
Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.
This is a convenience method that creates an instance of thePromptOverrideConfiguration.Builderavoiding the need to create one manually viaPromptOverrideConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topromptOverrideConfiguration(PromptOverrideConfiguration).- Parameters:
promptOverrideConfiguration- a consumer that will call methods onPromptOverrideConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
promptOverrideConfiguration(PromptOverrideConfiguration)
-
overrideConfiguration
UpdateAgentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateAgentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-