Interface CreateAgentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<CreateAgentRequest.Builder,CreateAgentRequest>,SdkBuilder<CreateAgentRequest.Builder,CreateAgentRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateAgentRequest
public static interface CreateAgentRequest.Builder extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<CreateAgentRequest.Builder,CreateAgentRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateAgentRequest.BuilderagentName(String agentName)Sets the value of the AgentName property for this object.CreateAgentRequest.BuilderagentResourceRoleArn(String agentResourceRoleArn)Sets the value of the AgentResourceRoleArn property for this object.CreateAgentRequest.BuilderclientToken(String clientToken)Sets the value of the ClientToken property for this object.CreateAgentRequest.BuildercustomerEncryptionKeyArn(String customerEncryptionKeyArn)Sets the value of the CustomerEncryptionKeyArn property for this object.CreateAgentRequest.Builderdescription(String description)Sets the value of the Description property for this object.CreateAgentRequest.BuilderfoundationModel(String foundationModel)Sets the value of the FoundationModel property for this object.CreateAgentRequest.BuilderidleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)Sets the value of the IdleSessionTTLInSeconds property for this object.CreateAgentRequest.Builderinstruction(String instruction)Sets the value of the Instruction property for this object.CreateAgentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateAgentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateAgentRequest.BuilderpromptOverrideConfiguration(Consumer<PromptOverrideConfiguration.Builder> promptOverrideConfiguration)Sets the value of the PromptOverrideConfiguration property for this object.CreateAgentRequest.BuilderpromptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)Sets the value of the PromptOverrideConfiguration property for this object.CreateAgentRequest.Buildertags(Map<String,String> tags)Sets the value of the Tags property for this object.-
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
-
agentName
CreateAgentRequest.Builder agentName(String agentName)
Sets the value of the AgentName property for this object.- Parameters:
agentName- The new value for the AgentName property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateAgentRequest.Builder clientToken(String clientToken)
Sets the value of the ClientToken property for this object.- Parameters:
clientToken- The new value for the ClientToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
CreateAgentRequest.Builder instruction(String instruction)
Sets the value of the Instruction property for this object.- Parameters:
instruction- The new value for the Instruction property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
foundationModel
CreateAgentRequest.Builder foundationModel(String foundationModel)
Sets the value of the FoundationModel property for this object.- Parameters:
foundationModel- The new value for the FoundationModel property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateAgentRequest.Builder description(String description)
Sets the value of the Description property for this object.- Parameters:
description- The new value for the Description property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idleSessionTTLInSeconds
CreateAgentRequest.Builder idleSessionTTLInSeconds(Integer idleSessionTTLInSeconds)
Sets the value of the IdleSessionTTLInSeconds property for this object.- Parameters:
idleSessionTTLInSeconds- The new value for the IdleSessionTTLInSeconds property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentResourceRoleArn
CreateAgentRequest.Builder agentResourceRoleArn(String agentResourceRoleArn)
Sets the value of the AgentResourceRoleArn property for this object.- Parameters:
agentResourceRoleArn- The new value for the AgentResourceRoleArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerEncryptionKeyArn
CreateAgentRequest.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn)
Sets the value of the CustomerEncryptionKeyArn property for this object.- Parameters:
customerEncryptionKeyArn- The new value for the CustomerEncryptionKeyArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateAgentRequest.Builder tags(Map<String,String> tags)
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptOverrideConfiguration
CreateAgentRequest.Builder promptOverrideConfiguration(PromptOverrideConfiguration promptOverrideConfiguration)
Sets the value of the PromptOverrideConfiguration property for this object.- Parameters:
promptOverrideConfiguration- The new value for the PromptOverrideConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptOverrideConfiguration
default CreateAgentRequest.Builder promptOverrideConfiguration(Consumer<PromptOverrideConfiguration.Builder> promptOverrideConfiguration)
Sets the value of the PromptOverrideConfiguration property for this object. 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
CreateAgentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAgentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-