Class CfnAIAgent.ToolInstructionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnAIAgent.ToolInstructionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAIAgent.ToolInstructionProperty>
- Enclosing interface:
CfnAIAgent.ToolInstructionProperty
@Stability(Stable)
public static final class CfnAIAgent.ToolInstructionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAIAgent.ToolInstructionProperty>
A builder for
CfnAIAgent.ToolInstructionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAIAgent.ToolInstructionProperty.getExamples()instruction(String instruction) Sets the value ofCfnAIAgent.ToolInstructionProperty.getInstruction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
examples
@Stability(Stable) public CfnAIAgent.ToolInstructionProperty.Builder examples(List<String> examples) Sets the value ofCfnAIAgent.ToolInstructionProperty.getExamples()- Parameters:
examples- the value to be set.- Returns:
this
-
instruction
@Stability(Stable) public CfnAIAgent.ToolInstructionProperty.Builder instruction(String instruction) Sets the value ofCfnAIAgent.ToolInstructionProperty.getInstruction()- Parameters:
instruction- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAIAgent.ToolInstructionProperty>- Returns:
- a new instance of
CfnAIAgent.ToolInstructionProperty - Throws:
NullPointerException- if any required attribute was not provided
-