Class CfnAgent.FunctionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgent.FunctionProperty>
- Enclosing interface:
CfnAgent.FunctionProperty
@Stability(Stable)
public static final class CfnAgent.FunctionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgent.FunctionProperty>
A builder for
CfnAgent.FunctionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAgent.FunctionProperty.getDescription()Sets the value ofCfnAgent.FunctionProperty.getName()parameters(Map<String, ? extends Object> parameters) Sets the value ofCfnAgent.FunctionProperty.getParameters()parameters(IResolvable parameters) Sets the value ofCfnAgent.FunctionProperty.getParameters()requireConfirmation(String requireConfirmation) Sets the value ofCfnAgent.FunctionProperty.getRequireConfirmation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnAgent.FunctionProperty.getName()- Parameters:
name- A name for the function. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnAgent.FunctionProperty.getDescription()- Parameters:
description- A description of the function and its purpose.- Returns:
this
-
parameters
Sets the value ofCfnAgent.FunctionProperty.getParameters()- Parameters:
parameters- The parameters that the agent elicits from the user to fulfill the function.- Returns:
this
-
parameters
@Stability(Stable) public CfnAgent.FunctionProperty.Builder parameters(Map<String, ? extends Object> parameters) Sets the value ofCfnAgent.FunctionProperty.getParameters()- Parameters:
parameters- The parameters that the agent elicits from the user to fulfill the function.- Returns:
this
-
requireConfirmation
@Stability(Stable) public CfnAgent.FunctionProperty.Builder requireConfirmation(String requireConfirmation) Sets the value ofCfnAgent.FunctionProperty.getRequireConfirmation()- Parameters:
requireConfirmation- Contains information if user confirmation is required to invoke the function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgent.FunctionProperty>- Returns:
- a new instance of
CfnAgent.FunctionProperty - Throws:
NullPointerException- if any required attribute was not provided
-