Interface UpdateHarnessRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreControlRequest.Builder,Buildable,CopyableBuilder<UpdateHarnessRequest.Builder,,UpdateHarnessRequest> SdkBuilder<UpdateHarnessRequest.Builder,,UpdateHarnessRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateHarnessRequest
-
Method Summary
Modifier and TypeMethodDescriptionallowedTools(String... allowedTools) The tools that the agent is allowed to use.allowedTools(Collection<String> allowedTools) The tools that the agent is allowed to use.default UpdateHarnessRequest.BuilderauthorizerConfiguration(Consumer<UpdatedAuthorizerConfiguration.Builder> authorizerConfiguration) Sets the value of the AuthorizerConfiguration property for this object.authorizerConfiguration(UpdatedAuthorizerConfiguration authorizerConfiguration) Sets the value of the AuthorizerConfiguration property for this object.clientToken(String clientToken) A unique, case-sensitive identifier to ensure idempotency of the request.default UpdateHarnessRequest.Builderenvironment(Consumer<HarnessEnvironmentProviderRequest.Builder> environment) The compute environment configuration for the harness.environment(HarnessEnvironmentProviderRequest environment) The compute environment configuration for the harness.default UpdateHarnessRequest.BuilderenvironmentArtifact(Consumer<UpdatedHarnessEnvironmentArtifact.Builder> environmentArtifact) The environment artifact for the harness.environmentArtifact(UpdatedHarnessEnvironmentArtifact environmentArtifact) The environment artifact for the harness.environmentVariables(Map<String, String> environmentVariables) Environment variables to set in the harness runtime environment.executionRoleArn(String executionRoleArn) The ARN of the IAM role that the harness assumes when running.The ID of the harness to update.maxIterations(Integer maxIterations) The maximum number of iterations the agent loop can execute per invocation.The maximum number of tokens the agent can generate per iteration.default UpdateHarnessRequest.BuilderThe AgentCore Memory configuration.The AgentCore Memory configuration.default UpdateHarnessRequest.BuilderThe model configuration for the harness.model(HarnessModelConfiguration model) The model configuration for the harness.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.skills(Collection<HarnessSkill> skills) The skills available to the agent.skills(Consumer<HarnessSkill.Builder>... skills) The skills available to the agent.skills(HarnessSkill... skills) The skills available to the agent.systemPrompt(Collection<HarnessSystemContentBlock> systemPrompt) The system prompt that defines the agent's behavior.systemPrompt(Consumer<HarnessSystemContentBlock.Builder>... systemPrompt) The system prompt that defines the agent's behavior.systemPrompt(HarnessSystemContentBlock... systemPrompt) The system prompt that defines the agent's behavior.timeoutSeconds(Integer timeoutSeconds) The maximum duration in seconds for the agent loop execution per invocation.tools(Collection<HarnessTool> tools) The tools available to the agent.tools(Consumer<HarnessTool.Builder>... tools) The tools available to the agent.tools(HarnessTool... tools) The tools available to the agent.default UpdateHarnessRequest.Buildertruncation(Consumer<HarnessTruncationConfiguration.Builder> truncation) The truncation configuration for managing conversation context.truncation(HarnessTruncationConfiguration truncation) The truncation configuration for managing conversation context.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlRequest.Builder
buildMethods 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
-
harnessId
The ID of the harness to update.
- Parameters:
harnessId- The ID of the harness to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier to ensure idempotency of the request.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleArn
The ARN of the IAM role that the harness assumes when running. If not specified, the existing value is retained.
- Parameters:
executionRoleArn- The ARN of the IAM role that the harness assumes when running. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
The compute environment configuration for the harness. If not specified, the existing value is retained.
- Parameters:
environment- The compute environment configuration for the harness. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
default UpdateHarnessRequest.Builder environment(Consumer<HarnessEnvironmentProviderRequest.Builder> environment) The compute environment configuration for the harness. If not specified, the existing value is retained.
This is a convenience method that creates an instance of theHarnessEnvironmentProviderRequest.Builderavoiding the need to create one manually viaHarnessEnvironmentProviderRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenvironment(HarnessEnvironmentProviderRequest).- Parameters:
environment- a consumer that will call methods onHarnessEnvironmentProviderRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentArtifact
UpdateHarnessRequest.Builder environmentArtifact(UpdatedHarnessEnvironmentArtifact environmentArtifact) The environment artifact for the harness. Use the optionalValue wrapper to set a new value, or set it to null to clear the existing configuration.
- Parameters:
environmentArtifact- The environment artifact for the harness. Use the optionalValue wrapper to set a new value, or set it to null to clear the existing configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentArtifact
default UpdateHarnessRequest.Builder environmentArtifact(Consumer<UpdatedHarnessEnvironmentArtifact.Builder> environmentArtifact) The environment artifact for the harness. Use the optionalValue wrapper to set a new value, or set it to null to clear the existing configuration.
This is a convenience method that creates an instance of theUpdatedHarnessEnvironmentArtifact.Builderavoiding the need to create one manually viaUpdatedHarnessEnvironmentArtifact.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenvironmentArtifact(UpdatedHarnessEnvironmentArtifact).- Parameters:
environmentArtifact- a consumer that will call methods onUpdatedHarnessEnvironmentArtifact.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentVariables
Environment variables to set in the harness runtime environment. If specified, this replaces all existing environment variables. If not specified, the existing value is retained.
- Parameters:
environmentVariables- Environment variables to set in the harness runtime environment. If specified, this replaces all existing environment variables. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizerConfiguration
UpdateHarnessRequest.Builder authorizerConfiguration(UpdatedAuthorizerConfiguration authorizerConfiguration) Sets the value of the AuthorizerConfiguration property for this object.- Parameters:
authorizerConfiguration- The new value for the AuthorizerConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizerConfiguration
default UpdateHarnessRequest.Builder authorizerConfiguration(Consumer<UpdatedAuthorizerConfiguration.Builder> authorizerConfiguration) Sets the value of the AuthorizerConfiguration property for this object. This is a convenience method that creates an instance of theUpdatedAuthorizerConfiguration.Builderavoiding the need to create one manually viaUpdatedAuthorizerConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauthorizerConfiguration(UpdatedAuthorizerConfiguration).- Parameters:
authorizerConfiguration- a consumer that will call methods onUpdatedAuthorizerConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
model
The model configuration for the harness. If not specified, the existing value is retained.
- Parameters:
model- The model configuration for the harness. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
model
The model configuration for the harness. If not specified, the existing value is retained.
This is a convenience method that creates an instance of theHarnessModelConfiguration.Builderavoiding the need to create one manually viaHarnessModelConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodel(HarnessModelConfiguration).- Parameters:
model- a consumer that will call methods onHarnessModelConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
systemPrompt
The system prompt that defines the agent's behavior. If not specified, the existing value is retained.
- Parameters:
systemPrompt- The system prompt that defines the agent's behavior. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemPrompt
The system prompt that defines the agent's behavior. If not specified, the existing value is retained.
- Parameters:
systemPrompt- The system prompt that defines the agent's behavior. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemPrompt
UpdateHarnessRequest.Builder systemPrompt(Consumer<HarnessSystemContentBlock.Builder>... systemPrompt) The system prompt that defines the agent's behavior. If not specified, the existing value is retained.
This is a convenience method that creates an instance of theHarnessSystemContentBlock.Builderavoiding the need to create one manually viaHarnessSystemContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosystemPrompt(List<HarnessSystemContentBlock>).- Parameters:
systemPrompt- a consumer that will call methods onHarnessSystemContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tools
The tools available to the agent. If specified, this replaces all existing tools. If not specified, the existing value is retained.
- Parameters:
tools- The tools available to the agent. If specified, this replaces all existing tools. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tools
The tools available to the agent. If specified, this replaces all existing tools. If not specified, the existing value is retained.
- Parameters:
tools- The tools available to the agent. If specified, this replaces all existing tools. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tools
The tools available to the agent. If specified, this replaces all existing tools. If not specified, the existing value is retained.
This is a convenience method that creates an instance of theHarnessTool.Builderavoiding the need to create one manually viaHarnessTool.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totools(List<HarnessTool>).- Parameters:
tools- a consumer that will call methods onHarnessTool.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
skills
The skills available to the agent. If specified, this replaces all existing skills. If not specified, the existing value is retained.
- Parameters:
skills- The skills available to the agent. If specified, this replaces all existing skills. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
skills
The skills available to the agent. If specified, this replaces all existing skills. If not specified, the existing value is retained.
- Parameters:
skills- The skills available to the agent. If specified, this replaces all existing skills. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
skills
The skills available to the agent. If specified, this replaces all existing skills. If not specified, the existing value is retained.
This is a convenience method that creates an instance of theHarnessSkill.Builderavoiding the need to create one manually viaHarnessSkill.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toskills(List<HarnessSkill>).- Parameters:
skills- a consumer that will call methods onHarnessSkill.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allowedTools
The tools that the agent is allowed to use. If specified, this replaces all existing allowed tools. If not specified, the existing value is retained.
- Parameters:
allowedTools- The tools that the agent is allowed to use. If specified, this replaces all existing allowed tools. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedTools
The tools that the agent is allowed to use. If specified, this replaces all existing allowed tools. If not specified, the existing value is retained.
- Parameters:
allowedTools- The tools that the agent is allowed to use. If specified, this replaces all existing allowed tools. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memory
The AgentCore Memory configuration. Use the optionalValue wrapper to set a new value, or set it to null to clear the existing configuration.
- Parameters:
memory- The AgentCore Memory configuration. Use the optionalValue wrapper to set a new value, or set it to null to clear the existing configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memory
default UpdateHarnessRequest.Builder memory(Consumer<UpdatedHarnessMemoryConfiguration.Builder> memory) The AgentCore Memory configuration. Use the optionalValue wrapper to set a new value, or set it to null to clear the existing configuration.
This is a convenience method that creates an instance of theUpdatedHarnessMemoryConfiguration.Builderavoiding the need to create one manually viaUpdatedHarnessMemoryConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemory(UpdatedHarnessMemoryConfiguration).- Parameters:
memory- a consumer that will call methods onUpdatedHarnessMemoryConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
truncation
The truncation configuration for managing conversation context. If not specified, the existing value is retained.
- Parameters:
truncation- The truncation configuration for managing conversation context. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truncation
default UpdateHarnessRequest.Builder truncation(Consumer<HarnessTruncationConfiguration.Builder> truncation) The truncation configuration for managing conversation context. If not specified, the existing value is retained.
This is a convenience method that creates an instance of theHarnessTruncationConfiguration.Builderavoiding the need to create one manually viaHarnessTruncationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totruncation(HarnessTruncationConfiguration).- Parameters:
truncation- a consumer that will call methods onHarnessTruncationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxIterations
The maximum number of iterations the agent loop can execute per invocation. If not specified, the existing value is retained.
- Parameters:
maxIterations- The maximum number of iterations the agent loop can execute per invocation. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxTokens
The maximum number of tokens the agent can generate per iteration. If not specified, the existing value is retained.
- Parameters:
maxTokens- The maximum number of tokens the agent can generate per iteration. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutSeconds
The maximum duration in seconds for the agent loop execution per invocation. If not specified, the existing value is retained.
- Parameters:
timeoutSeconds- The maximum duration in seconds for the agent loop execution per invocation. If not specified, the existing value is retained.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateHarnessRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateHarnessRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-