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