Class AgentRuntimeAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.AgentRuntimeAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AgentRuntimeAttributes>
- Enclosing interface:
AgentRuntimeAttributes
@Stability(Stable)
public static final class AgentRuntimeAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<AgentRuntimeAttributes>
A builder for
AgentRuntimeAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentRuntimeArn(String agentRuntimeArn) Sets the value ofAgentRuntimeAttributes.getAgentRuntimeArn()agentRuntimeId(String agentRuntimeId) Sets the value ofAgentRuntimeAttributes.getAgentRuntimeId()agentRuntimeName(String agentRuntimeName) Sets the value ofAgentRuntimeAttributes.getAgentRuntimeName()agentRuntimeVersion(String agentRuntimeVersion) Sets the value ofAgentRuntimeAttributes.getAgentRuntimeVersion()agentStatus(String agentStatus) Sets the value ofAgentRuntimeAttributes.getAgentStatus()build()Builds the configured instance.Sets the value ofAgentRuntimeAttributes.getCreatedAt()description(String description) Sets the value ofAgentRuntimeAttributes.getDescription()lastUpdatedAt(String lastUpdatedAt) Sets the value ofAgentRuntimeAttributes.getLastUpdatedAt()Sets the value ofAgentRuntimeAttributes.getRoleArn()securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofAgentRuntimeAttributes.getSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentRuntimeArn
Sets the value ofAgentRuntimeAttributes.getAgentRuntimeArn()- Parameters:
agentRuntimeArn- The ARN of the agent runtime. This parameter is required.- Returns:
this
-
agentRuntimeId
Sets the value ofAgentRuntimeAttributes.getAgentRuntimeId()- Parameters:
agentRuntimeId- The ID of the agent runtime. This parameter is required.- Returns:
this
-
agentRuntimeName
Sets the value ofAgentRuntimeAttributes.getAgentRuntimeName()- Parameters:
agentRuntimeName- The name of the agent runtime. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofAgentRuntimeAttributes.getRoleArn()- Parameters:
roleArn- The IAM role ARN. This parameter is required.- Returns:
this
-
agentRuntimeVersion
@Stability(Stable) public AgentRuntimeAttributes.Builder agentRuntimeVersion(String agentRuntimeVersion) Sets the value ofAgentRuntimeAttributes.getAgentRuntimeVersion()- Parameters:
agentRuntimeVersion- The version of the agent runtime When importing a runtime and this is not specified or undefined, endpoints created on this runtime will point to version "1" unless explicitly overridden.- Returns:
this
-
agentStatus
Sets the value ofAgentRuntimeAttributes.getAgentStatus()- Parameters:
agentStatus- The current status of the agent runtime.- Returns:
this
-
createdAt
Sets the value ofAgentRuntimeAttributes.getCreatedAt()- Parameters:
createdAt- The time at which the runtime was created.- Returns:
this
-
description
Sets the value ofAgentRuntimeAttributes.getDescription()- Parameters:
description- The description of the agent runtime.- Returns:
this
-
lastUpdatedAt
Sets the value ofAgentRuntimeAttributes.getLastUpdatedAt()- Parameters:
lastUpdatedAt- The time at which the runtime was last updated.- Returns:
this
-
securityGroups
@Stability(Stable) public AgentRuntimeAttributes.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofAgentRuntimeAttributes.getSecurityGroups()- Parameters:
securityGroups- The security groups for this runtime, if in a VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AgentRuntimeAttributes>- Returns:
- a new instance of
AgentRuntimeAttributes - Throws:
NullPointerException- if any required attribute was not provided
-