Class AgentAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.AgentAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AgentAttributes>
- Enclosing interface:
AgentAttributes
@Stability(Experimental)
public static final class AgentAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<AgentAttributes>
A builder for
AgentAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAgentAttributes.getAgentArn()agentVersion(String agentVersion) Sets the value ofAgentAttributes.getAgentVersion()build()Builds the configured instance.Sets the value ofAgentAttributes.getKmsKeyArn()lastUpdated(String lastUpdated) Sets the value ofAgentAttributes.getLastUpdated()Sets the value ofAgentAttributes.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentArn
Sets the value ofAgentAttributes.getAgentArn()- Parameters:
agentArn- The ARN of the agent. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofAgentAttributes.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role associated to the agent. This parameter is required.- Returns:
this
-
agentVersion
Sets the value ofAgentAttributes.getAgentVersion()- Parameters:
agentVersion- The agent version. If no explicit versions have been created, leave this empty to use the DRAFT version. Otherwise, use the version number (e.g. 1).- Returns:
this
-
kmsKeyArn
Sets the value ofAgentAttributes.getKmsKeyArn()- Parameters:
kmsKeyArn- Optional KMS encryption key associated with this agent.- Returns:
this
-
lastUpdated
Sets the value ofAgentAttributes.getLastUpdated()- Parameters:
lastUpdated- When this agent was last updated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AgentAttributes>- Returns:
- a new instance of
AgentAttributes - Throws:
NullPointerException- if any required attribute was not provided
-