Class CodeInterpreterCustomProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CodeInterpreterCustomProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeInterpreterCustomProps>
- Enclosing interface:
CodeInterpreterCustomProps
@Stability(Stable)
public static final class CodeInterpreterCustomProps.Builder
extends Object
implements software.amazon.jsii.Builder<CodeInterpreterCustomProps>
A builder for
CodeInterpreterCustomProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codeInterpreterCustomName(String codeInterpreterCustomName) Sets the value ofCodeInterpreterCustomProps.getCodeInterpreterCustomName()description(String description) Sets the value ofCodeInterpreterCustomProps.getDescription()executionRole(IRole executionRole) Sets the value ofCodeInterpreterCustomProps.getExecutionRole()networkConfiguration(CodeInterpreterNetworkConfiguration networkConfiguration) Sets the value ofCodeInterpreterCustomProps.getNetworkConfiguration()Sets the value ofCodeInterpreterCustomProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeInterpreterCustomName
@Stability(Stable) public CodeInterpreterCustomProps.Builder codeInterpreterCustomName(String codeInterpreterCustomName) Sets the value ofCodeInterpreterCustomProps.getCodeInterpreterCustomName()- Parameters:
codeInterpreterCustomName- The name of the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]{0,47}.- Returns:
this
-
description
Sets the value ofCodeInterpreterCustomProps.getDescription()- Parameters:
description- Optional description for the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.- Returns:
this
-
executionRole
Sets the value ofCodeInterpreterCustomProps.getExecutionRole()- Parameters:
executionRole- The IAM role that provides permissions for the code interpreter to access AWS services.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CodeInterpreterCustomProps.Builder networkConfiguration(CodeInterpreterNetworkConfiguration networkConfiguration) Sets the value ofCodeInterpreterCustomProps.getNetworkConfiguration()- Parameters:
networkConfiguration- Network configuration for code interpreter.- Returns:
this
-
tags
Sets the value ofCodeInterpreterCustomProps.getTags()- Parameters:
tags- Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CodeInterpreterCustomProps>- Returns:
- a new instance of
CodeInterpreterCustomProps - Throws:
NullPointerException- if any required attribute was not provided
-